org.apache.accumulo.minicluster.impl
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(ClusterServerType server,
String hostname)
Send SIGKILL to the given process on the host
|
void |
killProcess(ServerType type,
ProcessReference proc) |
void |
resume(ClusterServerType server,
String hostname)
Send SIGCONT to the given process on the host
|
void |
signal(ClusterServerType server,
String hostname,
String signal)
Send the provided signal to the process on the host
|
void |
start(ClusterServerType server) |
void |
start(ClusterServerType server,
String hostname)
Start the given process on the host
|
void |
startAllServers(ClusterServerType server)
Starts all occurrences of the given server
|
void |
stop(ClusterServerType server) |
void |
stop(ClusterServerType server,
String hostname)
Stop the given process on the host
|
void |
stopAllServers(ClusterServerType server)
Stops all occurrences of the given server
|
void |
suspend(ClusterServerType server,
String hostname)
Send SIGSTOP to the given process on the host
|
protected MiniAccumuloClusterImpl cluster
public MiniAccumuloClusterControl(MiniAccumuloClusterImpl cluster)
public void start(ClusterServerType 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(ClusterServerType server) throws IOException
ClusterControlstartAllServers in interface ClusterControlIOExceptionpublic void start(ClusterServerType server, String hostname) throws IOException
ClusterControlstart in interface ClusterControlIOExceptionpublic void stopAllServers(ClusterServerType server) throws IOException
ClusterControlstopAllServers in interface ClusterControlIOExceptionpublic void stop(ClusterServerType server) throws IOException
IOExceptionpublic void stop(ClusterServerType server, String hostname) throws IOException
ClusterControlstop in interface ClusterControlIOExceptionpublic void signal(ClusterServerType server, String hostname, String signal) throws IOException
ClusterControlsignal in interface ClusterControlIOExceptionpublic void suspend(ClusterServerType server, String hostname) throws IOException
ClusterControlsuspend in interface ClusterControlIOExceptionpublic void resume(ClusterServerType server, String hostname) throws IOException
ClusterControlresume in interface ClusterControlIOExceptionpublic void killProcess(ServerType type, ProcessReference proc) throws ProcessNotFoundException, InterruptedException
public void kill(ClusterServerType server, String hostname) throws IOException
ClusterControlkill in interface ClusterControlIOExceptionCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.