Interface Server
public interface Server
Basic interface for a Stardog server which allows a server to be started or shut down.
- Since:
- 0.6.9
- Version:
- 2.2
- Author:
- Michael Grove
-
Method Details
-
start
Start this server so it can accept requests from clients. This has no effect if the server is already running.- Returns:
- this server
- Throws:
ServerException- if the server cannot be started
-
isRunning
boolean isRunning()Return whether or not the server is currently running- Returns:
- true if running, false otherwise
-
stop
void stop()Stop this server so it can no longer receive client requests. This has no effect if the server is not running. -
address
SocketAddress address()Return the address of this server. This is where the server is listening, whenrunning, or where it will run oncestarted.- Returns:
- the address of the server
-