public class ClusterConnectionControlHandler extends AbstractHornetQComponentControlHandler<org.hornetq.api.core.management.ClusterConnectionControl>
ClusterConnectionControl
.Modifier and Type | Field and Description |
---|---|
static String |
GET_NODES |
static String |
GET_STATIC_CONNECTORS_AS_JSON |
static ClusterConnectionControlHandler |
INSTANCE |
static String |
NODE_ID |
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 . |
void |
register(ManagementResourceRegistration registry) |
executeRuntimeStep, getHornetQComponentControl, handleRevertOperation, unsupportedAttribute, unsupportedOperation
execute, waitFor
public static final ClusterConnectionControlHandler INSTANCE
public static final String NODE_ID
public static final String GET_STATIC_CONNECTORS_AS_JSON
public static final String GET_NODES
public void register(ManagementResourceRegistration registry)
register
in class AbstractHornetQComponentControlHandler<org.hornetq.api.core.management.ClusterConnectionControl>
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 OperationContext.completeStep()
.
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 OperationContext.completeStep()
.
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, a division of Red Hat, Inc.. All rights reserved.