@InterfaceAudience.Private public class ExampleRegionObserverWithMetrics extends Object implements RegionCoprocessor
These metrics will be available through the regular Hadoop metrics2 sinks (ganglia, opentsdb, etc) as well as JMX output. You can view a snapshot of the metrics by going to the http web UI of the regionserver page, something like http://myregionserverhost:16030/jmx
Coprocessor.StatePRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION| 构造器和说明 |
|---|
ExampleRegionObserverWithMetrics() |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<RegionObserver> |
getRegionObserver() |
void |
start(CoprocessorEnvironment env) |
void |
stop(CoprocessorEnvironment e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBulkLoadObserver, getEndpointObservergetServicespublic Optional<RegionObserver> getRegionObserver()
getRegionObserver 在接口中 RegionCoprocessorpublic void start(CoprocessorEnvironment env) throws IOException
start 在接口中 CoprocessorIOExceptionpublic void stop(CoprocessorEnvironment e) throws IOException
stop 在接口中 CoprocessorIOExceptionCopyright © 2007–2020. All rights reserved.