hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [14/51] [partial] hbase-site git commit: Published site at 6f6a8ed71fe98b83e8a8db974fc15b0d8597b174.
Date Fri, 05 Feb 2016 16:46:11 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1b9384b2/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.html
index 9c0f2cf..d69dc71 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.html
@@ -245,26 +245,30 @@
 <span class="sourceLineNo">237</span>              MetricsRegionServerSource.READ_REQUEST_COUNT_DESC),<a
name="line.237"></a>
 <span class="sourceLineNo">238</span>          this.regionWrapper.getReadRequestCount());<a
name="line.238"></a>
 <span class="sourceLineNo">239</span>      mrb.addCounter(Interns.info(<a
name="line.239"></a>
-<span class="sourceLineNo">240</span>              regionNamePrefix + MetricsRegionServerSource.WRITE_REQUEST_COUNT,<a
name="line.240"></a>
-<span class="sourceLineNo">241</span>              MetricsRegionServerSource.WRITE_REQUEST_COUNT_DESC),<a
name="line.241"></a>
-<span class="sourceLineNo">242</span>          this.regionWrapper.getWriteRequestCount());<a
name="line.242"></a>
-<span class="sourceLineNo">243</span>      mrb.addCounter(Interns.info(regionNamePrefix
+ MetricsRegionSource.REPLICA_ID,<a name="line.243"></a>
-<span class="sourceLineNo">244</span>              MetricsRegionSource.REPLICA_ID_DESC),<a
name="line.244"></a>
-<span class="sourceLineNo">245</span>          this.regionWrapper.getReplicaId());<a
name="line.245"></a>
-<span class="sourceLineNo">246</span>    }<a name="line.246"></a>
-<span class="sourceLineNo">247</span>  }<a name="line.247"></a>
-<span class="sourceLineNo">248</span><a name="line.248"></a>
-<span class="sourceLineNo">249</span>  @Override<a name="line.249"></a>
-<span class="sourceLineNo">250</span>  public int hashCode() {<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    return hashCode;<a name="line.251"></a>
-<span class="sourceLineNo">252</span>  }<a name="line.252"></a>
-<span class="sourceLineNo">253</span><a name="line.253"></a>
-<span class="sourceLineNo">254</span>  @Override<a name="line.254"></a>
-<span class="sourceLineNo">255</span>  public boolean equals(Object obj) {<a
name="line.255"></a>
-<span class="sourceLineNo">256</span>    return obj == this ||<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        (obj instanceof MetricsRegionSourceImpl
&amp;&amp; compareTo((MetricsRegionSourceImpl) obj) == 0);<a name="line.257"></a>
-<span class="sourceLineNo">258</span>  }<a name="line.258"></a>
-<span class="sourceLineNo">259</span>}<a name="line.259"></a>
+<span class="sourceLineNo">240</span>              regionNamePrefix + MetricsRegionServerSource.FILTERED_READ_REQUEST_COUNT,<a
name="line.240"></a>
+<span class="sourceLineNo">241</span>              MetricsRegionServerSource.FILTERED_READ_REQUEST_COUNT_DESC),<a
name="line.241"></a>
+<span class="sourceLineNo">242</span>          this.regionWrapper.getFilteredReadRequestCount());<a
name="line.242"></a>
+<span class="sourceLineNo">243</span>      mrb.addCounter(Interns.info(<a
name="line.243"></a>
+<span class="sourceLineNo">244</span>              regionNamePrefix + MetricsRegionServerSource.WRITE_REQUEST_COUNT,<a
name="line.244"></a>
+<span class="sourceLineNo">245</span>              MetricsRegionServerSource.WRITE_REQUEST_COUNT_DESC),<a
name="line.245"></a>
+<span class="sourceLineNo">246</span>          this.regionWrapper.getWriteRequestCount());<a
name="line.246"></a>
+<span class="sourceLineNo">247</span>      mrb.addCounter(Interns.info(regionNamePrefix
+ MetricsRegionSource.REPLICA_ID,<a name="line.247"></a>
+<span class="sourceLineNo">248</span>              MetricsRegionSource.REPLICA_ID_DESC),<a
name="line.248"></a>
+<span class="sourceLineNo">249</span>          this.regionWrapper.getReplicaId());<a
name="line.249"></a>
+<span class="sourceLineNo">250</span>    }<a name="line.250"></a>
+<span class="sourceLineNo">251</span>  }<a name="line.251"></a>
+<span class="sourceLineNo">252</span><a name="line.252"></a>
+<span class="sourceLineNo">253</span>  @Override<a name="line.253"></a>
+<span class="sourceLineNo">254</span>  public int hashCode() {<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    return hashCode;<a name="line.255"></a>
+<span class="sourceLineNo">256</span>  }<a name="line.256"></a>
+<span class="sourceLineNo">257</span><a name="line.257"></a>
+<span class="sourceLineNo">258</span>  @Override<a name="line.258"></a>
+<span class="sourceLineNo">259</span>  public boolean equals(Object obj) {<a
name="line.259"></a>
+<span class="sourceLineNo">260</span>    return obj == this ||<a name="line.260"></a>
+<span class="sourceLineNo">261</span>        (obj instanceof MetricsRegionSourceImpl
&amp;&amp; compareTo((MetricsRegionSourceImpl) obj) == 0);<a name="line.261"></a>
+<span class="sourceLineNo">262</span>  }<a name="line.262"></a>
+<span class="sourceLineNo">263</span>}<a name="line.263"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1b9384b2/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapper.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapper.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapper.html
index 518888e..70a2716 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapper.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapper.html
@@ -78,23 +78,28 @@
 <span class="sourceLineNo">070</span>  long getReadRequestCount();<a name="line.70"></a>
 <span class="sourceLineNo">071</span><a name="line.71"></a>
 <span class="sourceLineNo">072</span>  /**<a name="line.72"></a>
-<span class="sourceLineNo">073</span>   * Get the total number of mutations that
have been issued against this region.<a name="line.73"></a>
+<span class="sourceLineNo">073</span>   * Get the total number of filtered read
requests that have been issued against this region<a name="line.73"></a>
 <span class="sourceLineNo">074</span>   */<a name="line.74"></a>
