Package org.apache.accumulo.core.conf
Class SiteConfiguration
- java.lang.Object
-
- org.apache.accumulo.core.conf.AccumuloConfiguration
-
- org.apache.accumulo.core.conf.SiteConfiguration
-
public class SiteConfiguration extends AccumuloConfiguration
AnAccumuloConfiguration
which first loads any properties set on the command-line (using the -o option) and then from accumulo.properties. This implementation supports defaulting undefined property values to a parent configuration's definitions.The system property "accumulo.properties" can be used to specify the location of the properties file on the classpath or filesystem if the path is prefixed with 'file://'. If the system property is not defined, it defaults to "accumulo.properties" and will look on classpath for file.
Note: Client code should not use this class, and it may be deprecated in the future.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.conf.AccumuloConfiguration
AccumuloConfiguration.ScanExecutorConfig
-
-
Constructor Summary
Constructors Constructor Description SiteConfiguration()
SiteConfiguration(File accumuloPropsFile)
SiteConfiguration(File accumuloPropsFile, Map<String,String> overrides)
SiteConfiguration(URL accumuloPropsLocation)
SiteConfiguration(URL accumuloPropsLocation, Map<String,String> overrides)
SiteConfiguration(Map<String,String> overrides)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get(Property property)
Gets a property value from this configuration.static URL
getAccumuloPropsLocation()
void
getProperties(Map<String,String> props, Predicate<String> filter)
Returns property key/value pairs in this configuration.void
getProperties(Map<String,String> props, Predicate<String> filter, boolean useDefaults)
boolean
isPropertySet(Property prop, boolean cacheAndWatch)
-
Methods inherited from class org.apache.accumulo.core.conf.AccumuloConfiguration
get, getAllPropertiesWithPrefix, getAsBytes, getBoolean, getCount, getFraction, getMaxFilesPerTablet, getPath, getPort, getScanExecutors, getTimeInMillis, getUpdateCount, invalidateCache, iterator, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getAccumuloPropsLocation
public static URL getAccumuloPropsLocation()
-
get
public String get(Property property)
Description copied from class:AccumuloConfiguration
Gets a property value from this configuration.- Specified by:
get
in classAccumuloConfiguration
- Parameters:
property
- property to get- Returns:
- property value
-
isPropertySet
public boolean isPropertySet(Property prop, boolean cacheAndWatch)
- Overrides:
isPropertySet
in classAccumuloConfiguration
-
getProperties
public void getProperties(Map<String,String> props, Predicate<String> filter)
Description copied from class:AccumuloConfiguration
Returns property key/value pairs in this configuration. The pairs include those defined in this configuration which pass the given filter, and those supplied from the parent configuration which are not included from here.- Specified by:
getProperties
in classAccumuloConfiguration
- Parameters:
props
- properties object to populatefilter
- filter for accepting properties from this configuration
-
-