public class DeploymentOverlayContentAdd extends AbstractAddStepHandler
AbstractAddStepHandler.Parameters| Modifier and Type | Field and Description |
|---|---|
protected ContentRepository |
contentRepository |
attributes| Constructor and Description |
|---|
DeploymentOverlayContentAdd(ContentRepository contentRepository,
DeploymentFileRepository remoteRepository) |
| Modifier and Type | Method and Description |
|---|---|
protected static OperationFailedException |
createFailureException(String msg) |
protected static InputStream |
getInputStream(OperationContext context,
org.jboss.dmr.ModelNode operation) |
protected void |
populateModel(OperationContext context,
org.jboss.dmr.ModelNode operation,
Resource resource)
Populate the given resource in the persistent configuration model based on the values in the given operation.
|
protected boolean |
requiresRuntime(OperationContext context)
Gets whether a
OperationContext.Stage.RUNTIME step should be added to call
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)}. |
protected static void |
validateOnePieceOfContent(org.jboss.dmr.ModelNode content) |
createResource, createResource, execute, performRuntime, performRuntime, performRuntime, populateModel, populateModel, recordCapabilitiesAndRequirements, requiresRuntimeVerification, rollbackRuntime, rollbackRuntimeprotected final ContentRepository contentRepository
public DeploymentOverlayContentAdd(ContentRepository contentRepository, DeploymentFileRepository remoteRepository)
protected void populateModel(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
AbstractAddStepHandlerOperationContext.Stage.MODEL.
This default implementation simply calls AbstractAddStepHandler.populateModel(ModelNode, org.jboss.as.controller.registry.Resource).
populateModel in class AbstractAddStepHandlercontext - the operation contextoperation - the operationresource - the resource that corresponds to the address of operationOperationFailedException - if operation is invalid or populating the model otherwise failsprotected boolean requiresRuntime(OperationContext context)
AbstractAddStepHandlerOperationContext.Stage.RUNTIME step should be added to call
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)}.
This default implementation will return true for a normal server running in normal (non admin-only) mode.
If running on a host controller, it will return true if it is the active copy of the host controller subsystem.
Subclasses that perform no runtime update could override and return false. This method is
invoked during OperationContext.Stage.MODEL.requiresRuntime in class AbstractAddStepHandlercontext - operation contexttrue if performRuntime should be invoked; false otherwise.protected static void validateOnePieceOfContent(org.jboss.dmr.ModelNode content)
throws OperationFailedException
OperationFailedExceptionprotected static OperationFailedException createFailureException(String msg)
protected static InputStream getInputStream(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationFailedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.