public class BindingInterfaceHandler extends AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
AbstractWriteAttributeHandler.HandbackHolder<T>
Modifier and Type | Field and Description |
---|---|
static BindingInterfaceHandler |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
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)
Hook to allow subclasses to make runtime changes to effect the attribute value change.
|
protected boolean |
requiresRestart()
Indicates if a change requires a reload, regardless of whether the socket-binding was bound or not.
|
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)
Hook to allow subclasses to revert runtime changes made in
AbstractWriteAttributeHandler.applyUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, HandbackHolder) . |
protected void |
validateUpdatedModel(OperationContext context,
Resource model)
Hook to allow subclasses to validate the model following the application of the new attribute value.
|
execute, finishModelStage, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntime
public static final BindingInterfaceHandler INSTANCE
protected void validateUpdatedModel(OperationContext context, Resource model) throws OperationFailedException
AbstractWriteAttributeHandler
validateUpdatedModel
in class AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
context
- the operation contextmodel
- the updated model resourceOperationFailedException
protected boolean requiresRestart()
true
if a reload is required, false
otherwiseprotected 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
AbstractWriteAttributeHandler
applyUpdateToRuntime
in class AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
context
- the context of the operationoperation
- the operationattributeName
- the name of the attribute being modifiedresolvedValue
- the new value for the attribute, after ModelNode.resolve()
has been called on itcurrentValue
- the existing value for the attributehandbackHolder
- holder for an arbitrary object to pass to
AbstractWriteAttributeHandler.revertUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, Object)
if
the operation needs to be rolled backtrue
if the server requires reload to effect the attribute
value change; false
if notOperationFailedException
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
AbstractWriteAttributeHandler
AbstractWriteAttributeHandler.applyUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, HandbackHolder)
.revertUpdateToRuntime
in class AbstractWriteAttributeHandler<org.jboss.as.server.services.net.AbstractBindingWriteHandler.RollbackInfo>
context
- the context of the operationoperation
- the operationattributeName
- the name of the attribute being modifiedvalueToRestore
- the previous value for the attribute, before this operation was executedvalueToRevert
- the new value for the attribute that should be revertedhandback
- an object, if any, passed in to the handbackHolder
by the applyUpdateToRuntime
implementationOperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.