org.apache.accumulo.core.conf
Class AccumuloConfiguration

java.lang.Object
  extended by org.apache.accumulo.core.conf.AccumuloConfiguration
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>
Direct Known Subclasses:
ConfigurationCopy, DefaultConfiguration, SiteConfiguration

public abstract class AccumuloConfiguration
extends Object
implements Iterable<Map.Entry<String,String>>


Constructor Summary
AccumuloConfiguration()
           
 
Method Summary
abstract  String get(Property property)
           
 Map<String,String> getAllPropertiesWithPrefix(Property property)
          This method returns all properties in a map of string->string under the given prefix property.
 boolean getBoolean(Property property)
           
 int getCount(Property property)
           
static DefaultConfiguration getDefaultConfiguration()
           
 double getFraction(Property property)
           
 double getFraction(String str)
           
 int getMaxFilesPerTablet()
           
 long getMemoryInBytes(Property property)
           
static long getMemoryInBytes(String str)
           
 int getPort(Property property)
           
static AccumuloConfiguration getSiteConfiguration()
          Deprecated. not for client use
static AccumuloConfiguration getTableConfiguration(Connector conn, String tableId)
           
 long getTimeInMillis(Property property)
           
static long getTimeInMillis(String str)
           
 void invalidateCache()
           
abstract  Iterator<Map.Entry<String,String>> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumuloConfiguration

public AccumuloConfiguration()
Method Detail

get

public abstract String get(Property property)

iterator

public abstract Iterator<Map.Entry<String,String>> iterator()
Specified by:
iterator in interface Iterable<Map.Entry<String,String>>

getAllPropertiesWithPrefix

public Map<String,String> getAllPropertiesWithPrefix(Property property)
This method returns all properties in a map of string->string under the given prefix property.

Parameters:
property - the prefix property, and must be of type PropertyType.PREFIX
Returns:
a map of strings to strings of the resulting properties

getMemoryInBytes

public long getMemoryInBytes(Property property)

getMemoryInBytes

public static long getMemoryInBytes(String str)

getTimeInMillis

public long getTimeInMillis(Property property)

getTimeInMillis

public static long getTimeInMillis(String str)

getBoolean

public boolean getBoolean(Property property)

getFraction

public double getFraction(Property property)

getFraction

public double getFraction(String str)

getPort

public int getPort(Property property)

getCount

public int getCount(Property property)

getDefaultConfiguration

public static DefaultConfiguration getDefaultConfiguration()

getSiteConfiguration

@Deprecated
public static AccumuloConfiguration getSiteConfiguration()
Deprecated. not for client use


getTableConfiguration

public static AccumuloConfiguration getTableConfiguration(Connector conn,
                                                          String tableId)
                                                   throws TableNotFoundException,
                                                          AccumuloException
Throws:
TableNotFoundException
AccumuloException

getMaxFilesPerTablet

public int getMaxFilesPerTablet()

invalidateCache

public void invalidateCache()


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.