@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface RegionCoprocessorEnvironment extends CoprocessorEnvironment<RegionCoprocessor>
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Be careful RPC'ing from a Coprocessor context.
|
MetricRegistry |
getMetricRegistryForRegionServer()
Returns a MetricRegistry that can be used to track metrics at the region server level.
|
OnlineRegions |
getOnlineRegions() |
Region |
getRegion() |
RegionInfo |
getRegionInfo() |
ServerName |
getServerName() |
ConcurrentMap<String,Object> |
getSharedData() |
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getVersion, shutdown, startupRegion getRegion()
RegionInfo getRegionInfo()
OnlineRegions getOnlineRegions()
getServerName()}.ConcurrentMap<String,Object> getSharedData()
ServerName getServerName()
Connection getConnection()
Using a Connection to get at a local resource -- say a Region that is on the local Server or using Admin Interface from a Coprocessor hosted on the Master -- will result in a short-circuit of the RPC framework to make a direct invocation avoiding RPC (and protobuf marshalling/unmarshalling).
MetricRegistry getMetricRegistryForRegionServer()
See ExampleRegionObserverWithMetrics class in the hbase-examples modules to see examples of how metrics can be instantiated and used.
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.