Package org.jboss.as.server.services.net
Class BindingMulticastPortHandler
- java.lang.Object
-
- org.jboss.as.controller.AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
-
- org.jboss.as.server.services.net.BindingMulticastPortHandler
-
- All Implemented Interfaces:
OperationStepHandler
public class BindingMulticastPortHandler extends AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
Handler for changing the multicast-port on a socket binding.- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static BindingMulticastPortHandlerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 booleanrequiresRestart()Indicates 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 Detail
-
INSTANCE
public static final BindingMulticastPortHandler INSTANCE
-
-
Method Detail
-
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
-
-