public class ServerAddHandler extends AbstractAddStepHandler
OperationHandler
adding a new server configuration.Modifier and Type | Field and Description |
---|---|
static String |
OPERATION_NAME |
attributes
Modifier and Type | Method and Description |
---|---|
static ServerAddHandler |
create(LocalHostControllerInfo hostControllerInfo) |
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 void |
populateModel(OperationContext context,
org.jboss.dmr.ModelNode operation,
Resource resource)
Populate the given resource in the persistent configuration model based on the values in the given operation.
|
protected boolean |
requiresRuntime(OperationContext context)
|
createResource, execute, performRuntime, populateModel, requiresRuntimeVerification, rollbackRuntime
public static final String OPERATION_NAME
public static ServerAddHandler create(LocalHostControllerInfo hostControllerInfo)
protected void populateModel(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
AbstractAddStepHandler
This default implementation simply calls AbstractAddStepHandler.populateModel(ModelNode, Resource)
.
populateModel
in class AbstractAddStepHandler
context
- the operation contextoperation
- the operationresource
- the resource that corresponds to the address of operation
OperationFailedException
- if operation
is invalid or populating the model otherwise failsprotected void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
AbstractAddStepHandler
populateModel
in class AbstractAddStepHandler
operation
- the operationmodel
- persistent configuration model node that corresponds to the address of operation
OperationFailedException
- if operation
is invalid or populating the model otherwise failsprotected boolean requiresRuntime(OperationContext context)
AbstractAddStepHandler
AbstractAddStepHandler.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 AbstractAddStepHandler
context
- operation contexttrue
if performRuntime
should be invoked; false
otherwise.Copyright © 2015 JBoss by Red Hat. All rights reserved.