public class LoadMetricAdd
extends org.jboss.as.controller.AbstractAddStepHandler
Modifier and Type | Method and Description |
---|---|
protected void |
performRuntime(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Make any runtime changes necessary to effect the changes indicated by the given
operation . |
protected void |
populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Populate the given node in the persistent configuration model based on the values in the given operation.
|
protected boolean |
requiresRuntime(org.jboss.as.controller.OperationContext context) |
protected void |
rollbackRuntime(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.as.controller.registry.Resource resource) |
protected void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedException
populateModel
in class org.jboss.as.controller.AbstractAddStepHandler
operation
- the operationmodel
- persistent configuration model node that corresponds to the address of operation
org.jboss.as.controller.OperationFailedException
- if operation
is invalid or populating the model otherwise failsprotected boolean requiresRuntime(org.jboss.as.controller.OperationContext context)
requiresRuntime
in class org.jboss.as.controller.AbstractAddStepHandler
protected void performRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedException
operation
. Executes
after populateModel(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 org.jboss.as.controller.AbstractAddStepHandler
context
- the operation contextoperation
- the operation being executedmodel
- persistent configuration model node that corresponds to the address of operation
org.jboss.as.controller.OperationFailedException
- if operation
is invalid or updating the runtime otherwise failsprotected void rollbackRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.registry.Resource resource)
rollbackRuntime
in class org.jboss.as.controller.AbstractAddStepHandler
Copyright © 2016 JBoss by Red Hat. All rights reserved.