Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
stop |
Constructor and Description |
---|
SimpleService() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
The main method called when the service starts.
|
void |
onServiceStop()
Here the telnet server implements the Stopable interface
On exit close the server cocket on port 23
|
static void |
stopit() |
int |
timeToWait()
Don't wait if onServiceStop does not return.
|
activeCount, checkAccess, clone, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public void onServiceStop()
onServiceStop
in interface Stopable
public int timeToWait()
timeToWait
in interface Stopable
public static void stopit()
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception