|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.cask.common.runtime.DaemonMain
public abstract class DaemonMain
A abstract base class for bridging standard main method to method invoked through apache commons-daemon jsvc.
| Constructor Summary | |
|---|---|
DaemonMain()
|
|
| Method Summary | |
|---|---|
abstract void |
destroy()
Invoked by jsvc for resource cleanup. |
protected void |
doMain(String[] args)
The main method. |
abstract void |
init(String[] args)
Invoked by jsvc to initialize the program. |
abstract void |
start()
Invoked by jsvc to start the program. |
abstract void |
stop()
Invoked by jsvc to stop the program. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DaemonMain()
| Method Detail |
|---|
protected void doMain(String[] args)
throws Exception
Exceptionpublic abstract void init(String[] args)
public abstract void start()
public abstract void stop()
public abstract void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||