org.ceno.communication.cli.net4j
Class Net4JConnectorService

java.lang.Object
  extended by 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>

Constructor Summary
Net4JConnectorService()
           
 
Method Summary
 void connect(ServerDescriptor serverDesriptor)
          
 ServerDescriptor currentConnection()
          
 void disconnect()
          Disconnects from the current connection or does nothing in case no connection was established
 org.eclipse.net4j.connector.IConnector getConnector()
           
 org.eclipse.net4j.util.container.IManagedContainer getContainer()
           
 TrackerClientProtocol getProtocol()
           
 boolean isConnected()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Net4JConnectorService

public Net4JConnectorService()
Method Detail

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