HBASE-2631 Decide between InMB and MB as suffix for field names in ClusterStatus objects
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
8775f3027f
commit
5073bd6e04
|
@ -131,18 +131,45 @@ public class ServerLoad {
|
||||||
return storeUncompressedSizeMB;
|
return storeUncompressedSizeMB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0
|
||||||
|
* Use {@link #getStorefileSizeMB()} instead.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public int getStorefileSizeInMB() {
|
public int getStorefileSizeInMB() {
|
||||||
return storefileSizeMB;
|
return storefileSizeMB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getStorefileSizeMB() {
|
||||||
|
return storefileSizeMB;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0
|
||||||
|
* Use {@link #getMemstoreSizeMB()} instead.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public int getMemstoreSizeInMB() {
|
public int getMemstoreSizeInMB() {
|
||||||
return memstoreSizeMB;
|
return memstoreSizeMB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getMemstoreSizeMB() {
|
||||||
|
return memstoreSizeMB;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0
|
||||||
|
* Use {@link #getStorefileIndexSizeMB()} instead.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public int getStorefileIndexSizeInMB() {
|
public int getStorefileIndexSizeInMB() {
|
||||||
return storefileIndexSizeMB;
|
return storefileIndexSizeMB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getStorefileIndexSizeMB() {
|
||||||
|
return storefileIndexSizeMB;
|
||||||
|
}
|
||||||
|
|
||||||
public long getReadRequestsCount() {
|
public long getReadRequestsCount() {
|
||||||
return readRequestsCount;
|
return readRequestsCount;
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,7 +153,7 @@ for (ServerName serverName: serverNames) {
|
||||||
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
||||||
<td><% TraditionalBinaryPrefix.long2String(sl.getMaxHeapMB()
|
<td><% TraditionalBinaryPrefix.long2String(sl.getMaxHeapMB()
|
||||||
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
||||||
<td><% TraditionalBinaryPrefix.long2String(sl.getMemstoreSizeInMB()
|
<td><% TraditionalBinaryPrefix.long2String(sl.getMemstoreSizeMB()
|
||||||
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -232,7 +232,7 @@ if (sl != null) {
|
||||||
<td><% sl.getStorefiles() %></td>
|
<td><% sl.getStorefiles() %></td>
|
||||||
<td><% TraditionalBinaryPrefix.long2String(
|
<td><% TraditionalBinaryPrefix.long2String(
|
||||||
sl.getStoreUncompressedSizeMB() * TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
sl.getStoreUncompressedSizeMB() * TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
||||||
<td><% TraditionalBinaryPrefix.long2String(sl.getStorefileSizeInMB()
|
<td><% TraditionalBinaryPrefix.long2String(sl.getStorefileSizeMB()
|
||||||
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
* TraditionalBinaryPrefix.MEGA.value, "B", 1) %></td>
|
||||||
<td><% TraditionalBinaryPrefix.long2String(sl.getTotalStaticIndexSizeKB()
|
<td><% TraditionalBinaryPrefix.long2String(sl.getTotalStaticIndexSizeKB()
|
||||||
* TraditionalBinaryPrefix.KILO.value, "B", 1) %></td>
|
* TraditionalBinaryPrefix.KILO.value, "B", 1) %></td>
|
||||||
|
|
|
@ -41,8 +41,8 @@ public class TestServerLoad {
|
||||||
assertEquals(114, sl.getStorefiles());
|
assertEquals(114, sl.getStorefiles());
|
||||||
assertEquals(129, sl.getStoreUncompressedSizeMB());
|
assertEquals(129, sl.getStoreUncompressedSizeMB());
|
||||||
assertEquals(504, sl.getRootIndexSizeKB());
|
assertEquals(504, sl.getRootIndexSizeKB());
|
||||||
assertEquals(820, sl.getStorefileSizeInMB());
|
assertEquals(820, sl.getStorefileSizeMB());
|
||||||
assertEquals(82, sl.getStorefileIndexSizeInMB());
|
assertEquals(82, sl.getStorefileIndexSizeMB());
|
||||||
assertEquals(((long)Integer.MAX_VALUE)*2, sl.getReadRequestsCount());
|
assertEquals(((long)Integer.MAX_VALUE)*2, sl.getReadRequestsCount());
|
||||||
assertEquals(300, sl.getFilteredReadRequestsCount());
|
assertEquals(300, sl.getFilteredReadRequestsCount());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue