|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.apache.karaf.shell.wrapper.Main
public class Main
Java Service Wrapper Main class
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
void |
controlEvent(int event)
Called whenever the native Wrapper code traps a system control signal against the Java process. |
static void |
main(java.lang.String[] args)
|
void |
run()
|
java.lang.Integer |
start(java.lang.String[] args)
The start method is called when the WrapperManager is signaled by the native Wrapper code that it can start its application. |
int |
stop(int exitCode)
Called when the application is shutting down. |
void |
waitingForShutdown(int delay)
Call-back method is called by the @{link org.apache.karaf.main.Main} for Signaling that the stopping process is in progress and the wrapper doesn't kill the JVM. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.Integer start(java.lang.String[] args)
start
in interface org.tanukisoftware.wrapper.WrapperListener
args
- List of arguments used to initialize the application.
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public int stop(int exitCode)
stop
in interface org.tanukisoftware.wrapper.WrapperListener
exitCode
- The suggested exit code that will be returned to the OS
when the JVM exits.
public void waitingForShutdown(int delay)
waitingForShutdown
in interface ShutdownCallback
public void controlEvent(int event)
controlEvent
in interface org.tanukisoftware.wrapper.WrapperListener
event
- The system control signal.public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |