org.opennms.netmgt.vmmgr
Class Invoker

java.lang.Object
  extended by org.opennms.netmgt.vmmgr.Invoker

public class Invoker
extends Object

The Manager is reponsible 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 messge 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, OpenNMS.org

Constructor Summary
Invoker()
           
 
Method Summary
 InvokeAtType getAtType()
           
static ServiceConfigFactory getDefaultServiceConfigFactory()
           
 void getObjectInstances()
           
 MBeanServer getServer()
           
 List<org.opennms.netmgt.vmmgr.InvokerService> getServices()
           
 void instantiateClasses()
           
 List<org.opennms.netmgt.vmmgr.InvokerResult> invokeMethods()
           
 boolean isFailFast()
           
 boolean isReverse()
           
 void setAtType(InvokeAtType atType)
           
 void setFailFast(boolean failFast)
           
 void setReverse(boolean reverse)
           
 void setServer(MBeanServer server)
           
 void setServices(List<org.opennms.netmgt.vmmgr.InvokerService> services)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invoker

public Invoker()
Method Detail

getDefaultServiceConfigFactory

public static ServiceConfigFactory getDefaultServiceConfigFactory()

instantiateClasses

public void instantiateClasses()

getObjectInstances

public void getObjectInstances()

invokeMethods

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

getAtType

public InvokeAtType getAtType()

setAtType

public void setAtType(InvokeAtType atType)

isFailFast

public boolean isFailFast()

setFailFast

public void setFailFast(boolean failFast)

isReverse

public boolean isReverse()

setReverse

public void setReverse(boolean reverse)

getServer

public MBeanServer getServer()

setServer

public void setServer(MBeanServer server)

getServices

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

setServices

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


Copyright © 2009. All Rights Reserved.