@InterfaceAudience.Private public class BaseEnvironment<C extends Coprocessor> extends Object implements CoprocessorEnvironment<C>
Modifier and Type | Field and Description |
---|---|
private ClassLoader |
classLoader |
private org.apache.hadoop.conf.Configuration |
conf |
C |
impl
The coprocessor
|
private static org.slf4j.Logger |
LOG |
protected int |
priority
Chaining priority
|
private int |
seq |
(package private) Coprocessor.State |
state
Current coprocessor state
|
Constructor and Description |
---|
BaseEnvironment(C impl,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
String |
getHBaseVersion() |
C |
getInstance() |
int |
getLoadSequence() |
int |
getPriority() |
int |
getVersion() |
void |
shutdown()
Clean up the environment
|
void |
startup()
Initialize the environment
|
private static final org.slf4j.Logger LOG
public C extends Coprocessor impl
protected int priority
Coprocessor.State state
private int seq
private org.apache.hadoop.conf.Configuration conf
private ClassLoader classLoader
public BaseEnvironment(C impl, int priority, int seq, org.apache.hadoop.conf.Configuration conf)
impl
- the coprocessor instancepriority
- chaining prioritypublic void startup() throws IOException
IOException
public void shutdown()
public C getInstance()
getInstance
in interface CoprocessorEnvironment<C extends Coprocessor>
public ClassLoader getClassLoader()
getClassLoader
in interface CoprocessorEnvironment<C extends Coprocessor>
public int getPriority()
getPriority
in interface CoprocessorEnvironment<C extends Coprocessor>
public int getLoadSequence()
getLoadSequence
in interface CoprocessorEnvironment<C extends Coprocessor>
public int getVersion()
getVersion
in interface CoprocessorEnvironment<C extends Coprocessor>
public String getHBaseVersion()
getHBaseVersion
in interface CoprocessorEnvironment<C extends Coprocessor>
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface CoprocessorEnvironment<C extends Coprocessor>
UnsupportedOperationException
if you try
to set a configuration.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.