Package org.apache.accumulo.server
Class ServiceEnvironmentImpl
- java.lang.Object
-
- org.apache.accumulo.server.ServiceEnvironmentImpl
-
- All Implemented Interfaces:
ServiceEnvironment
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 ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceEnvironment.ConfigurationgetConfiguration()ServiceEnvironment.ConfigurationgetConfiguration(TableId tableId)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 ctx)
-
-
Method Detail
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration()
- Specified by:
getConfigurationin interfaceServiceEnvironment
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration(TableId tableId)
- Specified by:
getConfigurationin interfaceServiceEnvironment
-
getTableName
public String getTableName(TableId tableId) throws TableNotFoundException
- Specified by:
getTableNamein interfaceServiceEnvironment- Throws:
TableNotFoundException
-
instantiate
public <T> T instantiate(String className, Class<T> base) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
- Specified by:
instantiatein interfaceServiceEnvironment- Throws:
ClassNotFoundExceptionInstantiationExceptionIllegalAccessExceptionIOException
-
instantiate
public <T> T instantiate(TableId tableId, String className, Class<T> base) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
- Specified by:
instantiatein interfaceServiceEnvironment- Throws:
ClassNotFoundExceptionInstantiationExceptionIllegalAccessExceptionIOException
-
-