-<span class="sourceLineNo">075</span>  long getWriteRequestCount();<a name="line.75"></a>
+<span class="sourceLineNo">075</span>  long getFilteredReadRequestCount();<a
name="line.75"></a>
 <span class="sourceLineNo">076</span><a name="line.76"></a>
-<span class="sourceLineNo">077</span>  long getNumFilesCompacted();<a name="line.77"></a>
-<span class="sourceLineNo">078</span><a name="line.78"></a>
-<span class="sourceLineNo">079</span>  long getNumBytesCompacted();<a name="line.79"></a>
-<span class="sourceLineNo">080</span><a name="line.80"></a>
-<span class="sourceLineNo">081</span>  long getNumCompactionsCompleted();<a
name="line.81"></a>
-<span class="sourceLineNo">082</span><a name="line.82"></a>
-<span class="sourceLineNo">083</span>  int getRegionHashCode();<a name="line.83"></a>
-<span class="sourceLineNo">084</span><a name="line.84"></a>
-<span class="sourceLineNo">085</span>  /**<a name="line.85"></a>
-<span class="sourceLineNo">086</span>   * Get the replica id of this region.<a
name="line.86"></a>
-<span class="sourceLineNo">087</span>   */<a name="line.87"></a>
-<span class="sourceLineNo">088</span>  int getReplicaId();<a name="line.88"></a>
-<span class="sourceLineNo">089</span>}<a name="line.89"></a>
+<span class="sourceLineNo">077</span>  /**<a name="line.77"></a>
+<span class="sourceLineNo">078</span>   * Get the total number of mutations that
have been issued against this region.<a name="line.78"></a>
+<span class="sourceLineNo">079</span>   */<a name="line.79"></a>
+<span class="sourceLineNo">080</span>  long getWriteRequestCount();<a name="line.80"></a>
+<span class="sourceLineNo">081</span><a name="line.81"></a>
+<span class="sourceLineNo">082</span>  long getNumFilesCompacted();<a name="line.82"></a>
+<span class="sourceLineNo">083</span><a name="line.83"></a>
+<span class="sourceLineNo">084</span>  long getNumBytesCompacted();<a name="line.84"></a>
+<span class="sourceLineNo">085</span><a name="line.85"></a>
+<span class="sourceLineNo">086</span>  long getNumCompactionsCompleted();<a
name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span>  int getRegionHashCode();<a name="line.88"></a>
+<span class="sourceLineNo">089</span><a name="line.89"></a>
+<span class="sourceLineNo">090</span>  /**<a name="line.90"></a>
+<span class="sourceLineNo">091</span>   * Get the replica id of this region.<a
name="line.91"></a>
+<span class="sourceLineNo">092</span>   */<a name="line.92"></a>
+<span class="sourceLineNo">093</span>  int getReplicaId();<a name="line.93"></a>
+<span class="sourceLineNo">094</span>}<a name="line.94"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1b9384b2/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable.html
index 7ef487a..783e06d 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable.html
@@ -120,66 +120,71 @@
 <span class="sourceLineNo">112</span>  }<a name="line.112"></a>
 <span class="sourceLineNo">113</span><a name="line.113"></a>
 <span class="sourceLineNo">114</span>  @Override<a name="line.114"></a>
