|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.coprocessor.CoprocessorHost.Environment
public static class CoprocessorHost.Environment
Encapsulation of the environment of each coprocessor
Field Summary | |
---|---|
Coprocessor |
impl
The coprocessor |
protected List<HTableInterface> |
openTables
Accounting for tables opened by the coprocessor |
protected int |
priority
Chaining priority |
Constructor Summary | |
---|---|
CoprocessorHost.Environment(Coprocessor impl,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf)
Constructor |
Method Summary | |
---|---|
ClassLoader |
getClassLoader()
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
|
String |
getHBaseVersion()
|
Coprocessor |
getInstance()
|
int |
getLoadSequence()
|
int |
getPriority()
|
HTableInterface |
getTable(TableName tableName)
Open a table from within the Coprocessor environment |
HTableInterface |
getTable(TableName tableName,
ExecutorService pool)
Open a table from within the Coprocessor environment |
int |
getVersion()
|
protected void |
shutdown()
Clean up the environment |
void |
startup()
Initialize the environment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Coprocessor impl
protected int priority
protected List<HTableInterface> openTables
Constructor Detail |
---|
public CoprocessorHost.Environment(Coprocessor impl, int priority, int seq, org.apache.hadoop.conf.Configuration conf)
impl
- the coprocessor instancepriority
- chaining priorityMethod Detail |
---|
public void startup() throws IOException
IOException
protected void shutdown()
public Coprocessor getInstance()
getInstance
in interface CoprocessorEnvironment
public ClassLoader getClassLoader()
getClassLoader
in interface CoprocessorEnvironment
public int getPriority()
getPriority
in interface CoprocessorEnvironment
public int getLoadSequence()
getLoadSequence
in interface CoprocessorEnvironment
public int getVersion()
getVersion
in interface CoprocessorEnvironment
public String getHBaseVersion()
getHBaseVersion
in interface CoprocessorEnvironment
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface CoprocessorEnvironment
public HTableInterface getTable(TableName tableName) throws IOException
getTable
in interface CoprocessorEnvironment
tableName
- the table name
IOException
- Exceptionpublic HTableInterface getTable(TableName tableName, ExecutorService pool) throws IOException
getTable
in interface CoprocessorEnvironment
tableName
- the table name
IOException
- Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |