net.sourceforge.pain.network.console
Class AdminConsoleManager

java.lang.Object
  extended bynet.sourceforge.pain.PulsePeriodListener
      extended bynet.sourceforge.pain.network.console.AbstractConsoleManager
          extended bynet.sourceforge.pain.network.console.AdminConsoleManager
All Implemented Interfaces:
LogicReloadListener, PulseListener

public final class AdminConsoleManager
extends AbstractConsoleManager

Administrators console management systems. Maps all events from remote console to administrators logic.


Field Summary
 
Fields inherited from class net.sourceforge.pain.network.console.AbstractConsoleManager
consoles, port
 
Fields inherited from class net.sourceforge.pain.PulsePeriodListener
PERIOD_IN_PULSE, PERIOD_IN_SECONDS
 
Constructor Summary
AdminConsoleManager(int port)
           
 
Method Summary
 void emitEvent(java.lang.Class eventClass, BasicConsole c)
           
protected  void initEventClasses()
           
protected  BasicConsole provideConsole(ConsoleAdapter adapter)
           
 
Methods inherited from class net.sourceforge.pain.network.console.AbstractConsoleManager
closeConsole, consoles, isStarted, onLogicReloading, onPeriod, onRemoteClose, register, start, stop
 
Methods inherited from class net.sourceforge.pain.PulsePeriodListener
pulse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminConsoleManager

public AdminConsoleManager(int port)
                    throws java.lang.Exception
Method Detail

emitEvent

public void emitEvent(java.lang.Class eventClass,
                      BasicConsole c)
               throws java.lang.Exception
Specified by:
emitEvent in class AbstractConsoleManager
Throws:
java.lang.Exception

initEventClasses

protected void initEventClasses()
                         throws java.lang.Exception
Specified by:
initEventClasses in class AbstractConsoleManager
Throws:
java.lang.Exception

provideConsole

protected BasicConsole provideConsole(ConsoleAdapter adapter)