-<span class="sourceLineNo">115</span>  public long getWriteRequestCount() {<a
name="line.115"></a>
-<span class="sourceLineNo">116</span>    return this.region.getWriteRequestsCount();<a
name="line.116"></a>
+<span class="sourceLineNo">115</span>  public long getFilteredReadRequestCount()
{<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    return this.region.getFilteredReadRequestsCount();<a
name="line.116"></a>
 <span class="sourceLineNo">117</span>  }<a name="line.117"></a>
 <span class="sourceLineNo">118</span><a name="line.118"></a>
 <span class="sourceLineNo">119</span>  @Override<a name="line.119"></a>
-<span class="sourceLineNo">120</span>  public long getNumFilesCompacted() {<a
name="line.120"></a>
-<span class="sourceLineNo">121</span>    return this.region.compactionNumFilesCompacted.get();<a
name="line.121"></a>
+<span class="sourceLineNo">120</span>  public long getWriteRequestCount() {<a
name="line.120"></a>
+<span class="sourceLineNo">121</span>    return this.region.getWriteRequestsCount();<a
name="line.121"></a>
 <span class="sourceLineNo">122</span>  }<a name="line.122"></a>
 <span class="sourceLineNo">123</span><a name="line.123"></a>
 <span class="sourceLineNo">124</span>  @Override<a name="line.124"></a>
-<span class="sourceLineNo">125</span>  public long getNumBytesCompacted() {<a
name="line.125"></a>
-<span class="sourceLineNo">126</span>    return this.region.compactionNumBytesCompacted.get();<a
name="line.126"></a>
+<span class="sourceLineNo">125</span>  public long getNumFilesCompacted() {<a
name="line.125"></a>
+<span class="sourceLineNo">126</span>    return this.region.compactionNumFilesCompacted.get();<a
name="line.126"></a>
 <span class="sourceLineNo">127</span>  }<a name="line.127"></a>
 <span class="sourceLineNo">128</span><a name="line.128"></a>
 <span class="sourceLineNo">129</span>  @Override<a name="line.129"></a>
-<span class="sourceLineNo">130</span>  public long getNumCompactionsCompleted()
{<a name="line.130"></a>
-<span class="sourceLineNo">131</span>    return this.region.compactionsFinished.get();<a
name="line.131"></a>
+<span class="sourceLineNo">130</span>  public long getNumBytesCompacted() {<a
name="line.130"></a>
+<span class="sourceLineNo">131</span>    return this.region.compactionNumBytesCompacted.get();<a
name="line.131"></a>
 <span class="sourceLineNo">132</span>  }<a name="line.132"></a>
 <span class="sourceLineNo">133</span><a name="line.133"></a>
 <span class="sourceLineNo">134</span>  @Override<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  public int getRegionHashCode() {<a
name="line.135"></a>
-<span class="sourceLineNo">136</span>    return this.region.hashCode();<a
name="line.136"></a>
+<span class="sourceLineNo">135</span>  public long getNumCompactionsCompleted()
{<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    return this.region.compactionsFinished.get();<a
name="line.136"></a>
 <span class="sourceLineNo">137</span>  }<a name="line.137"></a>
 <span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span>  public class HRegionMetricsWrapperRunnable
implements Runnable {<a name="line.139"></a>
-<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span>    @Override<a name="line.141"></a>
-<span class="sourceLineNo">142</span>    public void run() {<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      long tempNumStoreFiles = 0;<a name="line.143"></a>
-<span class="sourceLineNo">144</span>      long tempMemstoreSize = 0;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      long tempStoreFileSize = 0;<a name="line.145"></a>
-<span class="sourceLineNo">146</span><a name="line.146"></a>
-<span class="sourceLineNo">147</span>      if (region.stores != null) {<a
name="line.147"></a>
-<span class="sourceLineNo">148</span>        for (Store store : region.stores.values())
{<a name="line.148"></a>
-<span class="sourceLineNo">149</span>          tempNumStoreFiles += store.getStorefilesCount();<a
name="line.149"></a>
-<span class="sourceLineNo">150</span>          tempMemstoreSize += store.getMemStoreSize();<a
name="line.150"></a>
-<span class="sourceLineNo">151</span>          tempStoreFileSize += store.getStorefilesSize();<a
name="line.151"></a>
-<span class="sourceLineNo">152</span>        }<a name="line.152"></a>
-<span class="sourceLineNo">153</span>      }<a name="line.153"></a>
-<span class="sourceLineNo">154</span><a name="line.154"></a>
-<span class="sourceLineNo">155</span>      numStoreFiles = tempNumStoreFiles;<a
name="line.155"></a>
-<span class="sourceLineNo">156</span>      memstoreSize = tempMemstoreSize;<a
name="line.156"></a>
-<span class="sourceLineNo">157</span>      storeFileSize = tempStoreFileSize;<a
name="line.157"></a>
-<span class="sourceLineNo">158</span>    }<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  }<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>  @Override<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  public void close() throws IOException
{<a name="line.162"></a>
-<span class="sourceLineNo">163</span>    regionMetricsUpdateTask.cancel(true);<a
name="line.163"></a>
+<span class="sourceLineNo">139</span>  @Override<a name="line.139"></a>
+<span class="sourceLineNo">140</span>  public int getRegionHashCode() {<a
name="line.140"></a>
+<span class="sourceLineNo">141</span>    return this.region.hashCode();<a
name="line.141"></a>
+<span class="sourceLineNo">142</span>  }<a name="line.142"></a>
+<span class="sourceLineNo">143</span><a name="line.143"></a>
+<span class="sourceLineNo">144</span>  public class HRegionMetricsWrapperRunnable
implements Runnable {<a name="line.144"></a>
+<span class="sourceLineNo">145</span><a name="line.145"></a>
+<span class="sourceLineNo">146</span>    @Override<a name="line.146"></a>
+<span class="sourceLineNo">147</span>    public void run() {<a name="line.147"></a>
+<span class="sourceLineNo">148</span>      long tempNumStoreFiles = 0;<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      long tempMemstoreSize = 0;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>      long tempStoreFileSize = 0;<a name="line.150"></a>
+<span class="sourceLineNo">151</span><a name="line.151"></a>
+<span class="sourceLineNo">152</span>      if (region.stores != null) {<a
name="line.152"></a>
+<span class="sourceLineNo">153</span>        for (Store store : region.stores.values())
{<a name="line.153"></a>
+<span class="sourceLineNo">154</span>          tempNumStoreFiles += store.getStorefilesCount();<a
name="line.154"></a>
+<span class="sourceLineNo">155</span>          tempMemstoreSize += store.getMemStoreSize();<a
name="line.155"></a>
+<span class="sourceLineNo">156</span>          tempStoreFileSize += store.getStorefilesSize();<a
name="line.156"></a>
+<span class="sourceLineNo">157</span>        }<a name="line.157"></a>
+<span class="sourceLineNo">158</span>      }<a name="line.158"></a>
+<span class="sourceLineNo">159</span><a name="line.159"></a>
+<span class="sourceLineNo">160</span>      numStoreFiles = tempNumStoreFiles;<a
name="line.160"></a>
+<span class="sourceLineNo">161</span>      memstoreSize = tempMemstoreSize;<a
name="line.161"></a>
+<span class="sourceLineNo">162</span>      storeFileSize = tempStoreFileSize;<a
name="line.162"></a>
+<span class="sourceLineNo">163</span>    }<a name="line.163"></a>
 <span class="sourceLineNo">164</span>  }<a name="line.164"></a>
 <span class="sourceLineNo">165</span><a name="line.165"></a>
-<span class="sourceLineNo">166</span>  /**<a name="line.166"></a>
-<span class="sourceLineNo">167</span>   * Get the replica id of this region.<a
name="line.167"></a>
-<span class="sourceLineNo">168</span>   */<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  @Override<a name="line.169"></a>
-<span class="sourceLineNo">170</span>  public int getReplicaId() {<a name="line.170"></a>
-<span class="sourceLineNo">171</span>    return region.getRegionInfo().getReplicaId();<a
name="line.171"></a>
-<span class="sourceLineNo">172</span>  }<a name="line.172"></a>
-<span class="sourceLineNo">173</span><a name="line.173"></a>
-<span class="sourceLineNo">174</span>}<a name="line.174"></a>
+<span class="sourceLineNo">166</span>  @Override<a name="line.166"></a>
+<span class="sourceLineNo">167</span>  public void close() throws IOException
{<a name="line.167"></a>
+<span class="sourceLineNo">168</span>    regionMetricsUpdateTask.cancel(true);<a
name="line.168"></a>
+<span class="sourceLineNo">169</span>  }<a name="line.169"></a>
+<span class="sourceLineNo">170</span><a name="line.170"></a>
+<span class="sourceLineNo">171</span>  /**<a name="line.171"></a>
+<span class="sourceLineNo">172</span>   * Get the replica id of this region.<a
name="line.172"></a>
+<span class="sourceLineNo">173</span>   */<a name="line.173"></a>
+<span class="sourceLineNo">174</span>  @Override<a name="line.174"></a>
+<span class="sourceLineNo">175</span>  public int getReplicaId() {<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    return region.getRegionInfo().getReplicaId();<a
name="line.176"></a>
+<span class="sourceLineNo">177</span>  }<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span>}<a name="line.179"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1b9384b2/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.html
index 7ef487a..783e06d 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.html
@@ -120,66 +120,71 @@
 <span class="sourceLineNo">112</span>  }<a name="line.112"></a>
 <span class="sourceLineNo">113</span><a name="line.113"></a>
 <span class="sourceLineNo">114</span>  @Override<a name="line.114"></a>
-<span class="sourceLineNo">115</span>  public long getWriteRequestCount() {<a
name="line.115"></a>
-<span class="sourceLineNo">116</span>    return this.region.getWriteRequestsCount();<a
name="line.116"></a>
+<span class="sourceLineNo">115</span>  public long getFilteredReadRequestCount()
{<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    return this.region.getFilteredReadRequestsCount();<a
name="line.116"></a>
 <span class="sourceLineNo">117</span>  }<a name="line.117"></a>
 <span class="sourceLineNo">118</span><a name="line.118"></a>
 <span class="sourceLineNo">119</span>  @Override<a name="line.119"></a>
-<span class="sourceLineNo">120</span>  public long getNumFilesCompacted() {<a
name="line.120"></a>
-<span class="sourceLineNo">121</span>    return this.region.compactionNumFilesCompacted.get();<a
name="line.121"></a>
+<span class="sourceLineNo">120</span>  public long getWriteRequestCount() {<a
name="line.120"></a>
+<span class="sourceLineNo">121</span>    return this.region.getWriteRequestsCount();<a
name="line.121"></a>
 <span class="sourceLineNo">122</span>  }<a name="line.122"></a>
 <span class="sourceLineNo">123</span><a name="line.123"></a>
 <span class="sourceLineNo">124</span>  @Override<a name="line.124"></a>
-<span class="sourceLineNo">125</span>  public long getNumBytesCompacted() {<a
name="line.125"></a>
-<span class="sourceLineNo">126</span>    return this.region.compactionNumBytesCompacted.get();<a
name="line.126"></a>
+<span class="sourceLineNo">125</span>  public long getNumFilesCompacted() {<a
name="line.125"></a>
+<span class="sourceLineNo">126</span>    return this.region.compactionNumFilesCompacted.get();<a
name="line.126"></a>
 <span class="sourceLineNo">127</span>  }<a name="line.127"></a>
 <span class="sourceLineNo">128</span><a name="line.128"></a>
 <span class="sourceLineNo">129</span>  @Override<a name="line.129"></a>
-<span class="sourceLineNo">130</span>  public long getNumCompactionsCompleted()
{<a name="line.130"></a>
-<span class="sourceLineNo">131</span>    return this.region.compactionsFinished.get();<a
name="line.131"></a>
+<span class="sourceLineNo">130</span>  public long getNumBytesCompacted() {<a
name="line.130"></a>
+<span class="sourceLineNo">131</span>    return this.region.compactionNumBytesCompacted.get();<a
name="line.131"></a>
 <span class="sourceLineNo">132</span>  }<a name="line.132"></a>
 <span class="sourceLineNo">133</span><a name="line.133"></a>
 <span class="sourceLineNo">134</span>  @Override<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  public int getRegionHashCode() {<a
name="line.135"></a>
-<span class="sourceLineNo">136</span>    return this.region.hashCode();<a
name="line.136"></a>
+<span class="sourceLineNo">135</span>  public long getNumCompactionsCompleted()
{<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    return this.region.compactionsFinished.get();<a
name="line.136"></a>
 <span class="sourceLineNo">137</span>  }<a name="line.137"></a>
 <span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span>  public class HRegionMetricsWrapperRunnable
implements Runnable {<a name="line.139"></a>
-<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span>    @Override<a name="line.141"></a>
-<span class="sourceLineNo">142</span>    public void run() {<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      long tempNumStoreFiles = 0;<a name="line.143"></a>
-<span class="sourceLineNo">144</span>      long tempMemstoreSize = 0;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      long tempStoreFileSize = 0;<a name="line.145"></a>
-<span class="sourceLineNo">146</span><a name="line.146"></a>
-<span class="sourceLineNo">147</span>      if (region.stores != null) {<a
name="line.147"></a>
-<span class="sourceLineNo">148</span>        for (Store store : region.stores.values())
{<a name="line.148"></a>
-<span class="sourceLineNo">149</span>          tempNumStoreFiles += store.getStorefilesCount();<a
name="line.149"></a>
-<span class="sourceLineNo">150</span>          tempMemstoreSize += store.getMemStoreSize();<a
name="line.150"></a>
-<span class="sourceLineNo">151</span>          tempStoreFileSize += store.getStorefilesSize();<a
name="line.151"></a>
-<span class="sourceLineNo">152</span>        }<a name="line.152"></a>
-<span class="sourceLineNo">153</span>      }<a name="line.153"></a>
-<span class="sourceLineNo">154</span><a name="line.154"></a>
-<span class="sourceLineNo">155</span>      numStoreFiles = tempNumStoreFiles;<a
name="line.155"></a>
-<span class="sourceLineNo">156</span>      memstoreSize = tempMemstoreSize;<a
name="line.156"></a>
-<span class="sourceLineNo">157</span>      storeFileSize = tempStoreFileSize;<a
name="line.157"></a>
-<span class="sourceLineNo">158</span>    }<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  }<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>  @Override<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  public void close() throws IOException
{<a name="line.162"></a>
-<span class="sourceLineNo">163</span>    regionMetricsUpdateTask.cancel(true);<a
name="line.163"></a>
+<span class="sourceLineNo">139</span>  @Override<a name="line.139"></a>
+<span class="sourceLineNo">140</span>  public int getRegionHashCode() {<a
name="line.140"></a>
+<span class="sourceLineNo">141</span>    return this.region.hashCode();<a
name="line.141"></a>
+<span class="sourceLineNo">142</span>  }<a name="line.142"></a>
+<span class="sourceLineNo">143</span><a name="line.143"></a>
+<span class="sourceLineNo">144</span>  public class HRegionMetricsWrapperRunnable
implements Runnable {<a name="line.144"></a>
+<span class="sourceLineNo">145</span><a name="line.145"></a>
+<span class="sourceLineNo">146</span>    @Override<a name="line.146"></a>
+<span class="sourceLineNo">147</span>    public void run() {<a name="line.147"></a>
+<span class="sourceLineNo">148</span>      long tempNumStoreFiles = 0;<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      long tempMemstoreSize = 0;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>      long tempStoreFileSize = 0;<a name="line.150"></a>
+<span class="sourceLineNo">151</span><a name="line.151"></a>
+<span class="sourceLineNo">152</span>      if (region.stores != null) {<a
name="line.152"></a>
+<span class="sourceLineNo">153</span>        for (Store store : region.stores.values())
{<a name="line.153"></a>
+<span class="sourceLineNo">154</span>          tempNumStoreFiles += store.getStorefilesCount();<a
name="line.154"></a>
+<span class="sourceLineNo">155</span>          tempMemstoreSize += store.getMemStoreSize();<a
name="line.155"></a>
+<span class="sourceLineNo">156</span>          tempStoreFileSize += store.getStorefilesSize();<a
name="line.156"></a>
+<span class="sourceLineNo">157</span>        }<a name="line.157"></a>
+<span class="sourceLineNo">158</span>      }<a name="line.158"></a>
+<span class="sourceLineNo">159</span><a name="line.159"></a>
+<span class="sourceLineNo">160</span>      numStoreFiles = tempNumStoreFiles;<a
name="line.160"></a>
+<span class="sourceLineNo">161</span>      memstoreSize = tempMemstoreSize;<a
name="line.161"></a>
+<span class="sourceLineNo">162</span>      storeFileSize = tempStoreFileSize;<a
name="line.162"></a>
+<span class="sourceLineNo">163</span>    }<a name="line.163"></a>
 <span class="sourceLineNo">164</span>  }<a name="line.164"></a>
 <span class="sourceLineNo">165</span><a name="line.165"></a>
-<span class="sourceLineNo">166</span>  /**<a name="line.166"></a>
-<span class="sourceLineNo">167</span>   * Get the replica id of this region.<a
name="line.167"></a>
-<span class="sourceLineNo">168</span>   */<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  @Override<a name="line.169"></a>
-<span class="sourceLineNo">170</span>  public int getReplicaId() {<a name="line.170"></a>
-<span class="sourceLineNo">171</span>    return region.getRegionInfo().getReplicaId();<a
name="line.171"></a>
-<span class="sourceLineNo">172</span>  }<a name="line.172"></a>
-<span class="sourceLineNo">173</span><a name="line.173"></a>
-<span class="sourceLineNo">174</span>}<a name="line.174"></a>
+<span class="sourceLineNo">166</span>  @Override<a name="line.166"></a>
+<span class="sourceLineNo">167</span>  public void close() throws IOException
{<a name="line.167"></a>
+<span class="sourceLineNo">168</span>    regionMetricsUpdateTask.cancel(true);<a
name="line.168"></a>
+<span class="sourceLineNo">169</span>  }<a name="line.169"></a>
+<span class="sourceLineNo">170</span><a name="line.170"></a>
+<span class="sourceLineNo">171</span>  /**<a name="line.171"></a>
+<span class="sourceLineNo">172</span>   * Get the replica id of this region.<a
name="line.172"></a>
+<span class="sourceLineNo">173</span>   */<a name="line.173"></a>
+<span class="sourceLineNo">174</span>  @Override<a name="line.174"></a>
+<span class="sourceLineNo">175</span>  public int getReplicaId() {<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    return region.getRegionInfo().getReplicaId();<a
name="line.176"></a>
+<span class="sourceLineNo">177</span>  }<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span>}<a name="line.179"></a>
 
 
 


Mime
View raw message