public class MiniAccumuloCluster extends Object
| Constructor and Description |
|---|
MiniAccumuloCluster(File dir,
String rootPassword) |
MiniAccumuloCluster(MiniAccumuloConfig config) |
| Modifier and Type | Method and Description |
|---|---|
ClientConfiguration |
getClientConfig() |
MiniAccumuloConfig |
getConfig() |
Connector |
getConnector(String user,
String passwd)
Utility method to get a connector to the MAC.
|
Set<org.apache.accumulo.core.util.Pair<ServerType,Integer>> |
getDebugPorts() |
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
IOExceptionInterruptedExceptionpublic Set<org.apache.accumulo.core.util.Pair<ServerType,Integer>> getDebugPorts()
public String getInstanceName()
public String getZooKeepers()
public void stop()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic MiniAccumuloConfig getConfig()
public Connector getConnector(String user, String passwd) throws AccumuloException, AccumuloSecurityException
AccumuloExceptionAccumuloSecurityExceptionpublic ClientConfiguration getClientConfig()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.