com.tivoli.jmx.daemon
Class Launch
java.lang.Object
|
+--com.tivoli.jmx.daemon.Launch
- public class Launch
- extends java.lang.Object
- implements java.lang.Runnable
Used to launch the MBeanServer and any other neccessary JMX
startup classes. Starts a thread in run() in order to return to the
daemon/service calling program immediately. In the case of error calls the
native method errorHandler which notifies the calling daemon/service.
Dependent on the library jmx_error being on the system's library path.
- Version:
- 1.7
- Author:
- Kenneth Barron, Alessio Menale
Method Summary |
void |
errorHandler(int pid,
java.lang.String errmsg)
Native method defined in the library jmx_error.c (Unix) or jmx_error.C (NT)
to print error message and stop the daemon/service. |
static void |
halt()
Method exposed to the calling daemon used to stop the active Java processes |
static void |
main(java.lang.String[] args)
Main entry method called by the daemon process / NT Service. |
void |
run()
Sets up the neccessary MBean Server and/or Connection Agents. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Launch
public Launch()
errorHandler
public void errorHandler(int pid,
java.lang.String errmsg)
- Native method defined in the library jmx_error.c (Unix) or jmx_error.C (NT)
to print error message and stop the daemon/service.
main
public static void main(java.lang.String[] args)
- Main entry method called by the daemon process / NT Service.
Starts a new thread in order to return immediately.
run
public void run()
- Sets up the neccessary MBean Server and/or Connection Agents.
Insert any additional registration/setup here.
On error calls native method errorHandler.
Note, currently the HTTP Adaptor start method is onvoked here.
This method then goes into a polling state.
If you decide not to invoke the Adaptor, you should insert an alternative
loop here to keep the JVM alive, and adjust the halt method accordingly.
- Specified by:
- run in interface java.lang.Runnable
halt
public static void halt()
- Method exposed to the calling daemon used to stop the active Java processes