Interface ServiceEnvironment
-
- All Superinterfaces:
PluginEnvironment
- All Known Subinterfaces:
BalancerEnvironment
- All Known Implementing Classes:
ClientServiceEnvironmentImpl
public interface ServiceEnvironment extends PluginEnvironment
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
Nested Classes Modifier and Type Interface Description static interface
ServiceEnvironment.Configuration
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceEnvironment.Configuration
getConfiguration()
ServiceEnvironment.Configuration
getConfiguration(TableId tableId)
-
Methods inherited from interface org.apache.accumulo.core.client.PluginEnvironment
getTableName, instantiate, instantiate
-
-
-
-
Method Detail
-
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
ServiceEnvironment.Configuration getConfiguration(TableId tableId)
- 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()
.
-
-