@InterfaceAudience.Private public class BaseEnvironment<C extends Coprocessor> extends Object implements CoprocessorEnvironment<C>
Modifier and Type | Field and Description |
---|---|
C |
impl
The coprocessor
|
protected int |
priority
Chaining priority
|
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
|
public C extends Coprocessor impl
protected int priority
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–2019 Cloudera. All rights reserved.