org.neociclo.odetteftp.service
Class Server

java.lang.Object
  extended by org.neociclo.odetteftp.service.Server
Direct Known Subclasses:
TcpServer

public abstract class Server
extends Object

Version:
$Rev: 461 $ $Date: 2010-07-02 08:06:37 -0300 (Fri, 02 Jul 2010) $
Author:
Rafael Marins

Constructor Summary
Server(OftpletFactory oftpletFactory)
          Embedded class constructor taking service configuration and callback handler.
 
Method Summary
protected abstract  org.jboss.netty.channel.ServerChannelFactory createServerChannelFactory()
           
protected  void finalize()
           
protected abstract  SocketAddress getAddress()
           
 Integer getId()
           
protected abstract  org.jboss.netty.channel.ChannelPipelineFactory getPipelineFactory(OftpletFactory oftpletFactory, org.jboss.netty.util.Timer timer, org.jboss.netty.channel.group.ChannelGroup channelGroup)
           
 boolean isStarted()
           
 boolean isStopped()
           
 void start()
           
 void stop()
           
 void stop(boolean emergencyCloseDown)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Server

public Server(OftpletFactory oftpletFactory)
Embedded class constructor taking service configuration and callback handler.

Method Detail

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()

stop

public void stop(boolean emergencyCloseDown)

isStarted

public boolean isStarted()

isStopped

public boolean isStopped()

getId

public Integer getId()

toString

public String toString()
Overrides:
toString in class Object

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

getAddress

protected abstract SocketAddress getAddress()

getPipelineFactory

protected abstract org.jboss.netty.channel.ChannelPipelineFactory getPipelineFactory(OftpletFactory oftpletFactory,
                                                                                     org.jboss.netty.util.Timer timer,
                                                                                     org.jboss.netty.channel.group.ChannelGroup channelGroup)

createServerChannelFactory

protected abstract org.jboss.netty.channel.ServerChannelFactory createServerChannelFactory()


ACCORD