org.neociclo.odetteftp.service
Class TcpClient

java.lang.Object
  extended by org.neociclo.odetteftp.service.Client
      extended by org.neociclo.odetteftp.service.TcpClient

public class TcpClient
extends Client

Version:
$Rev: 613 $ $Date: 2010-08-17 19:54:19 -0300 (Tue, 17 Aug 2010) $
Author:
Rafael Marins

Field Summary
 
Fields inherited from class org.neociclo.odetteftp.service.Client
disconnectListener
 
Constructor Summary
TcpClient(InetSocketAddress remoteAddress, OftpletFactory oftpletFactory)
           
TcpClient(InetSocketAddress remoteAddress, SSLEngine sslEngine, OftpletFactory oftpletFactory)
           
TcpClient(String host, int port, OftpletFactory oftpletFactory)
           
TcpClient(String host, int port, SSLEngine sslEngine, OftpletFactory oftpletFactory)
           
TcpClient(String host, OftpletFactory oftpletFactory)
           
TcpClient(String host, SSLEngine sslEngine, OftpletFactory oftpletFactory)
           
 
Method Summary
protected  org.jboss.netty.channel.ChannelFactory createChannelFactory()
           
 Executor getExecutor()
           
protected  SocketAddress getLocalAddress()
           
protected  org.jboss.netty.channel.ChannelPipelineFactory getPipelineFactory(OftpletFactory oftpletFactory, org.jboss.netty.util.Timer timer)
           
protected  SocketAddress getRemoteAddress()
           
protected  void releaseExternalResources()
           
 void setExecutor(Executor executor)
          The Executor which was specified should be terminated manually by calling ExecutorUtil.terminate(Executor...) when your application shuts down.
 
Methods inherited from class org.neociclo.odetteftp.service.Client
awaitDisconnect, connect, connect, disconnect, getChannel, getDisconnectListener, getTimer, isConnected, setDisconnectListener, setTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpClient

public TcpClient(String host,
                 OftpletFactory oftpletFactory)

TcpClient

public TcpClient(String host,
                 SSLEngine sslEngine,
                 OftpletFactory oftpletFactory)

TcpClient

public TcpClient(String host,
                 int port,
                 OftpletFactory oftpletFactory)

TcpClient

public TcpClient(String host,
                 int port,
                 SSLEngine sslEngine,
                 OftpletFactory oftpletFactory)

TcpClient

public TcpClient(InetSocketAddress remoteAddress,
                 OftpletFactory oftpletFactory)

TcpClient

public TcpClient(InetSocketAddress remoteAddress,
                 SSLEngine sslEngine,
                 OftpletFactory oftpletFactory)
Method Detail

createChannelFactory

protected org.jboss.netty.channel.ChannelFactory createChannelFactory()
Specified by:
createChannelFactory in class Client

getLocalAddress

protected SocketAddress getLocalAddress()
Specified by:
getLocalAddress in class Client

getPipelineFactory

protected org.jboss.netty.channel.ChannelPipelineFactory getPipelineFactory(OftpletFactory oftpletFactory,
                                                                            org.jboss.netty.util.Timer timer)
Specified by:
getPipelineFactory in class Client

getRemoteAddress

protected SocketAddress getRemoteAddress()
Specified by:
getRemoteAddress in class Client

getExecutor

public Executor getExecutor()

setExecutor

public void setExecutor(Executor executor)
The Executor which was specified should be terminated manually by calling ExecutorUtil.terminate(Executor...) when your application shuts down.

Parameters:
executor -

releaseExternalResources

protected void releaseExternalResources()
Overrides:
releaseExternalResources in class Client


ACCORD