Class ActiveMQActivationService
java.lang.Object
org.wildfly.extension.messaging.activemq.ActiveMQActivationService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<Void>,org.jboss.msc.value.Value<Void>
public class ActiveMQActivationService
extends Object
implements org.jboss.msc.service.Service<Void>
A service that can be dependent on to ensure the ActiveMQ server is active.
ActiveMQ servers can be passive when they are configured as backup and wait for a live node to fail.
In this passive state, the server does not accept connections or create resources.
This service must be used by any service depending on an ActiveMQ server being active.
- Author:
- Jeff Mesnil (c) 2013 Red Hat inc.
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jboss.msc.service.ServiceNamegetServiceName(org.jboss.msc.service.ServiceName serverName) getValue()static booleanignoreOperationIfServerNotActive(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) static booleanisActiveMQServerActive(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) static booleanisActiveMQServerActive(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName activeMQServerServiceName) static booleanrollbackOperationIfServerNotActive(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Constructor Details
-
ActiveMQActivationService
public ActiveMQActivationService()
-
-
Method Details
-
getServiceName
public static org.jboss.msc.service.ServiceName getServiceName(org.jboss.msc.service.ServiceName serverName) -
isActiveMQServerActive
public static boolean isActiveMQServerActive(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) -
isActiveMQServerActive
public static boolean isActiveMQServerActive(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName activeMQServerServiceName) -
rollbackOperationIfServerNotActive
public static boolean rollbackOperationIfServerNotActive(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) -
ignoreOperationIfServerNotActive
public static boolean ignoreOperationIfServerNotActive(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) -
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<Void>- Throws:
IllegalStateExceptionIllegalArgumentException
-