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, rollbackRuntimepublic 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 AbstractAddStepHandlercontext - the operation contextoperation - the operationresource - the resource that corresponds to the address of operationOperationFailedException - if operation is invalid or populating the model otherwise failsprotected void populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
throws OperationFailedException
AbstractAddStepHandlerpopulateModel 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.Copyright © 2014 JBoss by Red Hat. All rights reserved.