org.activeio.xnet
Class ServiceDaemon

java.lang.Object
  extended by org.activeio.xnet.ServiceDaemon
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle

public class ServiceDaemon
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle


Constructor Summary
ServiceDaemon(SocketService socketService, InetAddress address, int port)
           
ServiceDaemon(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.
 String getServiceName()
           
 int getSoTimeout()
           
 void setSoTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDaemon

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

ServiceDaemon

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

doStart

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

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

getServiceName

public String getServiceName()

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.



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