|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--thegame.shared.GameConnection | +--thegame.server.GameServerKiller
A utility to shut down the game server.
Field Summary | |
static java.lang.String |
COMMUNICATIONS_ERROR_MESSAGE
The message shown when a communications error occurs. |
static java.lang.String |
STARTUP_PASSWORD_PROMPT_MESSAGE
The password prompt shown at startup. |
static java.lang.String |
USAGE_MESSAGE
The message shown when run with an insufficient number of command-line arguments. |
Fields inherited from class thegame.shared.GameConnection |
in, isRunning, out, socket |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
GameServerKiller(java.net.Socket socket)
Constructs a GameServerKiller. |
Method Summary | |
static void |
main(java.lang.String[] args)
Builds a GameServerKiller. |
void |
run()
Waits for a server response. |
Methods inherited from class thegame.shared.GameConnection |
close, getMessageBody, getMessageContentsAs1DIntArray, getMessageContentsAs1DStringArray, getMessageContentsAs2DIntArray, getMessageContentsAsBoolean, getMessageID, getReadyToSendForm, send, send, send, send, send, send, setRunning |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
public static final java.lang.String COMMUNICATIONS_ERROR_MESSAGE
public static final java.lang.String STARTUP_PASSWORD_PROMPT_MESSAGE
public static final java.lang.String USAGE_MESSAGE
Constructor Detail |
public GameServerKiller(java.net.Socket socket) throws java.io.IOException
socket
- the socket to useMethod Detail |
public static void main(java.lang.String[] args)
public void run()
run
in class java.lang.Thread
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |