org.apache.hadoop.hbase.tmpl.master.MasterStatusTmplImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hbase-server Show documentation
Show all versions of hbase-server Show documentation
Server functionality for HBase
// Autogenerated Jamon implementation
// /Users/enis/projects/git-repos/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
package org.apache.hadoop.hbase.tmpl.master;
// 32, 1
import java.util.*;
// 33, 1
import org.apache.hadoop.util.StringUtils;
// 34, 1
import org.apache.hadoop.hbase.util.Bytes;
// 35, 1
import org.apache.hadoop.hbase.util.JvmVersion;
// 36, 1
import org.apache.hadoop.hbase.util.FSUtils;
// 37, 1
import org.apache.hadoop.hbase.master.HMaster;
// 38, 1
import org.apache.hadoop.hbase.master.AssignmentManager;
// 39, 1
import org.apache.hadoop.hbase.master.ServerManager;
// 40, 1
import org.apache.hadoop.hbase.HConstants;
// 41, 1
import org.apache.hadoop.hbase.NamespaceDescriptor;
// 42, 1
import org.apache.hadoop.hbase.ServerLoad;
// 43, 1
import org.apache.hadoop.hbase.ServerName;
// 44, 1
import org.apache.hadoop.hbase.client.Admin;
// 45, 1
import org.apache.hadoop.hbase.client.HConnectionManager;
// 46, 1
import org.apache.hadoop.hbase.HTableDescriptor;
// 47, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 48, 1
import org.apache.hadoop.hbase.TableName;
// 49, 1
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
// 50, 1
import org.apache.hadoop.hbase.master.DeadServer;
// 51, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 52, 1
import org.apache.hadoop.hbase.security.visibility.VisibilityConstants;
// 53, 1
import org.apache.hadoop.hbase.security.access.AccessControlLists;
public class MasterStatusTmplImpl
extends org.jamon.AbstractTemplateImpl
implements org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.Intf
{
private final HMaster master;
private final boolean catalogJanitorEnabled;
private final Set deadServers;
private final ServerManager serverManager;
private final ServerName metaLocation;
private final AssignmentManager assignmentManager;
private final Map frags;
private final List servers;
private final String format;
private final String filter;
// 65, 1
public String formatZKString() {
StringBuilder quorums = new StringBuilder();
String zkQuorum = master.getZooKeeper().getQuorum();
if (null == zkQuorum) {
return quorums.toString();
}
String[] zks = zkQuorum.split(",");
if (zks.length == 0) {
return quorums.toString();
}
for(int i = 0; i < zks.length; ++i) {
quorums.append(zks[i].trim());
if (i != (zks.length - 1)) {
quorums.append("
");
}
}
return quorums.toString();
}
protected static org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.ImplData __jamon_setOptionalArguments(org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.ImplData p_implData)
{
if(! p_implData.getCatalogJanitorEnabled__IsNotDefault())
{
p_implData.setCatalogJanitorEnabled(true);
}
if(! p_implData.getDeadServers__IsNotDefault())
{
p_implData.setDeadServers(null);
}
if(! p_implData.getServerManager__IsNotDefault())
{
p_implData.setServerManager(null);
}
if(! p_implData.getMetaLocation__IsNotDefault())
{
p_implData.setMetaLocation(null);
}
if(! p_implData.getAssignmentManager__IsNotDefault())
{
p_implData.setAssignmentManager(null);
}
if(! p_implData.getFrags__IsNotDefault())
{
p_implData.setFrags(null);
}
if(! p_implData.getServers__IsNotDefault())
{
p_implData.setServers(null);
}
if(! p_implData.getFormat__IsNotDefault())
{
p_implData.setFormat("html");
}
if(! p_implData.getFilter__IsNotDefault())
{
p_implData.setFilter("general");
}
return p_implData;
}
public MasterStatusTmplImpl(org.jamon.TemplateManager p_templateManager, org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.ImplData p_implData)
{
super(p_templateManager, __jamon_setOptionalArguments(p_implData));
master = p_implData.getMaster();
catalogJanitorEnabled = p_implData.getCatalogJanitorEnabled();
deadServers = p_implData.getDeadServers();
serverManager = p_implData.getServerManager();
metaLocation = p_implData.getMetaLocation();
assignmentManager = p_implData.getAssignmentManager();
frags = p_implData.getFrags();
servers = p_implData.getServers();
format = p_implData.getFormat();
filter = p_implData.getFilter();
}
public void renderNoFlush(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 56, 1
if (format.equals("json") )
{
// 56, 30
jamonWriter.write("\n ");
// 57, 3
{
org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl __jamon__var_0 = new org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl(this.getTemplateManager());
__jamon__var_0.setFormat("json" );
__jamon__var_0.setFilter(filter);
__jamon__var_0.renderNoFlush(jamonWriter);
}
// 57, 68
jamonWriter.write("\n ");
// 58, 3
return;
}
// 59, 7
jamonWriter.write("\n");
// 60, 1
ServerManager serverManager = master.getServerManager();
AssignmentManager assignmentManager = master.getAssignmentManager();
// 92, 1
jamonWriter.write("\n\n\n \n \n Master: ");
// 99, 20
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getServerName().getHostname()), jamonWriter);
// 99, 62
jamonWriter.write(" \n \n \n \n \n \n \n\n \n\n \n\n \n\t");
// 136, 2
if (master.isActiveMaster() )
{
// 136, 33
jamonWriter.write("\n \n \n Master ");
// 139, 35
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getServerName().getHostname()), jamonWriter);
// 139, 77
jamonWriter.write("
\n \n \n\n \n \n ");
// 145, 9
if (JvmVersion.isBadJvmVersion() )
{
// 145, 45
jamonWriter.write("\n \n Your current JVM version ");
// 147, 36
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(System.getProperty("java.version")), jamonWriter);
// 147, 76
jamonWriter.write(" is known to be\n unstable with HBase. Please see the\n HBase wiki\n for details.\n \n ");
}
// 152, 15
jamonWriter.write("\n ");
// 153, 9
if (master.isInitialized() && !catalogJanitorEnabled )
{
// 153, 65
jamonWriter.write("\n \n Please note that your cluster is running with the CatalogJanitor disabled. It can be\n re-enabled from the hbase shell by running the command 'catalogjanitor_switch true'\n \n ");
}
// 158, 15
jamonWriter.write("\n\n \n Region Servers
\n ");
// 162, 13
{
org.apache.hadoop.hbase.tmpl.master.RegionServerListTmpl __jamon__var_1 = new org.apache.hadoop.hbase.tmpl.master.RegionServerListTmpl(this.getTemplateManager());
__jamon__var_1.setServers(servers );
__jamon__var_1.renderNoFlush(jamonWriter, master);
}
// 162, 74
jamonWriter.write("\n\n ");
// 164, 13
if ((deadServers != null) )
{
// 164, 42
jamonWriter.write("\n ");
// 165, 17
{
// 165, 17
__jamon_innerUnit__deadRegionServers(jamonWriter);
}
// 165, 40
jamonWriter.write("\n ");
}
// 166, 19
jamonWriter.write("\n \n \n ");
// 169, 13
{
org.apache.hadoop.hbase.tmpl.master.BackupMasterStatusTmpl __jamon__var_2 = new org.apache.hadoop.hbase.tmpl.master.BackupMasterStatusTmpl(this.getTemplateManager());
__jamon__var_2.renderNoFlush(jamonWriter, master );
}
// 169, 58
jamonWriter.write("\n \n \n Tables
\n \n \n - \n User Tables\n
\n - \n System Tables\n
\n - \n Snapshots\n
\n
\n \n \n ");
// 187, 25
if ((metaLocation != null) )
{
// 187, 55
jamonWriter.write("\n ");
// 188, 29
{
// 188, 29
__jamon_innerUnit__userTables(jamonWriter);
}
// 188, 45
jamonWriter.write("\n ");
}
// 189, 31
jamonWriter.write("\n \n \n ");
// 192, 25
if ((metaLocation != null) )
{
// 192, 55
jamonWriter.write("\n ");
// 193, 29
{
// 193, 29
__jamon_innerUnit__catalogTables(jamonWriter);
}
// 193, 48
jamonWriter.write("\n ");
}
// 194, 31
jamonWriter.write("\n \n \n ");
// 197, 25
{
// 197, 25
__jamon_innerUnit__userSnapshots(jamonWriter);
}
// 197, 44
jamonWriter.write("\n \n \n \n \n ");
// 202, 9
if (master.getAssignmentManager() != null )
{
// 202, 54
jamonWriter.write("\n ");
// 203, 9
{
org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl __jamon__var_3 = new org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl(this.getTemplateManager());
__jamon__var_3.renderNoFlush(jamonWriter, master.getAssignmentManager());
}
// 203, 90
jamonWriter.write("\n ");
}
// 204, 15
jamonWriter.write("\n\t");
}
// 205, 2
else
{
// 205, 9
jamonWriter.write("\n \n ");
// 207, 13
{
org.apache.hadoop.hbase.tmpl.master.BackupMasterStatusTmpl __jamon__var_4 = new org.apache.hadoop.hbase.tmpl.master.BackupMasterStatusTmpl(this.getTemplateManager());
__jamon__var_4.renderNoFlush(jamonWriter, master );
}
// 207, 58
jamonWriter.write("\n \n\t");
}
// 209, 8
jamonWriter.write("\n\n\n \n ");
// 213, 13
{
org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl __jamon__var_5 = new org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl(this.getTemplateManager());
__jamon__var_5.setFilter(filter );
__jamon__var_5.renderNoFlush(jamonWriter);
}
// 213, 61
jamonWriter.write("\n \n\n \n Software Attributes
\n \n \n Attribute Name \n Value \n Description \n \n \n HBase Version \n ");
// 226, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getVersion()), jamonWriter);
// 226, 84
jamonWriter.write(", revision=");
// 226, 95
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getRevision()), jamonWriter);
// 226, 155
jamonWriter.write(" HBase version and revision \n \n \n HBase Compiled \n ");
// 230, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getDate()), jamonWriter);
// 230, 81
jamonWriter.write(", ");
// 230, 83
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getUser()), jamonWriter);
// 230, 139
jamonWriter.write(" \n When HBase version was compiled and by whom \n \n \n HBase Source Checksum \n ");
// 235, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getSrcChecksum()), jamonWriter);
// 235, 88
jamonWriter.write(" \n HBase source MD5 checksum \n \n \n Hadoop Version \n ");
// 240, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getVersion()), jamonWriter);
// 240, 78
jamonWriter.write(", revision=");
// 240, 89
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getRevision()), jamonWriter);
// 240, 143
jamonWriter.write(" \n Hadoop version and revision \n \n \n Hadoop Compiled \n ");
// 245, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getDate()), jamonWriter);
// 245, 75
jamonWriter.write(", ");
// 245, 77
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getUser()), jamonWriter);
// 245, 127
jamonWriter.write(" \n When Hadoop version was compiled and by whom \n \n \n Hadoop Source Checksum \n ");
// 250, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getSrcChecksum()), jamonWriter);
// 250, 82
jamonWriter.write(" \n Hadoop source MD5 checksum \n \n \n ZooKeeper Client Version \n ");
// 255, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.zookeeper.Version.getVersion()), jamonWriter);
// 255, 72
jamonWriter.write(", revision=");
// 255, 83
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.zookeeper.Version.getRevision()), jamonWriter);
// 255, 131
jamonWriter.write(" \n ZooKeeper client version and revision \n \n \n ZooKeeper Client Compiled \n ");
// 260, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.zookeeper.Version.getBuildDate()), jamonWriter);
// 260, 74
jamonWriter.write(" \n When ZooKeeper client version was compiled \n \n \n Zookeeper Quorum \n ");
// 266, 26
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(formatZKString()), jamonWriter);
// 266, 48
jamonWriter.write(" \n Addresses of all registered ZK servers. For more, see zk dump. \n \n \n Zookeeper Base Path \n ");
// 271, 26
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getZooKeeper().getBaseZNode()), jamonWriter);
// 271, 68
jamonWriter.write(" \n Root node of this cluster in ZK. \n \n \n HBase Root Directory \n ");
// 276, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(FSUtils.getRootDir(master.getConfiguration()).toString()), jamonWriter);
// 276, 87
jamonWriter.write(" \n Location of HBase home directory \n \n \n HMaster Start Time \n ");
// 281, 25
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(new Date(master.getMasterStartTime())), jamonWriter);
// 281, 68
jamonWriter.write(" \n Date stamp of when this HMaster was started \n \n ");
// 284, 17
if (master.isActiveMaster() )
{
// 284, 48
jamonWriter.write("\n\t \n\t HMaster Active Time \n\t ");
// 287, 26
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(new Date(master.getMasterActiveTime())), jamonWriter);
// 287, 70
jamonWriter.write(" \n\t Date stamp of when this HMaster became active \n\t \n\t \n\t HBase Cluster ID \n\t ");
// 292, 26
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getClusterId() != null ? master.getClusterId() : "Not set"), jamonWriter);
// 292, 97
jamonWriter.write(" \n\t Unique identifier generated for each HBase cluster \n\t \n\t \n\t Load average \n\t ");
// 297, 26
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getServerManager() == null ? "0.00" :
StringUtils.limitDecimalTo2(master.getServerManager().getAverageLoad())), jamonWriter);
// 298, 98
jamonWriter.write(" \n\t Average number of regions per regionserver. Naive computation. \n\t \n\t ");
// 301, 18
if (frags != null )
{
// 301, 39
jamonWriter.write("\n\t \n\t Fragmentation \n\t ");
// 304, 26
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(frags.get("-TOTAL-") != null ? frags.get("-TOTAL-").intValue() + "%" : "n/a"), jamonWriter);
// 304, 108
jamonWriter.write(" \n\t Overall fragmentation of all tables, including hbase:meta \n\t \n\t ");
}
// 307, 24
jamonWriter.write("\n\t \n\t Coprocessors \n\t ");
// 310, 26
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getMasterCoprocessorHost() == null ? "[]" :
java.util.Arrays.toString(master.getMasterCoprocessors())), jamonWriter);
// 311, 84
jamonWriter.write(" \n\t Coprocessors currently loaded by the master \n\t \n ");
}
// 314, 23
jamonWriter.write("\n
\n \n \n \n\n \n \n \n \n\n\n");
}
// 407, 1
private void __jamon_innerUnit__userSnapshots(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 408, 1
List snapshots = null;
try (Admin admin = master.getConnection().getAdmin()) {
snapshots = master.isInitialized() ? admin.listSnapshots() : null;
}
// 414, 1
if ((snapshots != null && snapshots.size() > 0))
{
// 414, 51
jamonWriter.write("\n\n \n Snapshot Name \n Table \n Creation Time \n \n ");
// 421, 5
for (SnapshotDescription snapshotDesc : snapshots)
{
// 421, 57
jamonWriter.write("\n ");
// 422, 5
TableName snapshotTable = TableName.valueOf(snapshotDesc.getTable());
// 425, 5
jamonWriter.write("\n ");
// 426, 70
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(snapshotDesc.getName()), jamonWriter);
// 426, 98
jamonWriter.write(" \n ");
// 427, 76
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(snapshotTable.getNameAsString()), jamonWriter);
// 427, 113
jamonWriter.write("\n \n ");
// 429, 13
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(new Date(snapshotDesc.getCreationTime())), jamonWriter);
// 429, 59
jamonWriter.write(" \n \n ");
}
// 431, 12
jamonWriter.write("\n ");
// 432, 8
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(snapshots.size()), jamonWriter);
// 432, 30
jamonWriter.write(" snapshot(s) in set.
\n
\n");
}
// 434, 7
jamonWriter.write("\n");
}
// 326, 1
private void __jamon_innerUnit__catalogTables(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 327, 1
HTableDescriptor[] sysTables = null;
try (Admin admin = master.getConnection().getAdmin()) {
sysTables = master.isInitialized() ? admin.listTableDescriptorsByNamespace(
NamespaceDescriptor.SYSTEM_NAMESPACE_NAME_STR) : null;
}
// 334, 1
if ((sysTables != null && sysTables.length > 0))
{
// 334, 51
jamonWriter.write("\n\n\n Table Name \n ");
// 338, 5
if ((frags != null) )
{
// 338, 28
jamonWriter.write("\n Frag. \n ");
}
// 340, 11
jamonWriter.write("\n Description \n \n");
// 343, 1
for (HTableDescriptor systemTable : sysTables)
{
// 343, 49
jamonWriter.write("\n\n");
// 345, 1
TableName tableName = systemTable.getTableName();
// 346, 5
jamonWriter.write("");
// 346, 50
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tableName), jamonWriter);
// 346, 65
jamonWriter.write(" \n ");
// 347, 5
if ((frags != null))
{
// 347, 27
jamonWriter.write("\n ");
// 348, 28
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(frags.get(tableName.getNameAsString()) != null ? frags.get(tableName.getNameAsString())
.intValue() + "%" : "n/a"), jamonWriter);
// 349, 37
jamonWriter.write(" \n ");
}
// 350, 11
jamonWriter.write("\n ");
// 351, 5
String description = null;
if (tableName.equals(TableName.META_TABLE_NAME)){
description = "The hbase:meta table holds references to all User Table regions";
} else if (tableName.equals(AccessControlLists.ACL_TABLE_NAME)){
description = "The hbase:acl table holds information about acl";
} else if (tableName.equals(VisibilityConstants.LABELS_TABLE_NAME)){
description = "The hbase:labels table holds information about visibility labels";
} else {
description = "The .NAMESPACE. table holds information about namespaces.";
}
// 362, 5
jamonWriter.write("");
// 362, 9
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(description), jamonWriter);
// 362, 26
jamonWriter.write(" \n \n");
}
// 364, 8
jamonWriter.write("\n
\n");
}
// 366, 7
jamonWriter.write("\n");
}
// 369, 1
private void __jamon_innerUnit__userTables(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 370, 1
HTableDescriptor[] tables = null;
try (Admin admin = master.getConnection().getAdmin()) {
tables = master.isInitialized() ? admin.listTables() : null;
}
// 376, 1
if ((tables != null && tables.length > 0))
{
// 376, 45
jamonWriter.write("\n\n \n Namespace \n Table Name \n ");
// 381, 9
if ((frags != null) )
{
// 381, 32
jamonWriter.write("\n Frag. \n ");
}
// 383, 15
jamonWriter.write("\n Online Regions \n Description \n \n ");
// 387, 5
for (HTableDescriptor htDesc : tables)
{
// 387, 45
jamonWriter.write("\n ");
// 388, 5
TableName tableName = htDesc.getTableName();
// 391, 5
jamonWriter.write("\n ");
// 392, 13
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tableName.getNamespaceAsString()), jamonWriter);
// 392, 51
jamonWriter.write(" \n ");
// 393, 70
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tableName.getQualifierAsString()), jamonWriter);
// 393, 108
jamonWriter.write(" \n ");
// 394, 9
if ((frags != null) )
{
// 394, 32
jamonWriter.write("\n ");
// 395, 32
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(frags.get(tableName.getNameAsString()) != null ? frags.get(tableName.getNameAsString()).intValue() + "%" : "n/a"), jamonWriter);
// 395, 150
jamonWriter.write(" \n ");
}
// 396, 15
jamonWriter.write("\n ");
// 397, 13
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getAssignmentManager().getRegionStates().getRegionsOfTable(htDesc
.getTableName()).size()), jamonWriter);
// 398, 35
jamonWriter.write("\n ");
// 399, 13
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(htDesc.toStringCustomizedValues()), jamonWriter);
// 399, 52
jamonWriter.write(" \n \n ");
}
// 401, 12
jamonWriter.write("\n ");
// 402, 8
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tables.length), jamonWriter);
// 402, 27
jamonWriter.write(" table(s) in set. [Details]
\n
\n");
}
// 404, 7
jamonWriter.write("\n");
}
// 438, 1
private void __jamon_innerUnit__deadRegionServers(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 440, 1
if ((deadServers != null && deadServers.size() > 0))
{
// 440, 55
jamonWriter.write("\nDead Region Servers
\n\n \n \n ServerName \n Stop time \n \n ");
// 448, 5
DeadServer deadServerUtil = master.getServerManager().getDeadServers();
ServerName [] deadServerNames = deadServers.toArray(new ServerName[deadServers.size()]);
Arrays.sort(deadServerNames);
for (ServerName deadServerName: deadServerNames) {
// 454, 5
jamonWriter.write("\n \t \n ");
// 456, 13
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(deadServerName), jamonWriter);
// 456, 33
jamonWriter.write(" \n ");
// 457, 13
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(deadServerUtil.getTimeOfDeath(deadServerName)), jamonWriter);
// 457, 64
jamonWriter.write(" \n \n ");
// 459, 5
}
// 462, 5
jamonWriter.write("\n Total: \n servers: ");
// 464, 22
org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(deadServers.size()), jamonWriter);
// 464, 46
jamonWriter.write(" \n \n \n
\n");
}
// 468, 7
jamonWriter.write("\n");
}
}