Package org.apache.accumulo.server
Class ServiceEnvironmentImpl
- java.lang.Object
-
- org.apache.accumulo.server.ServiceEnvironmentImpl
-
- All Implemented Interfaces:
PluginEnvironment,ServiceEnvironment
- Direct Known Subclasses:
BalancerEnvironmentImpl
public class ServiceEnvironmentImpl extends Object implements ServiceEnvironment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.common.ServiceEnvironment
ServiceEnvironment.Configuration
-
-
Constructor Summary
Constructors Constructor Description ServiceEnvironmentImpl(ServerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceEnvironment.ConfigurationgetConfiguration()ServiceEnvironment.ConfigurationgetConfiguration(TableId tableId)ServerContextgetContext()StringgetTableName(TableId tableId)<T> Tinstantiate(String className, Class<T> base)<T> Tinstantiate(TableId tableId, String className, Class<T> base)
-
-
-
Constructor Detail
-
ServiceEnvironmentImpl
public ServiceEnvironmentImpl(ServerContext context)
-
-
Method Detail
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration()
- Specified by:
getConfigurationin interfacePluginEnvironment- Specified by:
getConfigurationin interfaceServiceEnvironment
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration(TableId tableId)
- Specified by:
getConfigurationin interfacePluginEnvironment- Specified by:
getConfigurationin interfaceServiceEnvironment
-
getTableName
public String getTableName(TableId tableId) throws TableNotFoundException
- Specified by:
getTableNamein interfacePluginEnvironment- Throws:
TableNotFoundException
-
instantiate
public <T> T instantiate(String className, Class<T> base) throws ReflectiveOperationException
- Specified by:
instantiatein interfacePluginEnvironment- Throws:
ReflectiveOperationException
-
instantiate
public <T> T instantiate(TableId tableId, String className, Class<T> base) throws ReflectiveOperationException
- Specified by:
instantiatein interfacePluginEnvironment- Throws:
ReflectiveOperationException
-
getContext
public ServerContext getContext()
-
-