public class ProcessReloadHandler<T extends RunningModeControl> extends Object implements OperationStepHandler, DescriptionProvider
Modifier and Type | Field and Description |
---|---|
static String |
OPERATION_NAME
The operation name.
|
Constructor and Description |
---|
ProcessReloadHandler(org.jboss.msc.service.ServiceName rootService,
T runningModeControl,
ResourceDescriptionResolver resourceDescriptionResolver) |
Modifier and Type | Method and Description |
---|---|
protected void |
doReload(T runningModeControl,
boolean adminOnly,
boolean restartServers) |
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.
|
protected boolean |
isIncludeRestartServers() |
protected void |
reloadInitiated(T runningModeControl,
boolean adminOnly,
boolean restartServers) |
public static final String OPERATION_NAME
public ProcessReloadHandler(org.jboss.msc.service.ServiceName rootService, T runningModeControl, ResourceDescriptionResolver resourceDescriptionResolver)
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
context.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 OperationStepHandler
context
- the operation contextoperation
- the operation being executedOperationFailedException
- if the operation failed before calling context.completeStep()
public org.jboss.dmr.ModelNode getModelDescription(Locale locale)
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 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 boolean isIncludeRestartServers()
protected void reloadInitiated(T runningModeControl, boolean adminOnly, boolean restartServers)
protected void doReload(T runningModeControl, boolean adminOnly, boolean restartServers)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.