HBASE-10911 ServerShutdownHandler#toString shows meaningless message

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1585576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2014-04-07 19:56:10 +00:00
parent 4b762ee841
commit 78cf844cf3
2 changed files with 1 additions and 14 deletions

View File

@ -198,15 +198,6 @@ public class MetaServerShutdownHandler extends ServerShutdownHandler {
} }
} }
@Override
public String toString() {
String name = "UnknownServerName";
if(server != null && server.getServerName() != null) {
name = server.getServerName().toString();
}
return getClass().getSimpleName() + "-" + name + "-" + getSeqid();
}
@Override @Override
protected void handleException(Throwable t) { protected void handleException(Throwable t) {
int count = eventExceptionCount.getAndIncrement(); int count = eventExceptionCount.getAndIncrement();

View File

@ -108,11 +108,7 @@ public class ServerShutdownHandler extends EventHandler {
@Override @Override
public String toString() { public String toString() {
String name = "UnknownServerName"; return getClass().getSimpleName() + "-" + serverName + "-" + getSeqid();
if(server != null && server.getServerName() != null) {
name = server.getServerName().toString();
}
return getClass().getSimpleName() + "-" + name + "-" + getSeqid();
} }
@Override @Override