Interface ServiceEnvironment.Configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
get(String key)
Map<String,String>
getCustom()
Users can set arbitrary custom properties in Accumulo using the prefixgeneral.custom.
.String
getCustom(String keySuffix)
This method appends the prefixgeneral.custom
and gets the property.Map<String,String>
getTableCustom()
Users can set arbitrary custom table properties in Accumulo using the prefixtable.custom.
.String
getTableCustom(String keySuffix)
This method appends the prefixtable.custom
and gets the property.Iterator<Map.Entry<String,String>>
iterator()
Returns an iterator over all properties.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
get
String get(String key)
- Returns:
- The value for a single property or null if not present. Sensitive properties are intentionally not returned in order to prevent inadvertent logging of them. If your plugin needs sensitive properties a getSensitive method could be added.
-
getCustom
Map<String,String> getCustom()
Users can set arbitrary custom properties in Accumulo using the prefixgeneral.custom.
. This method will return all properties with that prefix, stripping the prefix. For example, assume the following properties were set :general.custom.prop1=123 general.custom.prop2=abc
[prop1=123,prop2=abc]
.
-
getCustom
String getCustom(String keySuffix)
This method appends the prefixgeneral.custom
and gets the property.- Returns:
- The same as calling
getCustom().get(keySuffix)
ORget("general.custom."+keySuffix)
-
getTableCustom
Map<String,String> getTableCustom()
Users can set arbitrary custom table properties in Accumulo using the prefixtable.custom.
. This method will return all properties with that prefix, stripping the prefix. For example, assume the following properties were set :table.custom.tp1=ch1 table.custom.tp2=bh2
[tp1=ch1,tp2=bh2]
.
-
getTableCustom
String getTableCustom(String keySuffix)
This method appends the prefixtable.custom
and gets the property.- Returns:
- The same as calling
getTableCustom().get(keySuffix)
ORget("table.custom."+keySuffix)
-
iterator
Iterator<Map.Entry<String,String>> iterator()
Returns an iterator over all properties. This may be inefficient, consider opening an issue if you have a use case that is only satisfied by this. Sensitive properties are intentionally suppressed in order to prevent inadvertent logging of them.
-
-