ServerService
, SocketService
public class ServiceLogger extends Object implements ServerService
Constructor | Description |
---|---|
ServiceLogger(String name,
ServerService next,
String[] logOnSuccess,
String[] logOnFailure) |
Modifier and Type | Method | Description |
---|---|---|
String |
getIP() |
Gets the ip number that the
daemon is listening on.
|
String[] |
getLogOnFailure() |
|
String[] |
getLogOnSuccess() |
|
String |
getName() |
Gets the name of the service.
|
int |
getPort() |
Gets the port number that the
daemon is listening on.
|
void |
init(Properties props) |
|
void |
service(Socket socket) |
log_on_success
-----------------
Different information can be logged when a server starts:
|
void |
start() |
|
void |
stop() |
public ServiceLogger(String name, ServerService next, String[] logOnSuccess, String[] logOnFailure)
public void service(Socket socket) throws ServiceException, IOException
service
in interface SocketService
socket
- ServiceException
IOException
public String[] getLogOnSuccess()
public String[] getLogOnFailure()
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 getName()
SocketService
getName
in interface SocketService
public String getIP()
ServerService
getIP
in interface ServerService
public int getPort()
ServerService
getPort
in interface ServerService
Copyright © 2005–2018. All rights reserved.