public abstract static class PoolConfigurationRWHandler.PoolConfigurationWriteHandler extends AbstractWriteAttributeHandler<List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration>>
AbstractWriteAttributeHandler.HandbackHolder<T>
Modifier | Constructor and Description |
---|---|
protected |
PoolConfigurationRWHandler.PoolConfigurationWriteHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
applyUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String parameterName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode currentValue,
AbstractWriteAttributeHandler.HandbackHolder<List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration>> handbackHolder)
Hook to allow subclasses to make runtime changes to effect the attribute value change.
|
protected abstract List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration> |
getMatchingPoolConfigs(String jndiName,
org.jboss.jca.core.api.management.ManagementRepository repository) |
protected void |
revertUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String parameterName,
org.jboss.dmr.ModelNode valueToRestore,
org.jboss.dmr.ModelNode valueToRevert,
List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration> handback)
Hook to allow subclasses to revert runtime changes made in
AbstractWriteAttributeHandler.applyUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, HandbackHolder) . |
protected void |
validateResolvedValue(String attributeName,
org.jboss.dmr.ModelNode resolvedValue)
If a resolved value validator was passed to the constructor, uses it to validate the value.
|
protected void |
validateUnresolvedValue(String attributeName,
org.jboss.dmr.ModelNode unresolvedValue)
If an unresolved value validator was passed to the constructor, uses it to validate the value.
|
execute, getAttributeDefinition, requiresRuntime
protected PoolConfigurationRWHandler.PoolConfigurationWriteHandler()
protected boolean applyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String parameterName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue, AbstractWriteAttributeHandler.HandbackHolder<List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration>> handbackHolder) throws OperationFailedException
AbstractWriteAttributeHandler
applyUpdateToRuntime
in class AbstractWriteAttributeHandler<List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration>>
context
- the context of the operationoperation
- the operationparameterName
- the name of the attribute being modifiednewValue
- 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 restart to effect the attribute
value change; false
if notOperationFailedException
protected void revertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String parameterName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration> handback) throws OperationFailedException
AbstractWriteAttributeHandler
AbstractWriteAttributeHandler.applyUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, HandbackHolder)
.revertUpdateToRuntime
in class AbstractWriteAttributeHandler<List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration>>
context
- the context of the operationoperation
- the operationparameterName
- 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
protected void validateUnresolvedValue(String attributeName, org.jboss.dmr.ModelNode unresolvedValue) throws OperationFailedException
AbstractWriteAttributeHandler
validateUnresolvedValue
in class AbstractWriteAttributeHandler<List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration>>
attributeName
- the name of the attribute being updatedunresolvedValue
- the unresolved valueOperationFailedException
protected void validateResolvedValue(String attributeName, org.jboss.dmr.ModelNode resolvedValue) throws OperationFailedException
AbstractWriteAttributeHandler
validateResolvedValue
in class AbstractWriteAttributeHandler<List<org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration>>
attributeName
- the name of the attribute being updatedresolvedValue
- the resolved valueOperationFailedException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.