public class AsyncHandlerAssignSubhandler extends AbstractLogHandlerAssignmentHandler
| Modifier and Type | Field and Description |
|---|---|
static AsyncHandlerAssignSubhandler |
INSTANCE |
static String |
OPERATION_NAME |
| Constructor and Description |
|---|
AsyncHandlerAssignSubhandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHandler(OperationContext context,
String asyncHandlerName,
String handlerNameToAdd)
Adds the handler, represented by the
handlerNameToRemove parameter, from the async handler. |
static void |
addHandlers(AttributeDefinition attribute,
org.jboss.dmr.ModelNode node,
OperationContext context,
String asyncHandlerName)
Adds the subhandlers to the async handler.
|
protected String |
getHandlerName(org.jboss.dmr.ModelNode model)
Returns the name of the handler.
|
protected void |
performRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
ServiceVerificationHandler verificationHandler,
List<org.jboss.msc.service.ServiceController<?>> newControllers)
Make any runtime changes necessary to effect the changes indicated by the given
operation. |
protected void |
rollbackRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
List<org.jboss.msc.service.ServiceController<?>> controllers)
|
protected void |
updateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Update the given node in the persistent configuration model based on the values in the given operation.
|
createFailureMessage, handlerExists, updateHandlersForAssign, updateHandlersForUnassignexecute, requiresRuntime, requiresRuntimeVerification, updateModelpublic static final String OPERATION_NAME
public static final AsyncHandlerAssignSubhandler INSTANCE
protected void updateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
throws OperationFailedException
AbstractModelUpdateHandlerupdateModel in class AbstractModelUpdateHandleroperation - the operationmodel - persistent configuration model node that corresponds to the address of operationOperationFailedException - if operation is invalid or populating the model otherwise failsprotected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> newControllers) throws OperationFailedException
AbstractModelUpdateHandleroperation. Executes
after AbstractModelUpdateHandler.updateModel(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode), so the given model
parameter will reflect any changes made in that method.
This default implementation does nothing.
performRuntime in class AbstractModelUpdateHandlercontext - the operation contextoperation - the operation being executedmodel - persistent configuration model node that corresponds to the address of operationverificationHandler - step handler that can be added as a listener to any new services installed in order to
validate the services installed correctly during the
VERIFY stagenewControllers - holder for the ServiceController for any new services installed by the method. The
method should add the ServiceController for any new services to this list. If the
overall operation needs to be rolled back, the list will be used in
AbstractModelUpdateHandler.rollbackRuntime(OperationContext, ModelNode, ModelNode, java.util.List) to automatically removed
the newly added servicesOperationFailedException - if operation is invalid or updating the runtime otherwise failsprotected void rollbackRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, List<org.jboss.msc.service.ServiceController<?>> controllers)
AbstractModelUpdateHandlerAbstractModelUpdateHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List).
This default implementation removes all services in the given list of controllers. The contents of
controllers is the same as what was in the newControllers parameter passed to performRuntime()
when that method returned.
rollbackRuntime in class AbstractModelUpdateHandlercontext - the operation contextoperation - the operation being executedmodel - persistent configuration model node that corresponds to the address of operationcontrollers - holder for the ServiceController for any new services installed by
AbstractModelUpdateHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)protected String getHandlerName(org.jboss.dmr.ModelNode model) throws OperationFailedException
AbstractLogHandlerAssignmentHandlergetHandlerName in class AbstractLogHandlerAssignmentHandlermodel - the model node to retrieve the name from.OperationFailedException - if a failure occurs.public static void addHandler(OperationContext context, String asyncHandlerName, String handlerNameToAdd) throws OperationFailedException
handlerNameToRemove parameter, from the async handler.context - the context of the operation.asyncHandlerName - the async handler name.handlerNameToAdd - the name of the handler to add.OperationFailedException - if an error occurs.public static void addHandlers(AttributeDefinition attribute, org.jboss.dmr.ModelNode node, OperationContext context, String asyncHandlerName) throws OperationFailedException
attribute - the attribute definition.node - the model node to extract the subhandlers from.context - the context of the operation.OperationFailedException - if an error occurs.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.