|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activeio.xnet.ServiceLogger
public class ServiceLogger
| Constructor Summary | |
|---|---|
ServiceLogger(java.lang.String name,
ServerService next,
java.lang.String[] logOnSuccess,
java.lang.String[] logOnFailure)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getIP()
Gets the ip number that the daemon is listening on. |
java.lang.String[] |
getLogOnFailure()
|
java.lang.String[] |
getLogOnSuccess()
|
java.lang.String |
getName()
Gets the name of the service. |
int |
getPort()
Gets the port number that the daemon is listening on. |
void |
init(java.util.Properties props)
|
void |
service(java.net.Socket socket)
log_on_success ----------------- Different information can be logged when a server starts: PID : the server's PID (if it's an internal xinetd service, the PID has then a value of 0) ; HOST : the client address ; USERID : the identity of the remote user, according to RFC1413 defining identification protocol; EXIT : the process exit status; DURATION : the session duration. |
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 ServiceLogger(java.lang.String name,
ServerService next,
java.lang.String[] logOnSuccess,
java.lang.String[] logOnFailure)
| Method Detail |
|---|
public void service(java.net.Socket socket)
throws ServiceException,
java.io.IOException
service in interface SocketServicesocket -
ServiceException
java.io.IOExceptionpublic java.lang.String[] getLogOnSuccess()
public java.lang.String[] getLogOnFailure()
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 getName()
SocketService
getName in interface SocketServicepublic java.lang.String getIP()
ServerService
getIP in interface ServerServicepublic int getPort()
ServerService
getPort in interface ServerService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||