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.Configuration
getConfiguration()
ServiceEnvironment.Configuration
getConfiguration(TableId tableId)
ServerContext
getContext()
String
getTableName(TableId tableId)
<T> T
instantiate(String className, Class<T> base)
<T> T
instantiate(TableId tableId, String className, Class<T> base)
-
-
-
Constructor Detail
-
ServiceEnvironmentImpl
public ServiceEnvironmentImpl(ServerContext context)
-
-
Method Detail
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration()
- Specified by:
getConfiguration
in interfacePluginEnvironment
- Specified by:
getConfiguration
in interfaceServiceEnvironment
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration(TableId tableId)
- Specified by:
getConfiguration
in interfacePluginEnvironment
- Specified by:
getConfiguration
in interfaceServiceEnvironment
-
getTableName
public String getTableName(TableId tableId) throws TableNotFoundException
- Specified by:
getTableName
in interfacePluginEnvironment
- Throws:
TableNotFoundException
-
instantiate
public <T> T instantiate(String className, Class<T> base) throws ReflectiveOperationException, IOException
- Specified by:
instantiate
in interfacePluginEnvironment
- Throws:
ReflectiveOperationException
IOException
-
instantiate
public <T> T instantiate(TableId tableId, String className, Class<T> base) throws ReflectiveOperationException, IOException
- Specified by:
instantiate
in interfacePluginEnvironment
- Throws:
ReflectiveOperationException
IOException
-
getContext
public ServerContext getContext()
-
-