org.ceno.communication.srv
Interface ICommunicatorServer

All Known Implementing Classes:
Net4JServer

public interface ICommunicatorServer

Rather internal interface for a server implementation. This interface act as a adapter for different server technologies. For example, there is net4j server adaption implementation. Only Server Provider should implement this interface. Clients should use ICommunicatorService instead a front facade to the server environment of ceno

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

Method Summary
 void initServer(ServerDescriptor serverDescriptor, IEventDispatcher eventDispatcher)
           
 void run()
          Start the server thread
 void shutdown()
          ends the server thread
 

Method Detail

run

void run()
Start the server thread


shutdown

void shutdown()
ends the server thread


initServer

void initServer(ServerDescriptor serverDescriptor,
                IEventDispatcher eventDispatcher)
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