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
IOException
Map.Entry<Integer,String> execWithStdout(Class<?> clz, String[] args) throws IOException
IOException
void adminStopAll() throws IOException
IOException
void startAllServers(ServerType server) throws IOException
IOException
void start(ServerType server, String hostname) throws IOException
IOException
void stopAllServers(ServerType server) throws IOException
IOException
void stop(ServerType server, String hostname) throws IOException
IOException
void signal(ServerType server, String hostname, String signal) throws IOException
IOException
void suspend(ServerType server, String hostname) throws IOException
IOException
void resume(ServerType server, String hostname) throws IOException
IOException
void kill(ServerType server, String hostname) throws IOException
IOException
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.