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 InvokeAtType
getAtType()
getAtTypevoid
getObjectInstances()
MBeanServer
getServer()
getServerList<org.opennms.netmgt.vmmgr.InvokerService>
getServices()
getServicesPath
getStatusPath()
void
instantiateClasses()
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(MBeanServer server)
setServervoid
setServices(List<org.opennms.netmgt.vmmgr.InvokerService> services)
setServicesvoid
setStatusPath(Path statusPath)
-
-
-
Method Detail
-
instantiateClasses
public void instantiateClasses()
-
getObjectInstances
public void getObjectInstances()
-
invokeMethods
public List<org.opennms.netmgt.vmmgr.InvokerResult> invokeMethods()
invokeMethods
- Returns:
- a
List
object.
-
getStatusPath
public Path getStatusPath()
-
setStatusPath
public void setStatusPath(Path statusPath)
-
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 MBeanServer getServer()
getServer
- Returns:
- a
MBeanServer
object.
-
setServer
public void setServer(MBeanServer server)
setServer
- Parameters:
server
- aMBeanServer
object.
-
getServices
public List<org.opennms.netmgt.vmmgr.InvokerService> getServices()
getServices
- Returns:
- a
List
object.
-
-