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 ActiveMQ
org.apache.activemq.api.core.management.ClusterConnectionControl.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatTopology(String topology) protected org.apache.activemq.artemis.api.core.management.ClusterConnectionControlgetActiveMQComponentControl(ActiveMQBroker activeMQServer, org.jboss.as.controller.PathAddress address) Gets theActiveMQComponentControlimplementation used by this handler.protected Stringprotected 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, unsupportedOperationMethods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler
execute, requiresRuntime, resourceMustExist
-
Field Details
-
INSTANCE
-
-
Method Details
-
getActiveMQComponentControl
protected org.apache.activemq.artemis.api.core.management.ClusterConnectionControl getActiveMQComponentControl(ActiveMQBroker 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
- 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
-
formatTopology
-
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, OperationContext, 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
-