public class LoadMetricAdd extends AbstractAddStepHandler
attributes| Modifier and Type | Method and Description |
|---|---|
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 |
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(OperationContext context)
|
protected void |
rollbackRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
List<org.jboss.msc.service.ServiceController<?>> controllers)
|
createResource, execute, populateModel, populateModel, requiresRuntimeVerificationprotected void populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
throws OperationFailedException
populateModel in class AbstractAddStepHandleroperation - the operationmodel - persistent configuration model node that corresponds to the address of operationOperationFailedException - if operation is invalid or populating the model otherwise failsprotected boolean requiresRuntime(OperationContext context)
AbstractAddStepHandlerAbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)}
should be called. This default implementation always returns true. Subclasses that perform no runtime
update could override and return false.requiresRuntime in class AbstractAddStepHandlercontext - operation contexttrue if performRuntime should be invoked; false otherwise.protected 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
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 AbstractAddStepHandlercontext - 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
rollbackRuntime(org.jboss.as.controller.OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.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)
AbstractAddStepHandlerAbstractAddStepHandler.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 AbstractAddStepHandlercontext - 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
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)Copyright © 2014 JBoss by Red Hat. All rights reserved.