|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activeio.xnet.ServiceDaemon
public class ServiceDaemon
| Constructor Summary | |
|---|---|
ServiceDaemon(SocketService socketService,
java.net.InetAddress address,
int port)
|
|
ServiceDaemon(java.lang.String name,
SocketService socketService,
java.net.InetAddress address,
int port)
|
|
| Method Summary | |
|---|---|
java.net.InetAddress |
getAddress()
Gets the inetAddress number that the daemon is listening on. |
java.lang.String |
getIP()
Gets the ip number that the daemon is listening on. |
java.lang.String |
getName()
Gets the name of the service. |
int |
getPort()
Gets the port number that the daemon is listening on. |
java.lang.String |
getServiceName()
|
int |
getSoTimeout()
|
void |
init(java.util.Properties props)
|
void |
service(java.net.Socket socket)
|
void |
setSoTimeout(int timeout)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceDaemon(SocketService socketService,
java.net.InetAddress address,
int port)
public ServiceDaemon(java.lang.String name,
SocketService socketService,
java.net.InetAddress address,
int port)
| Method Detail |
|---|
public void setSoTimeout(int timeout)
throws java.net.SocketException
java.net.SocketException
public int getSoTimeout()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getServiceName()
public java.net.InetAddress getAddress()
public void init(java.util.Properties props)
throws java.lang.Exception
init in interface ServerServicejava.lang.Exception
public void start()
throws ServiceException
start in interface ServerServiceServiceException
public void stop()
throws ServiceException
stop in interface ServerServiceServiceExceptionpublic java.lang.String getIP()
ServerService
getIP in interface ServerServicepublic int getPort()
getPort in interface ServerService
public void service(java.net.Socket socket)
throws ServiceException,
java.io.IOException
service in interface SocketServiceServiceException
java.io.IOExceptionpublic java.lang.String getName()
SocketService
getName in interface SocketService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||