static class RegionCoprocessorHost.RegionEnvironment extends CoprocessorHost.Environment implements RegionCoprocessorEnvironment
Modifier and Type | Field and Description |
---|---|
private Region |
region |
private RegionServerServices |
rsServices |
(package private) ConcurrentMap<String,Object> |
sharedData |
private boolean |
useLegacyPost |
private boolean |
useLegacyPre |
impl, openTables, priority
Constructor and Description |
---|
RegionCoprocessorHost.RegionEnvironment(Coprocessor impl,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf,
Region region,
RegionServerServices services,
ConcurrentMap<String,Object> sharedData)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Region |
getRegion() |
HRegionInfo |
getRegionInfo() |
RegionServerServices |
getRegionServerServices() |
ConcurrentMap<String,Object> |
getSharedData() |
void |
shutdown()
Clean up the environment
|
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getTable, getTable, getVersion, startup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getTable, getTable, getVersion
private Region region
private RegionServerServices rsServices
ConcurrentMap<String,Object> sharedData
private final boolean useLegacyPre
private final boolean useLegacyPost
public RegionCoprocessorHost.RegionEnvironment(Coprocessor impl, int priority, int seq, org.apache.hadoop.conf.Configuration conf, Region region, RegionServerServices services, ConcurrentMap<String,Object> sharedData)
impl
- the coprocessor instancepriority
- chaining prioritypublic Region getRegion()
getRegion
in interface RegionCoprocessorEnvironment
public RegionServerServices getRegionServerServices()
getRegionServerServices
in interface RegionCoprocessorEnvironment
public void shutdown()
CoprocessorHost.Environment
shutdown
in class CoprocessorHost.Environment
public ConcurrentMap<String,Object> getSharedData()
getSharedData
in interface RegionCoprocessorEnvironment
public HRegionInfo getRegionInfo()
getRegionInfo
in interface RegionCoprocessorEnvironment
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.