java.lang.Object
java.lang.Thread
org.metacosm.ui.controlpanel.AdminConsoleConnection
- All Implemented Interfaces:
- java.lang.Runnable
- class AdminConsoleConnection
- extends java.lang.Thread
AdminConsoleConnection provides connection to the game
via the Console Admin protocol.
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
|
Constructor Summary |
(package private) |
AdminConsoleConnection()
If the connection is established, the game will keep the socket. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
nbTimeoutEx
private int nbTimeoutEx
output
private java.io.PrintStream output
input
private java.io.BufferedReader input
adminMsgDispatcher
private org.metacosm.util.MCEventDispatcher adminMsgDispatcher
socket
private java.net.Socket socket
AdminConsoleConnection
AdminConsoleConnection()
- If the connection is established, the game will keep the socket.
run
public void run()
- Provides the connection dialog for Admin Console protocol.
sendRequest
public void sendRequest(java.lang.String request)
addListener
public void addListener(org.metacosm.util.MCEventListener el,
java.lang.String msgType)
removeListener
public void removeListener(org.metacosm.util.MCEventListener el,
java.lang.String msgType)
notifyListeners
public void notifyListeners(org.metacosm.util.AdminMessage adminMessage)
notifyConnectionClosed
private void notifyConnectionClosed()