org.ceno.communication.cli
Interface IConnectorService
- All Known Implementing Classes:
- ExtensionPointCommunicatorServiceDispatcher, Net4JConnectorService
public interface IConnectorService
This is the counterpart of ICommunicatorService
thats creates a connection to a running ceno server
- Since:
- 0.0.1
- Author:
- Andre Albert <andre.albert82@googlemail.com>
connect
void connect(ServerDescriptor serverDesriptor)
throws ConnectException
- Throws:
ConnectException
disconnect
void disconnect()
throws ConnectException
- Disconnects from the current connection or does nothing in case
no connection was established
- Throws:
ConnectException
currentConnection
ServerDescriptor currentConnection()
- Returns:
- the server to which current connection is established
or
null
in case there is no connection open.
isConnected
boolean isConnected()