public class MiniAccumuloCluster extends Object
Constructor and Description |
---|
MiniAccumuloCluster(File dir,
String rootPassword) |
MiniAccumuloCluster(MiniAccumuloConfig config) |
Modifier and Type | Method and Description |
---|---|
String |
getInstanceName() |
protected ExecutorService |
getShutdownExecutor() |
String |
getZooKeepers() |
protected void |
setShutdownExecutor(ExecutorService svc) |
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.IOException
public MiniAccumuloCluster(MiniAccumuloConfig config) throws IOException
config
- initial configurationIOException
public void start() throws IOException, InterruptedException
IllegalStateException
- if already startedIOException
InterruptedException
public String getInstanceName()
public String getZooKeepers()
public void stop() throws IOException, InterruptedException
IOException
InterruptedException
protected void setShutdownExecutor(ExecutorService svc)
protected ExecutorService getShutdownExecutor()
Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.