public interface WatchdogAPI
Modifier and Type | Method and Description |
---|---|
void |
kill(java.lang.String password,
java.lang.String serverId)
Kills the named server, terminating the process.
|
void |
restart(java.lang.String password,
java.lang.String serverId,
java.lang.String[] argv)
Restarts the server with the given arguments.
|
boolean |
shutdown(java.lang.String password)
Shuts the entire watchdog manager down.
|
void |
start(java.lang.String password,
java.lang.String[] argv)
Starts the server with the given arguments.
|
java.lang.String |
status(java.lang.String password)
Returns the status of the watchdog manager
|
void |
stop(java.lang.String password,
java.lang.String serverId)
Stops the named server
|
java.lang.String status(java.lang.String password)
password
- the watchdog passwordvoid start(java.lang.String password, java.lang.String[] argv) throws ConfigException, java.lang.IllegalStateException, java.io.IOException
ConfigException
java.lang.IllegalStateException
java.io.IOException
void restart(java.lang.String password, java.lang.String serverId, java.lang.String[] argv) throws ConfigException, java.lang.IllegalStateException, java.io.IOException
password
- watchdog passwordserverId
- the server to be restartedargv
- the new arguments for the serverConfigException
java.lang.IllegalStateException
java.io.IOException
void stop(java.lang.String password, java.lang.String serverId) throws ConfigException, java.lang.IllegalStateException, java.io.IOException
password
- the watchdog passwordserverId
- the server to stopConfigException
java.lang.IllegalStateException
java.io.IOException
void kill(java.lang.String password, java.lang.String serverId) throws ConfigException, java.lang.IllegalStateException, java.io.IOException
password
- the watchdog passwordserverId
- the server to killConfigException
java.lang.IllegalStateException
java.io.IOException
boolean shutdown(java.lang.String password) throws java.io.IOException
password
- java.io.IOException