Ver. 20060815

Server
Class AdminConsole

java.lang.Object
  extended by java.lang.Thread
      extended by Server.AdminConsole
All Implemented Interfaces:
java.lang.Runnable

public class AdminConsole
extends java.lang.Thread

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

server

private Server server

remoteConsole

private java.lang.Thread remoteConsole

remoteAdminServer

java.nio.channels.ServerSocketChannel remoteAdminServer

remoteAdminClient

private java.nio.channels.SocketChannel remoteAdminClient

terminate

private boolean terminate

bb

java.nio.ByteBuffer bb

ba

byte[] ba

oxp

private simsa.xml.XMLParser oxp

vo

java.util.ArrayList<java.lang.String> vo
Constructor Detail

AdminConsole

public AdminConsole()
Initialize the parser and start the server. 2006-08-15 Kyle Reed

Method Detail

run

public void run()
The main AdminConsole loop that processes input from the admin terminal. Loads and unloads modules and clients and gives server statistics. 2006-08-15 Kyle Reed

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

writeRemote

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. 2006-08-11 Kyle Reed


writeRemoteRaw

private void writeRemoteRaw(java.lang.String s)
Sends a string to the connected admin console. 2006-08-11 Kyle Reed


printCommands

private void printCommands()
Sends a list of the admin commands to the connected admin console. 2006-08-11 Kyle Reed


getServer

public Server getServer()
Returns a reference to the server contained by this AdminConsole. 2006-08-11 Kyle Reed


getServerSocket

public java.nio.channels.ServerSocketChannel getServerSocket()
Returns a reference to the Server's SocketChannel. 2006-08-11 Kyle Reed


Ver. 20060815