|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
Server.AdminConsole
public class AdminConsole
Administration console for the server. This class contains the initial reference to the server. It provides the functionality for loading, and unloading modules and viewing server statistics. 2006-08-15 Kyle Reed
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
(package private) byte[] |
ba
|
(package private) java.nio.ByteBuffer |
bb
|
private simsa.xml.XMLParser |
oxp
|
private java.nio.channels.SocketChannel |
remoteAdminClient
|
(package private) java.nio.channels.ServerSocketChannel |
remoteAdminServer
|
private java.lang.Thread |
remoteConsole
|
private Server |
server
|
private boolean |
terminate
|
(package private) java.util.ArrayList<java.lang.String> |
vo
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
AdminConsole()
Initialize the parser and start the server. |
Method Summary | |
---|---|
Server |
getServer()
Returns a reference to the server contained by this AdminConsole. |
java.nio.channels.ServerSocketChannel |
getServerSocket()
Returns a reference to the Server's SocketChannel. |
private void |
printCommands()
Sends a list of the admin commands to the connected admin console. |
void |
run()
The main AdminConsole loop that processes input from the admin terminal. |
private void |
writeRemote(java.lang.String s)
Wraps a string message in <_msg> tags to send to the connected console; this calls writeRemoteRaw() which actually writes to the to the stream. |
private void |
writeRemoteRaw(java.lang.String s)
Sends a string to the connected admin console. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
---|
private Server server
private java.lang.Thread remoteConsole
java.nio.channels.ServerSocketChannel remoteAdminServer
private java.nio.channels.SocketChannel remoteAdminClient
private boolean terminate
java.nio.ByteBuffer bb
byte[] ba
private simsa.xml.XMLParser oxp
java.util.ArrayList<java.lang.String> vo
Constructor Detail |
---|
public AdminConsole()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private void writeRemote(java.lang.String s)
private void writeRemoteRaw(java.lang.String s)
private void printCommands()
public Server getServer()
public java.nio.channels.ServerSocketChannel getServerSocket()
|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |