org.ceno.communication.cli.dispatch
Class ExtensionPointCommunicatorServiceDispatcher

java.lang.Object
  extended by org.ceno.communication.cli.dispatch.ExtensionPointCommunicatorServiceDispatcher
All Implemented Interfaces:
IConnectorService

public class ExtensionPointCommunicatorServiceDispatcher
extends java.lang.Object
implements IConnectorService

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

Constructor Summary
ExtensionPointCommunicatorServiceDispatcher()
           
 
Method Summary
 void connect(ServerDescriptor serverDesriptor)
          
 ServerDescriptor currentConnection()
          
 void disconnect()
          Disconnects from the current connection or does nothing in case no connection was established
 boolean isConnected()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionPointCommunicatorServiceDispatcher

public ExtensionPointCommunicatorServiceDispatcher()
Method Detail

connect

public void connect(ServerDescriptor serverDesriptor)
             throws ConnectException

Specified by:
connect in interface IConnectorService
Throws:
ConnectException

disconnect

public void disconnect()
                throws ConnectException
Disconnects from the current connection or does nothing in case no connection was established

Specified by:
disconnect in interface IConnectorService
Throws:
ConnectException

currentConnection

public ServerDescriptor currentConnection()

Specified by:
currentConnection in interface IConnectorService
Returns:
the server to which current connection is established or null in case there is no connection open.

isConnected

public boolean isConnected()

Specified by:
isConnected in interface IConnectorService