| org.h2.server.Service
All known Subclasses: org.h2.server.web.WebServer, org.h2.server.pg.PgServer, org.h2.server.ftp.FtpServer, org.h2.server.TcpServer,
Service | public interface Service (Code) | | 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. | String | getName() Get the human readable name of the service. | String | getType() Get the human readable short name of the service. | String | getURL() | void | init(String[] args) Initialize the service from command line options. | boolean | isRunning() Check if the service is running. | void | listen() Listen for incoming connections. | void | start() Start the service. | void | stop() Stop the service. |
getAllowOthers | boolean getAllowOthers()(Code) | | Check if remote connections are allowed.
true if remote connections are allowed |
getName | String getName()(Code) | | Get the human readable name of the service.
the name |
getType | String getType()(Code) | | Get the human readable short name of the service.
the type |
getURL | String getURL()(Code) | | Get the URL of this service in a human readable form
the url |
init | void init(String[] args) throws Exception(Code) | | Initialize the service from command line options.
Parameters: args - the command line options |
isRunning | boolean isRunning()(Code) | | Check if the service is running.
if the server is running |
listen | void listen()(Code) | | Listen for incoming connections.
This method blocks.
|
start | void start() throws SQLException(Code) | | Start the service. This usually means create the server socket.
This method must not block.
|
stop | void stop()(Code) | | Stop the service.
|
|
|