public class Manager extends Object implements ManagerMBean
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
Constructor and Description |
---|
Manager() |
Modifier and Type | Method and Description |
---|---|
void |
doSystemExit()
Uncleanly shutdown OpenNMS.
|
void |
doTestLoadLibraries()
doTestLoadLibraries
|
void |
dumpThreads()
dumpThreads
|
Long |
getUptime()
getUptime
|
void |
init()
Register shutdown hook to handle SIGTERM signal for the process.
|
List<String> |
status()
status
|
void |
stop()
stop
|
public void init()
init
in interface ManagerMBean
public void stop()
stop
stop
in interface ManagerMBean
public List<String> status()
status
status
in interface ManagerMBean
List
object.public void doSystemExit()
java.lang.System.exit(int)
, which causes the JVM to
exit immediately. This method is usually invoked via JMX from
another process as the last stage of shutting down OpenNMS.doSystemExit
in interface ManagerMBean
public void dumpThreads()
ManagerMBean
dumpThreads
dumpThreads
in interface ManagerMBean
public void doTestLoadLibraries()
doTestLoadLibraries
doTestLoadLibraries
in interface ManagerMBean
public Long getUptime()
ManagerMBean
getUptime
getUptime
in interface ManagerMBean
Long
expressing the time, in milliseconds,
since the manager first startedCopyright © 2021. All rights reserved.