HASE-1209 Make port displayed the same as is used in URL for RegionServer table in UI

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@748229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-02-26 17:49:20 +00:00
parent f073189447
commit 636307ebc5
2 changed files with 4 additions and 4 deletions

View File

@ -24,6 +24,8 @@ Release 0.20.0 - Unreleased
HBASE-1190 TableInputFormatBase with row filters scan too far (Dave
Latham via Andrew Purtell)
HBASE-1198 OOME in IPC server does not trigger abort behavior
HBASE-1209 Make port displayed the same as is used in URL for RegionServer
table in UI (Lars George via Stack)
IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -87,10 +87,8 @@
Arrays.sort(serverNames);
for (String serverName: serverNames) {
HServerInfo hsi = serverToServerInfos.get(serverName);
String url = "http://" +
hsi.getServerAddress().getHostname().toString() + ":" +
hsi.getInfoPort() + "/";
String hostname = hsi.getServerAddress().getHostname() + ":" + hsi.getServerAddress().getPort();
String hostname = hsi.getServerAddress().getHostname() + ":" + hsi.getInfoPort();
String url = "http://" + hostname + "/";
totalRegions += hsi.getLoad().getNumberOfRegions();
totalRequests += hsi.getLoad().getNumberOfRequests() / interval;
long startCode = hsi.getStartCode();