org.activeio.xnet
Class ServiceDaemon
java.lang.Object
org.activeio.xnet.ServiceDaemon
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle
- public class ServiceDaemon
- extends Object
- implements org.apache.geronimo.gbean.GBeanLifecycle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceDaemon
public ServiceDaemon(SocketService socketService,
InetAddress address,
int port)
ServiceDaemon
public ServiceDaemon(String name,
SocketService socketService,
InetAddress address,
int port)
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 © -2007 The ActiveIO Project. All Rights Reserved.