public class SystemPropertyAddHandler extends Object implements OperationStepHandler, DescriptionProvider
| Modifier and Type | Field and Description |
|---|---|
static SystemPropertyAddHandler |
INSTANCE_WITH_BOOTTIME |
static SystemPropertyAddHandler |
INSTANCE_WITHOUT_BOOTTIME |
static String |
OPERATION_NAME |
| Constructor and Description |
|---|
SystemPropertyAddHandler(ProcessEnvironment processEnvironment,
boolean useBoottime)
Create the SystemPropertyAddHandler
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step.
|
org.jboss.dmr.ModelNode |
getModelDescription(Locale locale)
Gets the descriptive information (human-friendly description, list of attributes,
list of children) describing a single model node or operation.
|
static org.jboss.dmr.ModelNode |
getOperation(org.jboss.dmr.ModelNode address,
String value) |
static org.jboss.dmr.ModelNode |
getOperation(org.jboss.dmr.ModelNode address,
String value,
Boolean boottime) |
protected boolean |
requiresRuntimeVerification() |
public static final String OPERATION_NAME
public static final SystemPropertyAddHandler INSTANCE_WITH_BOOTTIME
public static final SystemPropertyAddHandler INSTANCE_WITHOUT_BOOTTIME
public SystemPropertyAddHandler(ProcessEnvironment processEnvironment, boolean useBoottime)
processEnvironment - the local process environment, or null if interaction with the process
environment is not requireduseBoottime - true if the system property resource should support the "boot-time" attributepublic static org.jboss.dmr.ModelNode getOperation(org.jboss.dmr.ModelNode address,
String value)
public static org.jboss.dmr.ModelNode getOperation(org.jboss.dmr.ModelNode address,
String value,
Boolean boottime)
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationStepHandlercontext.getFailureDescroption()
must be called, or OperationFailedException must be thrown, before calling context.completeStep().
If the operation succeeded, context.getResult() should
be called and the result populated with the outcome, after which context.completeStep()
must be called.
When this method is invoked the thread context classloader will
be set to be the defining class loader of the class that implements this interface.
execute in interface OperationStepHandlercontext - the operation contextoperation - the operation being executedOperationFailedException - if the operation failed before calling context.completeStep()protected boolean requiresRuntimeVerification()
public org.jboss.dmr.ModelNode getModelDescription(Locale locale)
DescriptionProvider
The implementation must assume that the caller intends to modify the
returned ModelNode so it should not hand out a reference to any internal data structures.
getModelDescription in interface DescriptionProviderlocale - 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 structureCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.