public class JGroupsSubsystemAdd extends AbstractBoottimeAddStepHandler
| Modifier and Type | Field and Description |
|---|---|
static JGroupsSubsystemAdd |
INSTANCE |
attributes| Constructor and Description |
|---|
JGroupsSubsystemAdd() |
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
createResource(OperationContext context)
Create the
Resource that the AbstractAddStepHandler.execute(OperationContext, ModelNode)
method operates on. |
protected org.jboss.msc.service.ServiceController<ChannelFactory> |
installDefaultChannelFactoryService(org.jboss.msc.service.ServiceTarget target,
String stack,
ServiceVerificationHandler verificationHandler) |
protected org.jboss.msc.service.ServiceController<ProtocolDefaults> |
installProtocolDefaultsService(org.jboss.msc.service.ServiceTarget target,
ServiceVerificationHandler verificationHandler) |
protected void |
performBoottime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
ServiceVerificationHandler verificationHandler,
List<org.jboss.msc.service.ServiceController<?>> newControllers)
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 model)
Populate the given node in the persistent configuration model based on the values in the given operation.
|
protected boolean |
requiresRuntimeVerification()
Gets whether the
ServiceVerificationHandler parameter passed to
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)
should be added to the operation context as a step. |
performRuntime, rollbackRuntimeexecute, populateModel, populateModel, requiresRuntimepublic static final JGroupsSubsystemAdd INSTANCE
protected Resource createResource(OperationContext context)
AbstractAddStepHandlerResource that the AbstractAddStepHandler.execute(OperationContext, ModelNode)
method operates on.createResource in class AbstractAddStepHandlercontext - the operation contextprotected 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 void performBoottime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> newControllers) throws OperationFailedException
AbstractBoottimeAddStepHandleroperation. Will only be
invoked if OperationContext.isBooting() returns true.performBoottime in class AbstractBoottimeAddStepHandlercontext - the operation contextoperation - the operation being executedmodel - persistent configuration model node that corresponds to the address of operationverificationHandler - 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 stagenewControllers - 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
AbstractBoottimeAddStepHandler.rollbackRuntime(OperationContext, ModelNode, ModelNode, java.util.List) to automatically removed
the newly added servicesOperationFailedException - if operation is invalid or updating the runtime otherwise failsprotected org.jboss.msc.service.ServiceController<ProtocolDefaults> installProtocolDefaultsService(org.jboss.msc.service.ServiceTarget target, ServiceVerificationHandler verificationHandler)
protected org.jboss.msc.service.ServiceController<ChannelFactory> installDefaultChannelFactoryService(org.jboss.msc.service.ServiceTarget target, String stack, ServiceVerificationHandler verificationHandler)
protected boolean requiresRuntimeVerification()
AbstractAddStepHandlerServiceVerificationHandler parameter passed to
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)
should be added to the operation context as a step.
This default implementation always returns true.
requiresRuntimeVerification in class AbstractAddStepHandlertrue if the service verification step should be added; false if it's not necessary.Copyright © 2014 JBoss by Red Hat. All rights reserved.