@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface MasterCoprocessorEnvironment extends CoprocessorEnvironment<MasterCoprocessor>
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Be careful RPC'ing from a Coprocessor context.
|
MetricRegistry |
getMetricRegistryForMaster()
Returns a MetricRegistry that can be used to track metrics at the master level.
|
ServerName |
getServerName() |
getClassLoader, getConfiguration, getHBaseVersion, getInstance, getLoadSequence, getPriority, getVersion, shutdown, startupServerName 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 getMetricRegistryForMaster()
See ExampleMasterObserverWithMetrics class in the hbase-examples modules for examples of how metrics can be instantiated and used.
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.