public interface ClusterControl
| Modifier and Type | Method and Description |
|---|---|
void |
adminStopAll()
Issue an orderly shutdown of the cluster, throws an exception if it fails to return
successfully (return value of 0).
|
int |
exec(Class<?> clz,
String[] args)
Execute the given class against the cluster with the provided arguments and waits for
completion.
|
Map.Entry<Integer,String> |
execWithStdout(Class<?> clz,
String[] args)
Execute the given class against the cluster with the provided arguments and waits for
completion.
|
void |
kill(ServerType server,
String hostname)
Send SIGKILL to the given process on the host
|
void |
resume(ServerType server,
String hostname)
Send SIGCONT to the given process on the host
|
void |
signal(ServerType server,
String hostname,
String signal)
Send the provided signal to the process on the host
|
void |
start(ServerType server,
String hostname)
Start the given process on the host
|
void |
startAllServers(ServerType server)
Starts all occurrences of the given server
|
void |
stop(ServerType server,
String hostname)
Stop the given process on the host
|
void |
stopAllServers(ServerType server)
Stops all occurrences of the given server
|
void |
suspend(ServerType server,
String hostname)
Send SIGSTOP to the given process on the host
|
int exec(Class<?> clz, String[] args) throws IOException
IOExceptionMap.Entry<Integer,String> execWithStdout(Class<?> clz, String[] args) throws IOException
IOExceptionvoid adminStopAll()
throws IOException
IOExceptionvoid startAllServers(ServerType server) throws IOException
IOExceptionvoid start(ServerType server, String hostname) throws IOException
IOExceptionvoid stopAllServers(ServerType server) throws IOException
IOExceptionvoid stop(ServerType server, String hostname) throws IOException
IOExceptionvoid signal(ServerType server, String hostname, String signal) throws IOException
IOExceptionvoid suspend(ServerType server, String hostname) throws IOException
IOExceptionvoid resume(ServerType server, String hostname) throws IOException
IOExceptionvoid kill(ServerType server, String hostname) throws IOException
IOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.