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, ObservableConfiguration, SiteConfiguration

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


Nested Class Summary
static class AccumuloConfiguration.AllFilter
           
static class AccumuloConfiguration.PrefixFilter
           
static interface AccumuloConfiguration.PropertyFilter
           
 
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)
           
 String getPath(Property property)
           
 int getPort(Property property)
           
abstract  void getProperties(Map<String,String> props, AccumuloConfiguration.PropertyFilter filter)
           
static AccumuloConfiguration getTableConfiguration(Connector conn, String tableId)
           
 long getTimeInMillis(Property property)
           
static long getTimeInMillis(String str)
           
<T> T
instantiateClassProperty(Property property, Class<T> base, T defaultInstance)
           
 void invalidateCache()
           
 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)

getProperties

public abstract void getProperties(Map<String,String> props,
                                   AccumuloConfiguration.PropertyFilter filter)

iterator

public 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)

getPath

public String getPath(Property property)

getDefaultConfiguration

public static DefaultConfiguration getDefaultConfiguration()

getTableConfiguration

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

getMaxFilesPerTablet

public int getMaxFilesPerTablet()

invalidateCache

public void invalidateCache()

instantiateClassProperty

public <T> T instantiateClassProperty(Property property,
                                      Class<T> base,
                                      T defaultInstance)


Copyright © 2015 Apache Accumulo Project. All rights reserved.