You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Demai Ni <ni...@gmail.com> on 2013/12/12 01:51:51 UTC

[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