protected void addFromHash(byte[] hash) throws OperationFailedException { if (!contentRepository.syncContent(hash)) { throw ServerMessages.MESSAGES.noSuchDeploymentContent(HashUtil.bytesToHexString(hash)); } }
protected void addFromHash(ContentReference reference) throws OperationFailedException { if (!contentRepository.syncContent(reference)) { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(reference.getHexHash()); } }
protected void addFromHash(byte[] hash) throws OperationFailedException { if (!contentRepository.syncContent(hash)) { throw ServerMessages.MESSAGES.noSuchDeploymentContent(HashUtil.bytesToHexString(hash)); } }
protected void addFromHash(ContentReference reference) throws OperationFailedException { if (!contentRepository.syncContent(reference)) { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(reference.getHexHash()); } }
DeploymentHandlerUtil.ContentItem addFromHash(byte[] hash) throws OperationFailedException { if (!contentRepository.syncContent(hash)) { throw ServerMessages.MESSAGES.noSuchDeploymentContent(HashUtil.bytesToHexString(hash)); } return new DeploymentHandlerUtil.ContentItem(hash); }
DeploymentHandlerUtil.ContentItem addFromHash(byte[] hash) throws OperationFailedException { if (!contentRepository.syncContent(hash)) { throw ServerMessages.MESSAGES.noSuchDeploymentContent(HashUtil.bytesToHexString(hash)); } return new DeploymentHandlerUtil.ContentItem(hash); }
DeploymentHandlerUtil.ContentItem addFromHash(ContentReference reference) throws OperationFailedException { if (!contentRepository.syncContent(reference)) { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(reference.getHexHash()); } return new DeploymentHandlerUtil.ContentItem(reference.getHash()); }
DeploymentHandlerUtil.ContentItem addFromHash(ContentReference reference) throws OperationFailedException { if (!contentRepository.syncContent(reference)) { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(reference.getHexHash()); } return new DeploymentHandlerUtil.ContentItem(reference.getHash()); }
attr.validateAndSet(modified, resource.getModel()); if (!contentRepository.syncContent(hash)) { throw ServerMessages.MESSAGES.noSuchDeploymentContent(Arrays.toString(hash));
attr.validateAndSet(modified, resource.getModel()); if (!contentRepository.syncContent(hash)) { throw ServerMessages.MESSAGES.noSuchDeploymentContent(Arrays.toString(hash));
attr.validateAndSet(modified, resource.getModel()); if (!contentRepository.syncContent(ModelContentReference.fromModelAddress(address, hash))) { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(Arrays.toString(hash));
attr.validateAndSet(modified, resource.getModel()); if (!contentRepository.syncContent(ModelContentReference.fromModelAddress(address, hash))) { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(Arrays.toString(hash));
byte[] addFromHash(byte[] hash, String deploymentOverlayName, final String contentName, final OperationContext context) throws OperationFailedException { if(remoteRepository != null) { remoteRepository.getDeploymentFiles(hash); } if (!contentRepository.syncContent(hash)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.DEPLOYMENT_LOGGER.reportAdminOnlyMissingDeploymentOverlayContent(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } else { throw ServerMessages.MESSAGES.noSuchDeploymentOverlayContentAtBoot(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } } else { throw ServerMessages.MESSAGES.noSuchDeploymentOverlayContent(HashUtil.bytesToHexString(hash)); } } return hash; }
DeploymentHandlerUtil.ContentItem addFromHash(byte[] hash, String deploymentName, OperationContext context) throws OperationFailedException { if (!contentRepository.syncContent(hash)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.DEPLOYMENT_LOGGER.reportAdminOnlyMissingDeploymentContent(HashUtil.bytesToHexString(hash), deploymentName); } else { throw ServerMessages.MESSAGES.noSuchDeploymentContentAtBoot(HashUtil.bytesToHexString(hash), deploymentName); } } else { throw ServerMessages.MESSAGES.noSuchDeploymentContent(HashUtil.bytesToHexString(hash)); } } return new DeploymentHandlerUtil.ContentItem(hash); }
DeploymentHandlerUtil.ContentItem addFromHash(byte[] hash, String deploymentName, OperationContext context) throws OperationFailedException { if (!contentRepository.syncContent(hash)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.DEPLOYMENT_LOGGER.reportAdminOnlyMissingDeploymentContent(HashUtil.bytesToHexString(hash), deploymentName); } else { throw ServerMessages.MESSAGES.noSuchDeploymentContentAtBoot(HashUtil.bytesToHexString(hash), deploymentName); } } else { throw ServerMessages.MESSAGES.noSuchDeploymentContent(HashUtil.bytesToHexString(hash)); } } return new DeploymentHandlerUtil.ContentItem(hash); }
byte[] addFromHash(byte[] hash, String deploymentOverlayName, final String contentName, final OperationContext context) throws OperationFailedException { if(remoteRepository != null) { remoteRepository.getDeploymentFiles(hash); } if (!contentRepository.syncContent(hash)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.DEPLOYMENT_LOGGER.reportAdminOnlyMissingDeploymentOverlayContent(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } else { throw ServerMessages.MESSAGES.noSuchDeploymentOverlayContentAtBoot(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } } else { throw ServerMessages.MESSAGES.noSuchDeploymentOverlayContent(HashUtil.bytesToHexString(hash)); } } return hash; }
byte[] addFromHash(byte[] hash, String deploymentOverlayName, final String contentName, final PathAddress address, final OperationContext context) throws OperationFailedException { ContentReference reference = ModelContentReference.fromModelAddress(address, hash); if(remoteRepository != null) { remoteRepository.getDeploymentFiles(reference); } if (!contentRepository.syncContent(reference)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.ROOT_LOGGER.reportAdminOnlyMissingDeploymentOverlayContent(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentOverlayContentAtBoot(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentOverlayContent(HashUtil.bytesToHexString(hash)); } } return hash; }
byte[] addFromHash(byte[] hash, String deploymentOverlayName, final String contentName, final PathAddress address, final OperationContext context) throws OperationFailedException { ContentReference reference = ModelContentReference.fromModelAddress(address, hash); if(remoteRepository != null) { remoteRepository.getDeploymentFiles(reference); } if (!contentRepository.syncContent(reference)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.ROOT_LOGGER.reportAdminOnlyMissingDeploymentOverlayContent(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentOverlayContentAtBoot(HashUtil.bytesToHexString(hash), deploymentOverlayName, contentName); } } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentOverlayContent(HashUtil.bytesToHexString(hash)); } } return hash; }
public static byte[] addFromHash(ContentRepository contentRepository, ModelNode contentItemNode, String deploymentName, PathAddress address, OperationContext context) throws OperationFailedException { byte[] hash = contentItemNode.require(CONTENT_HASH.getName()).asBytes(); ContentReference reference = ModelContentReference.fromModelAddress(address, hash); if (!contentRepository.syncContent(reference)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.ROOT_LOGGER.reportAdminOnlyMissingDeploymentContent(reference.getHexHash(), deploymentName); } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContentAtBoot(reference.getHexHash(), deploymentName); } } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(reference.getHexHash()); } } return hash; } }
public static byte[] addFromHash(ContentRepository contentRepository, ModelNode contentItemNode, String deploymentName, PathAddress address, OperationContext context) throws OperationFailedException { byte[] hash = contentItemNode.require(CONTENT_HASH.getName()).asBytes(); ContentReference reference = ModelContentReference.fromModelAddress(address, hash); if (!contentRepository.syncContent(reference)) { if (context.isBooting()) { if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { // The deployment content is missing, which would be a fatal boot error if we were going to actually // install services. In ADMIN-ONLY mode we allow it to give the admin a chance to correct the problem ServerLogger.ROOT_LOGGER.reportAdminOnlyMissingDeploymentContent(reference.getHexHash(), deploymentName); } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContentAtBoot(reference.getHexHash(), deploymentName); } } else { throw ServerLogger.ROOT_LOGGER.noSuchDeploymentContent(reference.getHexHash()); } } return hash; } }