Class Invoker
- java.lang.Object
-
- org.opennms.netmgt.vmmgr.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 Summary
Constructors Constructor Description Invoker()
Constructor for Invoker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvokeAtType
getAtType()
getAtTypevoid
getObjectInstances()
getObjectInstancesjavax.management.MBeanServer
getServer()
getServerjava.util.List<org.opennms.netmgt.vmmgr.InvokerService>
getServices()
getServicesvoid
instantiateClasses()
instantiateClassesjava.util.List<org.opennms.netmgt.vmmgr.InvokerResult>
invokeMethods()
invokeMethodsboolean
isFailFast()
isFailFastboolean
isReverse()
isReversevoid
setAtType(InvokeAtType atType)
setAtTypevoid
setFailFast(boolean failFast)
setFailFastvoid
setReverse(boolean reverse)
setReversevoid
setServer(javax.management.MBeanServer server)
setServervoid
setServices(java.util.List<org.opennms.netmgt.vmmgr.InvokerService> services)
setServices
-
-
-
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.
-
getAtType
public InvokeAtType getAtType()
getAtType
- Returns:
- a
InvokeAtType
object.
-
setAtType
public void setAtType(InvokeAtType atType)
setAtType
- Parameters:
atType
- aInvokeAtType
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
- aMBeanServer
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
- aList
object.
-
-