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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.SocketAddress
address()
Return the address of this server.boolean
isRunning()
Return whether or not the server is currently runningServer
start()
Start this server so it can accept requests from clients.void
stop()
Stop this server so it can no longer receive client requests.
-
-
-
Method Detail
-
start
Server start() throws ServerException
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.
-
-