|
||||||||||
| 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 | |
|---|---|
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 |
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 priority| Method Detail |
|---|
public void startup()
protected void shutdown()
public Coprocessor getInstance()
getInstance in interface CoprocessorEnvironmentpublic int getPriority()
getPriority in interface CoprocessorEnvironmentpublic int getLoadSequence()
getLoadSequence in interface CoprocessorEnvironmentpublic int getVersion()
getVersion in interface CoprocessorEnvironmentpublic String getHBaseVersion()
getHBaseVersion in interface CoprocessorEnvironmentpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface CoprocessorEnvironment
public HTableInterface getTable(TableName tableName)
throws IOException
getTable in interface CoprocessorEnvironmenttableName - the table name
IOException - Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||