Interface ServiceEnvironment
- All Superinterfaces:
PluginEnvironment
- All Known Subinterfaces:
BalancerEnvironment
This interface exposes Accumulo system level information to plugins in a stable manner. The
purpose of this interface is to insulate plugins from internal refactorings and changes to
Accumulo.
Having this allows adding methods to the SPI which are not desired in PluginEnvironment which is public API.
- Since:
- 2.0.0
-
Nested Class Summary
-
Method Summary
Methods inherited from interface org.apache.accumulo.core.client.PluginEnvironment
getTableName, instantiate, instantiate
-
Method Details
-
getConfiguration
ServiceEnvironment.Configuration getConfiguration()- Specified by:
getConfiguration
in interfacePluginEnvironment
- Returns:
- A view of Accumulo's system level configuration. This is backed by system level config in zookeeper, which falls back to site configuration, which falls back to the default configuration.
-
getConfiguration
- Specified by:
getConfiguration
in interfacePluginEnvironment
- Returns:
- a view of a table's configuration. When requesting properties that start with
table.
the returned configuration may give different values for different tables. For other properties the returned configuration will return the same value asgetConfiguration()
.
-