Package org.jboss.as.logging
Class LoggingOperations.LoggingAddOperationStepHandler
- java.lang.Object
-
- org.jboss.as.controller.AbstractAddStepHandler
-
- org.jboss.as.logging.LoggingOperations.LoggingAddOperationStepHandler
-
- All Implemented Interfaces:
OperationDescriptor,OperationStepHandler
- Enclosing class:
- LoggingOperations
public abstract static class LoggingOperations.LoggingAddOperationStepHandler extends AbstractAddStepHandler
A base step handler for logging operations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractAddStepHandler
AbstractAddStepHandler.Parameters
-
-
Field Summary
-
Fields inherited from class org.jboss.as.controller.AbstractAddStepHandler
attributes
-
-
Constructor Summary
Constructors Constructor Description LoggingAddOperationStepHandler(AttributeDefinition... attributes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected OperationStepHandleradditionalModelStep(org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration)AnOperationStepHandlerthat will be registered after thepopulateModel(OperationContext, ModelNode, Resource)is executed in the model stage.protected OperationStepHandlerafterPrepare(org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration, org.jboss.dmr.ModelNode model)AnOperationStepHandlerto register after the prepare has been executed.voidexecute(OperationContext context, org.jboss.dmr.ModelNode operation)protected voidperformRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model)abstract voidperformRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration)Executes additional processing for this step.protected voidpopulateModel(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource)-
Methods inherited from class org.jboss.as.controller.AbstractAddStepHandler
createResource, createResource, getAttributes, performRuntime, populateModel, populateModel, recordCapabilitiesAndRequirements, requiresRuntime, rollbackRuntime
-
-
-
-
Constructor Detail
-
LoggingAddOperationStepHandler
public LoggingAddOperationStepHandler(AttributeDefinition... attributes)
-
-
Method Detail
-
execute
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
- Specified by:
executein interfaceOperationStepHandler- Overrides:
executein classAbstractAddStepHandler- Throws:
OperationFailedException
-
populateModel
protected void populateModel(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
- Overrides:
populateModelin classAbstractAddStepHandler- Throws:
OperationFailedException
-
performRuntime
protected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
- Overrides:
performRuntimein classAbstractAddStepHandler- Throws:
OperationFailedException
-
afterPrepare
protected OperationStepHandler afterPrepare(org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration, org.jboss.dmr.ModelNode model)
AnOperationStepHandlerto register after the prepare has been executed.- Parameters:
logContextConfiguration- the log context configuration usedmodel- the current model to use- Returns:
- an operation step handler to register or
nullto not register a new step
-
additionalModelStep
protected OperationStepHandler additionalModelStep(org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration)
AnOperationStepHandlerthat will be registered after thepopulateModel(OperationContext, ModelNode, Resource)is executed in the model stage. If this method returnsnullthe step will not be registered.- Parameters:
logContextConfiguration- the log context configuration to use- Returns:
- an operation step handler to register or
nullto not register a step after the commit step
-
performRuntime
public abstract void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, org.jboss.logmanager.config.LogContextConfiguration logContextConfiguration) throws OperationFailedException
Executes additional processing for this step.- Parameters:
context- the operation contextoperation- the operation being executedmodel- the model to updatelogContextConfiguration- the logging context configuration- Throws:
OperationFailedException- if a processing error occurs
-
-