Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.metacosm.ui.controlpanel
Class AdminConsoleConnection  view AdminConsoleConnection download AdminConsoleConnection.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.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 Class Summary
private  class AdminConsoleConnection.PingServerThread
           
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  org.metacosm.util.MCEventDispatcher adminMsgDispatcher
           
private  java.io.BufferedReader input
           
private  int nbTimeoutEx
           
private  java.io.PrintStream output
           
private  java.net.Socket socket
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) AdminConsoleConnection()
          If the connection is established, the game will keep the socket.
 
Method Summary
 void addListener(org.metacosm.util.MCEventListener el, java.lang.String msgType)
           
private  void notifyConnectionClosed()
           
 void notifyListeners(org.metacosm.util.AdminMessage adminMessage)
           
 void removeListener(org.metacosm.util.MCEventListener el, java.lang.String msgType)
           
 void run()
          Provides the connection dialog for Admin Console protocol.
 void sendRequest(java.lang.String request)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

AdminConsoleConnection

AdminConsoleConnection()
If the connection is established, the game will keep the socket.

Method Detail

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()