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.Configuration
getConfiguration()
ServiceEnvironment.Configuration
getConfiguration(TableId tableId)
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 ctx)
-
-
Method Detail
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration()
- Specified by:
getConfiguration
in interfaceServiceEnvironment
-
getConfiguration
public ServiceEnvironment.Configuration getConfiguration(TableId tableId)
- Specified by:
getConfiguration
in interfaceServiceEnvironment
-
getTableName
public String getTableName(TableId tableId) throws TableNotFoundException
- Specified by:
getTableName
in interfaceServiceEnvironment
- Throws:
TableNotFoundException
-
instantiate
public <T> T instantiate(String className, Class<T> base) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
- Specified by:
instantiate
in interfaceServiceEnvironment
- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
IOException
-
instantiate
public <T> T instantiate(TableId tableId, String className, Class<T> base) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
- Specified by:
instantiate
in interfaceServiceEnvironment
- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
IOException
-
-