|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.roeschter.jsl.ServiceStopper
Responsible for listening on a port for the service stop signal by the jsl process.
Default port is 8375.
If you are running the your application from java command line (not through the jsl.exe)
simply use java ServiceStopper.
The listener Thread will be started as a daemon Thread.
Nested Class Summary | |
(package private) class |
ServiceStopper.Stopper
|
Field Summary | |
static int |
PORT
Port for stopping the application. |
(package private) static com.roeschter.jsl.ServiceStopper |
singleton
|
protected ServiceStopper.Stopper |
stopper
The queue that a single stop thread will stop |
protected java.util.Vector |
stoppers
List of Stopable queues the singleton will stop on signal |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
private |
ServiceStopper()
|
private |
ServiceStopper(ServiceStopper.Stopper stopper)
|
Method Summary | |
protected boolean |
_stop(com.roeschter.jsl.Stopable stopable)
|
protected boolean |
_stopAfter(com.roeschter.jsl.Stopable stopAfter,
com.roeschter.jsl.Stopable stopable)
|
protected ServiceStopper.Stopper |
find(com.roeschter.jsl.Stopable stopAfter)
|
private static com.roeschter.jsl.ServiceStopper |
get()
|
static void |
main(java.lang.String[] arg)
Stop the service on the default port. |
void |
run()
|
static boolean |
stop(com.roeschter.jsl.Stopable stopable)
Stop the stopable on exit. |
static boolean |
stopAfter(com.roeschter.jsl.Stopable stopAfter,
com.roeschter.jsl.Stopable stopable)
Stop the stopable on exit. |
protected void |
stopAll()
|
protected void |
stopSingle()
|
protected int |
timeToWait()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
Field Detail |
static com.roeschter.jsl.ServiceStopper singleton
public static int PORT
protected java.util.Vector stoppers
protected ServiceStopper.Stopper stopper
Constructor Detail |
private ServiceStopper()
private ServiceStopper(ServiceStopper.Stopper stopper)
Method Detail |
private static com.roeschter.jsl.ServiceStopper get()
public static boolean stop(com.roeschter.jsl.Stopable stopable)
public static boolean stopAfter(com.roeschter.jsl.Stopable stopAfter, com.roeschter.jsl.Stopable stopable)
protected boolean _stop(com.roeschter.jsl.Stopable stopable)
protected boolean _stopAfter(com.roeschter.jsl.Stopable stopAfter, com.roeschter.jsl.Stopable stopable)
protected ServiceStopper.Stopper find(com.roeschter.jsl.Stopable stopAfter)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void stopAll()
protected int timeToWait()
protected void stopSingle()
public static void main(java.lang.String[] arg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |