|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
Classes implementing this interface usually provide a TCP/IP listener such as an FTP server. The can be started and stopped, and may or may not allow remote connections.
Method Summary | |
---|---|
boolean |
getAllowOthers()
Check if remote connections are allowed. |
java.lang.String |
getName()
Get the human readable name of the service. |
int |
getPort()
Gets the port this service is listening on. |
java.lang.String |
getType()
Get the human readable short name of the service. |
java.lang.String |
getURL()
Get the URL of this service in a human readable form |
void |
init(java.lang.String... args)
Initialize the service from command line options. |
boolean |
isRunning(boolean traceError)
Check if the service is running. |
void |
listen()
Listen for incoming connections. |
void |
start()
Start the service. |
void |
stop()
Stop the service. |
Method Detail |
---|
void init(java.lang.String... args) throws java.lang.Exception
args
- the command line options
java.lang.Exception
java.lang.String getURL()
void start() throws java.sql.SQLException
java.sql.SQLException
void listen()
void stop()
boolean isRunning(boolean traceError)
traceError
- if errors should be written
boolean getAllowOthers()
java.lang.String getName()
java.lang.String getType()
int getPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |