Class Invoker
- java.lang.Object
-
- org.opennms.netmgt.vmmgr.Invoker
-
public class Invoker extends 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 Summary
Constructors Constructor Description Invoker()Constructor for Invoker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvokeAtTypegetAtType()getAtTypevoidgetObjectInstances()MBeanServergetServer()getServerList<org.opennms.netmgt.vmmgr.InvokerService>getServices()getServicesPathgetStatusPath()voidinstantiateClasses()List<org.opennms.netmgt.vmmgr.InvokerResult>invokeMethods()invokeMethodsbooleanisFailFast()isFailFastbooleanisReverse()isReversevoidsetAtType(InvokeAtType atType)setAtTypevoidsetFailFast(boolean failFast)setFailFastvoidsetReverse(boolean reverse)setReversevoidsetServer(MBeanServer server)setServervoidsetServices(List<org.opennms.netmgt.vmmgr.InvokerService> services)setServicesvoidsetStatusPath(Path statusPath)
-
-
-
Method Detail
-
instantiateClasses
public void instantiateClasses()
-
getObjectInstances
public void getObjectInstances()
-
invokeMethods
public List<org.opennms.netmgt.vmmgr.InvokerResult> invokeMethods()
invokeMethods
- Returns:
- a
Listobject.
-
getStatusPath
public Path getStatusPath()
-
setStatusPath
public void setStatusPath(Path statusPath)
-
getAtType
public InvokeAtType getAtType()
getAtType
- Returns:
- a
InvokeAtTypeobject.
-
setAtType
public void setAtType(InvokeAtType atType)
setAtType
- Parameters:
atType- aInvokeAtTypeobject.
-
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 MBeanServer getServer()
getServer
- Returns:
- a
MBeanServerobject.
-
setServer
public void setServer(MBeanServer server)
setServer
- Parameters:
server- aMBeanServerobject.
-
getServices
public List<org.opennms.netmgt.vmmgr.InvokerService> getServices()
getServices
- Returns:
- a
Listobject.
-
-