public abstract class AbstractLogHandlerAssignmentHandler extends AbstractModelUpdateHandler
| Constructor and Description |
|---|
AbstractLogHandlerAssignmentHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected static OperationFailedException |
createFailureMessage(String description)
Creates a
failure exception for the description. |
protected abstract String |
getHandlerName(org.jboss.dmr.ModelNode model)
Returns the name of the handler.
|
protected boolean |
handlerExists(String handlerName,
AttributeDefinition handlerAttribute,
org.jboss.dmr.ModelNode model)
Checks the
model, represented my the model parameter, to see if the handler already exists. |
protected void |
updateHandlersForAssign(AttributeDefinition handlerAttribute,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Updates the handlers to be assigned.
|
protected void |
updateHandlersForUnassign(AttributeDefinition handlerAttribute,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Updates the handlers to be unassigned.
|
execute, performRuntime, requiresRuntime, requiresRuntimeVerification, rollbackRuntime, updateModel, updateModelprotected void updateHandlersForAssign(AttributeDefinition handlerAttribute, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
exception if it does.handlerAttribute - the handler attribute.operation - the operation.model - the new modelOperationFailedException - if an error occurs.protected void updateHandlersForUnassign(AttributeDefinition handlerAttribute, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
exception is thrown.handlerAttribute - the handler attribute.operation - the operation.model - the new modelOperationFailedException - if an error occurs.protected static OperationFailedException createFailureMessage(String description)
failure exception for the description.description - the description for the exception.protected boolean handlerExists(String handlerName, AttributeDefinition handlerAttribute, org.jboss.dmr.ModelNode model) throws OperationFailedException
model, represented my the model parameter, to see if the handler already exists.handlerName - the name of the handler.handlerAttribute - the handler attribute definition.model - the model.true if the handler already exists in the handler listing.OperationFailedException - if an operation failure occurs.protected abstract String getHandlerName(org.jboss.dmr.ModelNode model) throws OperationFailedException
model - the model node to retrieve the name from.OperationFailedException - if a failure occurs.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.