public class CDConfigPropertyAdd extends AbstractAddStepHandler implements DescriptionProvider
Modifier and Type | Field and Description |
---|---|
static CDConfigPropertyAdd |
INSTANCE |
Constructor and Description |
---|
CDConfigPropertyAdd() |
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
getModelDescription(Locale locale)
Description provider for the add operation
|
protected void |
performRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<org.jboss.msc.service.ServiceController<?>> serviceControllers)
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 modelNode)
Populate the given node in the persistent configuration model based on the values in the given operation.
|
execute, populateModel, populateModel, requiresRuntime, requiresRuntimeVerification, rollbackRuntime
public static final CDConfigPropertyAdd INSTANCE
public org.jboss.dmr.ModelNode getModelDescription(Locale locale)
getModelDescription
in interface DescriptionProvider
locale
- the locale to use to generate any localized text used in the description.
May be null
, in which case Locale.getDefault()
should be usedModelNode
describing the model node's structureprotected void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode modelNode) throws OperationFailedException
AbstractAddStepHandler
populateModel
in class AbstractAddStepHandler
operation
- the operationmodelNode
- persistent configuration model node that corresponds to the address of operation
OperationFailedException
- if operation
is invalid or populating the model otherwise failsprotected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode recoveryEnvModel, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> serviceControllers) throws OperationFailedException
AbstractAddStepHandler
operation
. Executes
after AbstractAddStepHandler.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 AbstractAddStepHandler
context
- the operation contextoperation
- the operation being executedrecoveryEnvModel
- persistent configuration model node that corresponds to the address of operation
verificationHandler
- 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 stage
serviceControllers
- 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
AbstractAddStepHandler.rollbackRuntime(OperationContext, ModelNode, ModelNode, java.util.List)
to automatically removed
the newly added servicesOperationFailedException
- if operation
is invalid or updating the runtime otherwise failsCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.