|
||||||||||
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,
InetAddress address,
int port)
|
|
ServiceDaemon(String name,
SocketService socketService,
InetAddress address,
int port)
|
Method Summary | |
---|---|
InetAddress |
getAddress()
Gets the inetAddress number that the daemon is listening on. |
String |
getIP()
Gets the ip number that the daemon is listening on. |
String |
getName()
Gets the name of the service. |
int |
getPort()
Gets the port number that the daemon is listening on. |
String |
getServiceName()
|
int |
getSoTimeout()
|
void |
init(Properties props)
|
void |
service(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, InetAddress address, int port)
public ServiceDaemon(String name, SocketService socketService, InetAddress address, int port)
Method Detail |
---|
public void setSoTimeout(int timeout) throws SocketException
SocketException
public int getSoTimeout() throws IOException
IOException
public String getServiceName()
public InetAddress getAddress()
public void init(Properties props) throws Exception
init
in interface ServerService
Exception
public void start() throws ServiceException
start
in interface ServerService
ServiceException
public void stop() throws ServiceException
stop
in interface ServerService
ServiceException
public String getIP()
ServerService
getIP
in interface ServerService
public int getPort()
getPort
in interface ServerService
public void service(Socket socket) throws ServiceException, IOException
service
in interface SocketService
ServiceException
IOException
public String getName()
SocketService
getName
in interface SocketService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |