|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.vmmgr.Controller
public class Controller
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
| Field Summary | |
|---|---|
static String |
DEFAULT_INVOKER_URL
Default invoker URL. |
| Constructor Summary | |
|---|---|
Controller()
|
|
| Method Summary | |
|---|---|
int |
check()
|
int |
exit()
|
Authenticator |
getAuthenticator()
|
int |
getHttpRequestReadTimeout()
|
String |
getInvokeUrl()
|
boolean |
isVerbose()
|
static void |
main(String[] argv)
|
void |
setAuthenticator(Authenticator authenticator)
|
void |
setHttpRequestReadTimeout(int httpRequestReadTimeout)
|
void |
setInvokeUrl(String invokerUrl)
|
void |
setVerbose(boolean verbose)
|
void |
start()
Start the OpenNMS daemon. |
int |
status()
|
int |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_INVOKER_URL
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
public static void main(String[] argv)
public void start()
public int stop()
public int status()
public int check()
public int exit()
public boolean isVerbose()
public void setVerbose(boolean verbose)
public String getInvokeUrl()
public void setInvokeUrl(String invokerUrl)
public Authenticator getAuthenticator()
public void setAuthenticator(Authenticator authenticator)
public int getHttpRequestReadTimeout()
public void setHttpRequestReadTimeout(int httpRequestReadTimeout)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||