Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
F
G
M
N
O
P
R
S
T
_
F
find(Stopable)
- Method in class
ServiceStopper
G
get()
- Static method in class
ServiceStopper
M
main(String[])
- Static method in class
ServiceStopper
Stop the service on the default port.
main(String[])
- Static method in class
SimpleStopper
main(String[])
- Static method in class
TelnetEcho
The main method called when the service starts.
N
next
- Variable in class
ServiceStopper.Stopper
O
onServiceStop()
- Method in class
SimpleStopper
onServiceStop()
- Method in interface
Stopable
Called when the service is about to stop.
onServiceStop()
- Method in class
TelnetEcho
Here the telnet server implements the Stopable interface On exit close the server cocket on port 23
P
PORT
- Static variable in class
ServiceStopper
Port for stopping the application.
R
run()
- Method in class
ServiceStopper
run()
- Method in class
TelnetEcho
Open server socket and wait for incoming connections
run()
- Method in class
TelnetEcho.Echo
S
s
- Variable in class
TelnetEcho.Echo
ServiceStopper
- class
ServiceStopper
.
Responsible for listening on a port for the service stop signal by the jsl process.
ServiceStopper.Stopper
- class
ServiceStopper.Stopper
.
ServiceStopper.Stopper(ServiceStopper, Stopable)
- Constructor for class
ServiceStopper.Stopper
ServiceStopper()
- Constructor for class
ServiceStopper
ServiceStopper(ServiceStopper.Stopper)
- Constructor for class
ServiceStopper
SimpleStopper
- class
SimpleStopper
.
Most simple version of Stopable.
SimpleStopper()
- Constructor for class
SimpleStopper
singleton
- Static variable in class
ServiceStopper
ss
- Variable in class
TelnetEcho
The server cocket which accepts connections
stop(Stopable)
- Static method in class
ServiceStopper
Stop the stopable on exit.
stopable
- Variable in class
ServiceStopper.Stopper
Stopable
- interface
Stopable
.
Implement stop to be informed when the service is about to stop.
stopAfter(Stopable, Stopable)
- Static method in class
ServiceStopper
Stop the stopable on exit.
stopAll()
- Method in class
ServiceStopper
stopper
- Variable in class
ServiceStopper
The queue that a single stop thread will stop
stoppers
- Variable in class
ServiceStopper
List of Stopable queues the singleton will stop on signal
stopSingle()
- Method in class
ServiceStopper
T
TelnetEcho
- class
TelnetEcho
.
A simple example for a java service.
TelnetEcho.Echo
- class
TelnetEcho.Echo
.
The worker thread.
TelnetEcho.Echo(TelnetEcho, Socket)
- Constructor for class
TelnetEcho.Echo
TelnetEcho()
- Constructor for class
TelnetEcho
timeToWait()
- Method in class
ServiceStopper
timeToWait()
- Method in class
SimpleStopper
timeToWait()
- Method in interface
Stopable
How long should the ServiceStopper wait (in milliseconds) for the stop thread to die?
timeToWait()
- Method in class
TelnetEcho
Don't wait if onServiceStop does not return.
_
_stop(Stopable)
- Method in class
ServiceStopper
_stopAfter(Stopable, Stopable)
- Method in class
ServiceStopper
F
G
M
N
O
P
R
S
T
_
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES