|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jetrix.services.AbstractService
net.jetrix.listeners.ShutdownListener
public class ShutdownListener
Listens for shutdown commands from the localhost. This is used to stop the server from the shell on Unix.
| Field Summary |
|---|
| Fields inherited from class net.jetrix.services.AbstractService |
|---|
autoStart, log |
| Constructor Summary | |
|---|---|
ShutdownListener()
|
|
| Method Summary | |
|---|---|
String |
getName()
Return the name of the listener. |
int |
getPort()
Return the listening port. |
boolean |
isRunning()
Tell if the service is currently running. |
void |
run()
|
void |
setPort(int port)
Set the port used the next time the listener is started. |
void |
start()
Start the listener. |
void |
stop()
Stop the listener. |
| Methods inherited from class net.jetrix.services.AbstractService |
|---|
isAutoStart, setAutoStart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.jetrix.Service |
|---|
isAutoStart, setAutoStart |
| Constructor Detail |
|---|
public ShutdownListener()
| Method Detail |
|---|
public String getName()
Listener
getName in interface ListenergetName in interface Servicepublic int getPort()
Listener
getPort in interface Listenerpublic void setPort(int port)
Listener
setPort in interface Listenerpublic void start()
Listener
start in interface Listenerstart in interface Servicepublic void stop()
Listener
stop in interface Listenerstop in interface Servicepublic void run()
run in interface Runnablepublic boolean isRunning()
Service
isRunning in interface Service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||