public class ClusterConnectionControlHandler extends AbstractHornetQComponentControlHandler<org.hornetq.api.core.management.ClusterConnectionControl>
ClusterConnectionControl
.Modifier and Type | Field and Description |
---|---|
static ClusterConnectionControlHandler |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected String |
getDescriptionPrefix() |
protected org.hornetq.api.core.management.ClusterConnectionControl |
getHornetQComponentControl(org.hornetq.core.server.HornetQServer hqServer,
PathAddress address)
Gets the
HornetQComponentControl implementation used by this handler. |
protected Object |
handleOperation(String operationName,
OperationContext context,
org.jboss.dmr.ModelNode operation)
Hook to allow subclasses to handle operations other than
read-attribute , start and
stop . |
protected void |
handleReadAttribute(String attributeName,
OperationContext context,
org.jboss.dmr.ModelNode operation)
Hook to allow subclasses to handle read-attribute requests for attributes other than
CommonAttributes.STARTED . |
executeRuntimeStep, getHornetQComponentControl, handleRevertOperation, registerAttributes, registerOperations, unsupportedAttribute, unsupportedOperation
execute, resourceMustExist, waitFor
public static final ClusterConnectionControlHandler INSTANCE
protected org.hornetq.api.core.management.ClusterConnectionControl getHornetQComponentControl(org.hornetq.core.server.HornetQServer hqServer, PathAddress address)
AbstractHornetQComponentControlHandler
HornetQComponentControl
implementation used by this handler.getHornetQComponentControl
in class AbstractHornetQComponentControlHandler<org.hornetq.api.core.management.ClusterConnectionControl>
hqServer
- the HornetQServer installed in the runtimeaddress
- the address being invokedprotected String getDescriptionPrefix()
getDescriptionPrefix
in class AbstractHornetQComponentControlHandler<org.hornetq.api.core.management.ClusterConnectionControl>
protected void handleReadAttribute(String attributeName, OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractHornetQComponentControlHandler
CommonAttributes.STARTED
.
Implementations must not call any of the
context.completeStep variants
.
This default implementation just throws the exception returned by AbstractHornetQComponentControlHandler.unsupportedAttribute(String)
.
handleReadAttribute
in class AbstractHornetQComponentControlHandler<org.hornetq.api.core.management.ClusterConnectionControl>
attributeName
- the name of the attributecontext
- the operation contextOperationFailedException
protected Object handleOperation(String operationName, OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractHornetQComponentControlHandler
read-attribute
, start
and
stop
. Implementations must not call any of the
context.completeStep variants
.
This default implementation just throws the exception returned by AbstractHornetQComponentControlHandler.unsupportedOperation(String)
.
handleOperation
in class AbstractHornetQComponentControlHandler<org.hornetq.api.core.management.ClusterConnectionControl>
operationName
- the name of the operationcontext
- the operation contextoperation
- the operationAbstractHornetQComponentControlHandler.handleRevertOperation(String, org.jboss.as.controller.OperationContext, org.jboss.dmr.ModelNode, Object)
if the operation should be reverted. A value of null
is an indication that no reversible
modification was madeOperationFailedException
Copyright © 2013 JBoss by Red Hat. All rights reserved.