Class ClusterConnectionControlHandler
- java.lang.Object
-
- org.jboss.as.controller.AbstractRuntimeOnlyHandler
-
- org.wildfly.extension.messaging.activemq.AbstractActiveMQComponentControlHandler<org.apache.activemq.artemis.api.core.management.ClusterConnectionControl>
-
- org.wildfly.extension.messaging.activemq.ClusterConnectionControlHandler
-
- All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler
public class ClusterConnectionControlHandler extends AbstractActiveMQComponentControlHandler<org.apache.activemq.artemis.api.core.management.ClusterConnectionControl>
Handler for runtime operations that interact with a ActiveMQorg.apache.activemq.api.core.management.ClusterConnectionControl.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static ClusterConnectionControlHandlerINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringformatTopology(String topology)protected org.apache.activemq.artemis.api.core.management.ClusterConnectionControlgetActiveMQComponentControl(org.apache.activemq.artemis.core.server.ActiveMQServer activeMQServer, org.jboss.as.controller.PathAddress address)Gets theActiveMQComponentControlimplementation used by this handler.protected StringgetDescriptionPrefix()protected ObjecthandleOperation(String operationName, org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)Hook to allow subclasses to handle operations other thanread-attribute,startandstop.protected voidhandleReadAttribute(String attributeName, org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)Hook to allow subclasses to handle read-attribute requests for attributes other thanCommonAttributes.STARTED.-
Methods inherited from class org.wildfly.extension.messaging.activemq.AbstractActiveMQComponentControlHandler
executeRuntimeStep, getActiveMQComponentControl, handleRevertOperation, registerAttributes, registerOperations, unsupportedAttribute, unsupportedOperation
-
-
-
-
Field Detail
-
INSTANCE
public static final ClusterConnectionControlHandler INSTANCE
-
-
Method Detail
-
getActiveMQComponentControl
protected org.apache.activemq.artemis.api.core.management.ClusterConnectionControl getActiveMQComponentControl(org.apache.activemq.artemis.core.server.ActiveMQServer activeMQServer, org.jboss.as.controller.PathAddress address)Description copied from class:AbstractActiveMQComponentControlHandlerGets theActiveMQComponentControlimplementation used by this handler.- Specified by:
getActiveMQComponentControlin classAbstractActiveMQComponentControlHandler<org.apache.activemq.artemis.api.core.management.ClusterConnectionControl>- Parameters:
activeMQServer- the ActiveMQ server installed in the runtimeaddress- the address being invoked- Returns:
- the runtime ActiveMQ control object associated with the given address
-
getDescriptionPrefix
protected String getDescriptionPrefix()
- Specified by:
getDescriptionPrefixin classAbstractActiveMQComponentControlHandler<org.apache.activemq.artemis.api.core.management.ClusterConnectionControl>
-
handleReadAttribute
protected void handleReadAttribute(String attributeName, org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException
Description copied from class:AbstractActiveMQComponentControlHandlerHook to allow subclasses to handle read-attribute requests for attributes other thanCommonAttributes.STARTED. Implementations must not call any of thecontext.completeStep variants.This default implementation just throws the exception returned by
AbstractActiveMQComponentControlHandler.unsupportedAttribute(String).- Overrides:
handleReadAttributein classAbstractActiveMQComponentControlHandler<org.apache.activemq.artemis.api.core.management.ClusterConnectionControl>- Parameters:
attributeName- the name of the attributecontext- the operation context- Throws:
org.jboss.as.controller.OperationFailedException
-
handleOperation
protected Object handleOperation(String operationName, org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException
Description copied from class:AbstractActiveMQComponentControlHandlerHook to allow subclasses to handle operations other thanread-attribute,startandstop. Implementations must not call any of thecontext.completeStep variants.This default implementation just throws the exception returned by
AbstractActiveMQComponentControlHandler.unsupportedOperation(String).- Overrides:
handleOperationin classAbstractActiveMQComponentControlHandler<org.apache.activemq.artemis.api.core.management.ClusterConnectionControl>- Parameters:
operationName- the name of the operationcontext- the operation contextoperation- the operation- Returns:
- an object that can be passed back in
AbstractActiveMQComponentControlHandler.handleRevertOperation(String, org.jboss.as.controller.OperationContext, org.jboss.dmr.ModelNode, Object)if the operation should be reverted. A value ofnullis an indication that no reversible modification was made - Throws:
org.jboss.as.controller.OperationFailedException
-
-