org.ceno.communication.cli.dispatch
Class ExtensionPointCommunicatorServiceDispatcher
java.lang.Object
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>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtensionPointCommunicatorServiceDispatcher
public ExtensionPointCommunicatorServiceDispatcher()
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