public class MiniAccumuloClusterControl extends Object implements ClusterControl
| Modifier and Type | Field and Description |
|---|---|
protected MiniAccumuloClusterImpl |
cluster |
| Constructor and Description |
|---|
MiniAccumuloClusterControl(MiniAccumuloClusterImpl cluster) |
| 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 |
killProcess(ServerType type,
ProcessReference procRef) |
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) |
void |
start(ServerType server,
String hostname)
Start the given process on the host
|
void |
start(ServerType server,
String hostname,
Map<String,String> configOverrides,
int limit) |
void |
startAllServers(ServerType server)
Starts all occurrences of the given server
|
void |
stop(ServerType 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
|
protected MiniAccumuloClusterImpl cluster
public MiniAccumuloClusterControl(MiniAccumuloClusterImpl cluster)
public void start(ServerType server) throws IOException
IOExceptionpublic int exec(Class<?> clz, String[] args) throws IOException
ClusterControlexec in interface ClusterControlIOExceptionpublic Map.Entry<Integer,String> execWithStdout(Class<?> clz, String[] args) throws IOException
ClusterControlexecWithStdout in interface ClusterControlIOExceptionpublic void adminStopAll()
throws IOException
ClusterControladminStopAll in interface ClusterControlIOExceptionpublic void startAllServers(ServerType server) throws IOException
ClusterControlstartAllServers in interface ClusterControlIOExceptionpublic void start(ServerType server, String hostname) throws IOException
ClusterControlstart in interface ClusterControlIOExceptionpublic void start(ServerType server, String hostname, Map<String,String> configOverrides, int limit) throws IOException
IOExceptionpublic void stopAllServers(ServerType server) throws IOException
ClusterControlstopAllServers in interface ClusterControlIOExceptionpublic void stop(ServerType server) throws IOException
IOExceptionpublic void stop(ServerType server, String hostname) throws IOException
ClusterControlstop in interface ClusterControlIOExceptionpublic void signal(ServerType server, String hostname, String signal) throws IOException
ClusterControlsignal in interface ClusterControlIOExceptionpublic void suspend(ServerType server, String hostname) throws IOException
ClusterControlsuspend in interface ClusterControlIOExceptionpublic void resume(ServerType server, String hostname) throws IOException
ClusterControlresume in interface ClusterControlIOExceptionpublic void killProcess(ServerType type, ProcessReference procRef) throws ProcessNotFoundException, InterruptedException
public void kill(ServerType server, String hostname) throws IOException
ClusterControlkill in interface ClusterControlIOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.