Package org.jboss.as.server.services.net
Class ClientMappingsHandler
java.lang.Object
org.jboss.as.controller.AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
org.jboss.as.server.services.net.ClientMappingsHandler
- All Implemented Interfaces:
OperationStepHandler
public class ClientMappingsHandler
extends AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
Handler for changing the client mappings on a socket binding.
- Author:
- Jason T. Greene
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T extends Object> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapplyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, AbstractWriteAttributeHandler.HandbackHolder<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo> handbackHolder) protected booleanIndicates if a change requires a reload, regardless of whether the socket-binding was bound or not.protected voidrevertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo handback) Methods inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
execute, finishModelStage, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntime, validateUpdatedModel
-
Field Details
-
INSTANCE
-
-
Method Details
-
requiresRestart
protected boolean requiresRestart()Indicates if a change requires a reload, regardless of whether the socket-binding was bound or not.- Returns:
trueif a reload is required,falseotherwise
-
applyUpdateToRuntime
protected boolean applyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, AbstractWriteAttributeHandler.HandbackHolder<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo> handbackHolder) throws OperationFailedException - Specified by:
applyUpdateToRuntimein classAbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>- Throws:
OperationFailedException
-
revertUpdateToRuntime
protected void revertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo handback) throws OperationFailedException - Specified by:
revertUpdateToRuntimein classAbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>- Throws:
OperationFailedException
-