public class ProtocolStackAdd extends AbstractAddStepHandler
Modifier and Type | Field and Description |
---|---|
static ProtocolStackAdd |
INSTANCE |
attributes
Constructor and Description |
---|
ProtocolStackAdd() |
Modifier and Type | Method and Description |
---|---|
static List<org.jboss.dmr.Property> |
getOrderedProtocolPropertyList(org.jboss.dmr.ModelNode stack) |
protected org.jboss.msc.service.ServiceController<ChannelFactory> |
installChannelFactoryService(org.jboss.msc.service.ServiceTarget target,
String name,
String diagnosticsSocketBinding,
String defaultExecutor,
String oobExecutor,
String timerExecutor,
String threadFactory,
String transportSocketBinding,
List<Map.Entry<org.jboss.as.clustering.jgroups.subsystem.ProtocolStackAdd.Protocol,String>> protocolSocketBindings,
org.jboss.as.clustering.jgroups.subsystem.ProtocolStackAdd.Transport transportConfig,
org.jboss.as.clustering.jgroups.subsystem.ProtocolStackAdd.ProtocolStack stackConfig,
List<Map.Entry<String,org.jboss.msc.inject.Injector<ChannelFactory>>> stacks,
ServiceVerificationHandler verificationHandler) |
protected void |
installRuntimeServices(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
ServiceVerificationHandler verificationHandler,
List<org.jboss.msc.service.ServiceController<?>> newControllers) |
protected void |
performRuntime(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 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 void |
removeRuntimeServices(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model) |
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. |
createResource, execute, populateModel, requiresRuntime, rollbackRuntime
public static final ProtocolStackAdd INSTANCE
protected 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 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 performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> newControllers) throws OperationFailedException
AbstractAddStepHandler
operation
. Executes
after AbstractAddStepHandler.populateModel(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)
, so the given model
parameter will reflect any changes made in that method.
This default implementation does nothing.
performRuntime
in class AbstractAddStepHandler
context
- the operation contextoperation
- the operation being executedmodel
- persistent configuration model node that corresponds to the address of operation
verificationHandler
- 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 stage
newControllers
- 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
AbstractAddStepHandler.rollbackRuntime(OperationContext, ModelNode, ModelNode, java.util.List)
to automatically removed
the newly added servicesOperationFailedException
- if operation
is invalid or updating the runtime otherwise failsprotected void installRuntimeServices(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> newControllers) throws OperationFailedException
OperationFailedException
protected void removeRuntimeServices(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
OperationFailedException
protected org.jboss.msc.service.ServiceController<ChannelFactory> installChannelFactoryService(org.jboss.msc.service.ServiceTarget target, String name, String diagnosticsSocketBinding, String defaultExecutor, String oobExecutor, String timerExecutor, String threadFactory, String transportSocketBinding, List<Map.Entry<org.jboss.as.clustering.jgroups.subsystem.ProtocolStackAdd.Protocol,String>> protocolSocketBindings, org.jboss.as.clustering.jgroups.subsystem.ProtocolStackAdd.Transport transportConfig, org.jboss.as.clustering.jgroups.subsystem.ProtocolStackAdd.ProtocolStack stackConfig, List<Map.Entry<String,org.jboss.msc.inject.Injector<ChannelFactory>>> stacks, ServiceVerificationHandler verificationHandler)
public static List<org.jboss.dmr.Property> getOrderedProtocolPropertyList(org.jboss.dmr.ModelNode stack)
protected boolean requiresRuntimeVerification()
AbstractAddStepHandler
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.
This default implementation always returns true
.
requiresRuntimeVerification
in class AbstractAddStepHandler
true
if the service verification step should be added; false
if it's not necessary.Copyright © 2014 JBoss by Red Hat. All rights reserved.