Class Invoker


  • public class Invoker
    extends java.lang.Object

    The Manager is responsible for launching/starting all services in the VM that it is started for. The Manager operates in two modes, normal and server

    normal mode: In the normal mode, the Manager starts all services configured for its VM in the service-configuration.xml and starts listening for control events on the 'control-broadcast' JMS topic for stop control messages for itself

    server mode: In the server mode, the Manager starts up and listens on the 'control-broadcast' JMS topic for 'start' control messages for services in its VM and a stop control message for itself. When a start for a service is received, it launches only that service and sends a successful 'running' or an 'error' response to the Controller

    Note: The Manager is NOT intelligent - if it receives a stop control event, it will exit - does not check to see if the services its started are all stopped

    Author:
    Brian Weaver, Sowmya Nataraj
    • Constructor Detail

      • Invoker

        public Invoker()

        Constructor for Invoker.

    • Method Detail

      • instantiateClasses

        public void instantiateClasses()

        instantiateClasses

      • getObjectInstances

        public void getObjectInstances()

        getObjectInstances

      • invokeMethods

        public java.util.List<org.opennms.netmgt.vmmgr.InvokerResult> invokeMethods()

        invokeMethods

        Returns:
        a List object.
      • isFailFast

        public boolean isFailFast()

        isFailFast

        Returns:
        a boolean.
      • setFailFast

        public void setFailFast​(boolean failFast)

        setFailFast

        Parameters:
        failFast - a boolean.
      • isReverse

        public boolean isReverse()

        isReverse

        Returns:
        a boolean.
      • setReverse

        public void setReverse​(boolean reverse)

        setReverse

        Parameters:
        reverse - a boolean.
      • getServer

        public javax.management.MBeanServer getServer()

        getServer

        Returns:
        a MBeanServer object.
      • setServer

        public void setServer​(javax.management.MBeanServer server)

        setServer

        Parameters:
        server - a MBeanServer object.
      • getServices

        public java.util.List<org.opennms.netmgt.vmmgr.InvokerService> getServices()

        getServices

        Returns:
        a List object.
      • setServices

        public void setServices​(java.util.List<org.opennms.netmgt.vmmgr.InvokerService> services)

        setServices

        Parameters:
        services - a List object.