public class MiniAccumuloCluster extends Object
| Constructor and Description |
|---|
MiniAccumuloCluster(File dir,
String rootPassword) |
MiniAccumuloCluster(MiniAccumuloConfig config) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstanceName() |
String |
getZooKeepers() |
void |
start()
Starts Accumulo and Zookeeper processes.
|
void |
stop()
Stops Accumulo and Zookeeper processes.
|
public MiniAccumuloCluster(File dir, String rootPassword) throws IOException
dir - An empty or nonexistant temp directoy that Accumulo and Zookeeper can store data in. Creating the directory is left to the user. Java 7, Guava,
and Junit provide methods for creating temporary directories.rootPassword - Initial root password for instance.IOExceptionpublic MiniAccumuloCluster(MiniAccumuloConfig config) throws IOException
config - initial configurationIOExceptionpublic void start()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionIllegalStateException - if already startedpublic String getInstanceName()
public String getZooKeepers()
public void stop()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016 The Apache Software Foundation. All Rights Reserved.