org.ceno.communication.srv.net4j
Class Net4JServer

java.lang.Object
  extended by org.ceno.communication.srv.net4j.Net4JServer
All Implemented Interfaces:
ICommunicatorServer

public class Net4JServer
extends java.lang.Object
implements ICommunicatorServer

Version:
0.0.1
Author:
Andre Albert <andre.albert82@googlemail.com>

Constructor Summary
Net4JServer()
           
 
Method Summary
 void initServer(ServerDescriptor serverDescriptor, IEventDispatcher eventDispatcher)
           
 void run()
          Start the server thread
 void shutdown()
          ends the server thread
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Net4JServer

public Net4JServer()
Method Detail

run

public void run()
Start the server thread

Specified by:
run in interface ICommunicatorServer

shutdown

public void shutdown()
ends the server thread

Specified by:
shutdown in interface ICommunicatorServer

initServer

public void initServer(ServerDescriptor serverDescriptor,
                       IEventDispatcher eventDispatcher)
Specified by:
initServer in interface ICommunicatorServer
Parameters:
serverDescriptor - encapsulates all required information to run the server
eventDispatcher - a callback object invoked each time an event is catche in the server environment. eventDispatcher will call appropriate handlers