@Override
public AdminProtocol getAdmin(final ServerName serverName, final boolean master)
throws IOException {
if (isDeadServer(serverName)){
throw new RegionServerStoppedException("The server " + serverName + " is dead.");
}
return (AdminProtocol)getProtocol(
serverName.getHostname(), serverName.getPort(), adminClass);
}