org.apache.accumulo.minicluster
Class MiniAccumuloConfig

java.lang.Object
  extended by org.apache.accumulo.minicluster.MiniAccumuloConfig

public class MiniAccumuloConfig
extends Object

Holds configuration for MiniAccumuloCluster. Required configurations must be passed to constructor and all other configurations are optional.

Since:
1.5.0

Constructor Summary
MiniAccumuloConfig(File dir, String rootPassword)
           
 
Method Summary
 File getDir()
           
 int getNumTservers()
           
 String getRootPassword()
           
 Map<String,String> getSiteConfig()
           
 MiniAccumuloConfig setNumTservers(int numTservers)
          Calling this method is optional.
 MiniAccumuloConfig setSiteConfig(Map<String,String> siteConfig)
          Calling this method is optional.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiniAccumuloConfig

public MiniAccumuloConfig(File dir,
                          String rootPassword)
Parameters:
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 - The initial password for the Accumulo root user
Method Detail

getDir

public File getDir()

getRootPassword

public String getRootPassword()

getNumTservers

public int getNumTservers()

setNumTservers

public MiniAccumuloConfig setNumTservers(int numTservers)
Calling this method is optional. If not set, it defaults to two.

Parameters:
numTservers - the number of tablet servers that mini accumulo cluster should start

getSiteConfig

public Map<String,String> getSiteConfig()

setSiteConfig

public MiniAccumuloConfig setSiteConfig(Map<String,String> siteConfig)
Calling this method is optional. If not set, it defautls to an empty map.

Parameters:
siteConfig - key/values that you normally put in accumulo-site.xml can be put here


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.