Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # dev >> [HBase 96.x] getter in MetricsSource, MetricsReplicationSource, BaseSourceImpl and BaseSource


Copy link to this message
-
[HBase 96.x] getter in MetricsSource, MetricsReplicationSource, BaseSourceImpl and BaseSource
Dear dev,

I am wondering how to get some metrics values set inside
MetricsSource.java. Particularly, I am interest in this
"MetricsReplicationSource rms".

Inside MetricsSource.java,  there are setters like : rms.setGauge(.... ).
Is there a way to get the value back using a getter?  like "long
getGauge(String gaugeName)"?

I look at the implementation and interface design, and it seems getter is
intentionally left out.

Thanks

Demai
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB