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.
  • 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:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      Specified by:
      getValue in interface org.jboss.msc.value.Value<Void>
      Throws:
      IllegalStateException
      IllegalArgumentException