|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.StandardMBean
org.rutil.main.Main
public class Main
A main class (vm startable) that provides start/stop functionality for command line applications via MBeans. Command line applications that need the ability intiate a graceful shutdown (without killing them), need to implement MainProcess and use the implemenation along with class. Configuring the start command with JMX server options at startup is a pre-requisite for Start/Stop functionality.
e.g. If you implemented a MainProcess and named it TestProcess (and have it in the classpath),
MainProcess| Field Summary |
|---|
| Fields inherited from interface org.rutil.main.MainMBean |
|---|
MBEAN_NAME |
| Constructor Summary | |
|---|---|
Main()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
void |
start(org.rutil.main.MainArgs mainArgs)
|
void |
stop()
|
| Methods inherited from class javax.management.StandardMBean |
|---|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
throws javax.management.NotCompliantMBeanException
javax.management.NotCompliantMBeanException| Method Detail |
|---|
public void start(org.rutil.main.MainArgs mainArgs)
throws java.lang.Exception
start in interface MainMBeanjava.lang.Exceptionpublic void stop()
stop in interface MainMBean
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||