org.activeio.xnet
Class SyncChannelServerDaemon

java.lang.Object
  extended byorg.activeio.xnet.SyncChannelServerDaemon
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, Runnable

public class SyncChannelServerDaemon
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle, Runnable


Constructor Summary
SyncChannelServerDaemon(SocketService socketService, InetAddress address, int port)
           
SyncChannelServerDaemon(String name, SocketService socketService, InetAddress address, int port)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 InetAddress getAddress()
          Gets the inetAddress number that the daemon is listening on.
 int getPort()
          Gets the port number that the daemon is listening on.
 int getSoTimeout()
           
 void run()
           
 void setSoTimeout(int timeout)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncChannelServerDaemon

public SyncChannelServerDaemon(SocketService socketService,
                               InetAddress address,
                               int port)

SyncChannelServerDaemon

public SyncChannelServerDaemon(String name,
                               SocketService socketService,
                               InetAddress address,
                               int port)
Method Detail

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

setSoTimeout

public void setSoTimeout(int timeout)
                  throws SocketException
Throws:
SocketException

getSoTimeout

public int getSoTimeout()
                 throws IOException
Throws:
IOException

getAddress

public InetAddress getAddress()
Gets the inetAddress number that the daemon is listening on.


getPort

public int getPort()
Gets the port number that the daemon is listening on.


run

public void run()
Specified by:
run in interface Runnable

stop

public void stop()


Copyright © -2007 The ActiveIO Project. All Rights Reserved.