org.ceno.communication.cli.net4j
Class Net4JConnectorService
java.lang.Object
org.ceno.communication.cli.net4j.Net4JConnectorService
- All Implemented Interfaces:
- IConnectorService
public class Net4JConnectorService
- 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 |
Net4JConnectorService
public Net4JConnectorService()
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
connect
public void connect(ServerDescriptor serverDesriptor)
throws ConnectException
-
- Specified by:
connect
in interface IConnectorService
- Throws:
ConnectException
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer()
- Returns:
- the container
getConnector
public org.eclipse.net4j.connector.IConnector getConnector()
- Returns:
- the connector
getProtocol
public TrackerClientProtocol getProtocol()
- Returns:
- the protocol
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