Home | About | Sematext search-lucene.com search-hadoop.com
 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
Demai Ni 2013-12-12, 00:51
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