All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hadoop.hbase.tmpl.master.MasterStatusTmplImpl Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta-1
Show newest version
// Autogenerated Jamon implementation
// /home/apurtell/src/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon

package org.apache.hadoop.hbase.tmpl.master;

// 33, 1
import java.util.*;
// 34, 1
import org.apache.hadoop.util.StringUtils;
// 35, 1
import org.apache.hadoop.hbase.util.Bytes;
// 36, 1
import org.apache.hadoop.hbase.util.JvmVersion;
// 37, 1
import org.apache.hadoop.hbase.util.FSUtils;
// 38, 1
import org.apache.hadoop.hbase.master.HMaster;
// 39, 1
import org.apache.hadoop.hbase.master.AssignmentManager;
// 40, 1
import org.apache.hadoop.hbase.master.ServerManager;
// 41, 1
import org.apache.hadoop.hbase.HConstants;
// 42, 1
import org.apache.hadoop.hbase.NamespaceDescriptor;
// 43, 1
import org.apache.hadoop.hbase.ServerLoad;
// 44, 1
import org.apache.hadoop.hbase.ServerName;
// 45, 1
import org.apache.hadoop.hbase.client.HBaseAdmin;
// 46, 1
import org.apache.hadoop.hbase.client.HConnectionManager;
// 47, 1
import org.apache.hadoop.hbase.HRegionInfo;
// 48, 1
import org.apache.hadoop.hbase.master.RegionState;
// 49, 1
import org.apache.hadoop.hbase.HTableDescriptor;
// 50, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 51, 1
import org.apache.hadoop.hbase.TableName;
// 52, 1
import org.apache.hadoop.hbase.tool.Canary;
// 53, 1
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
// 54, 1
import org.apache.hadoop.hbase.master.DeadServer;
// 55, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 56, 1
import org.apache.hadoop.hbase.security.visibility.VisibilityConstants;
// 57, 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 HBaseAdmin admin;
  private final boolean catalogJanitorEnabled;
  private final Map frags;
  private final ServerManager serverManager;
  private final Set deadServers;
  private final String format;
  private final String filter;
  private final AssignmentManager assignmentManager;
  private final List servers;
  private final ServerName metaLocation;
  // 69, 1
  
  public String formatZKString() {
    StringBuilder quorums = new StringBuilder();
    String zkQuorum = master.getZooKeeperWatcher().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.getFrags__IsNotDefault()) { p_implData.setFrags(null); } if(! p_implData.getServerManager__IsNotDefault()) { p_implData.setServerManager(null); } if(! p_implData.getDeadServers__IsNotDefault()) { p_implData.setDeadServers(null); } if(! p_implData.getFormat__IsNotDefault()) { p_implData.setFormat("html"); } if(! p_implData.getFilter__IsNotDefault()) { p_implData.setFilter("general"); } if(! p_implData.getAssignmentManager__IsNotDefault()) { p_implData.setAssignmentManager(null); } if(! p_implData.getServers__IsNotDefault()) { p_implData.setServers(null); } if(! p_implData.getMetaLocation__IsNotDefault()) { p_implData.setMetaLocation(null); } 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(); admin = p_implData.getAdmin(); catalogJanitorEnabled = p_implData.getCatalogJanitorEnabled(); frags = p_implData.getFrags(); serverManager = p_implData.getServerManager(); deadServers = p_implData.getDeadServers(); format = p_implData.getFormat(); filter = p_implData.getFilter(); assignmentManager = p_implData.getAssignmentManager(); servers = p_implData.getServers(); metaLocation = p_implData.getMetaLocation(); } @Override public void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException { // 60, 1 if (format.equals("json") ) { // 60, 30 jamonWriter.write("\n "); // 61, 3 { org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl __jamon__var_0 = new org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl(this.getTemplateManager()); __jamon__var_0.setFilter(filter); __jamon__var_0.setFormat("json" ); __jamon__var_0.renderNoFlush(jamonWriter); } // 61, 68 jamonWriter.write("\n "); // 62, 3 return; } // 63, 7 jamonWriter.write("\n"); // 64, 1 ServerManager serverManager = master.getServerManager(); AssignmentManager assignmentManager = master.getAssignmentManager(); // 96, 1 jamonWriter.write("\n\n\n \n \n "); // 103, 12 if (master.isActiveMaster() ) { // 103, 43 jamonWriter.write("Master: "); } // 103, 51 else { // 103, 58 jamonWriter.write("Backup Master: "); } // 103, 79 jamonWriter.write("\n "); // 104, 5 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getServerName().getHostname()), jamonWriter); // 104, 47 jamonWriter.write("\n \n \n \n \n \n \n\n \n\n
\n
\n
\n \n \"HBase\n
\n
\n \n
\n
\n
\n\n
\n\t"); // 141, 2 if (master.isActiveMaster() ) { // 141, 33 jamonWriter.write("\n
\n
\n

Master "); // 144, 35 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getServerName().getHostname()), jamonWriter); // 144, 77 jamonWriter.write("

\n
\n
\n\n
\n \n "); // 150, 9 if (JvmVersion.isBadJvmVersion() ) { // 150, 45 jamonWriter.write("\n
\n Your current JVM version "); // 152, 36 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(System.getProperty("java.version")), jamonWriter); // 152, 76 jamonWriter.write(" is known to be\n unstable with HBase. Please see the\n HBase wiki\n for details.\n
\n "); } // 157, 15 jamonWriter.write("\n "); // 158, 9 if (master.isInitialized() && !catalogJanitorEnabled ) { // 158, 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 "); } // 163, 15 jamonWriter.write("\n "); // 164, 9 if (!master.isBalancerOn() ) { // 164, 39 jamonWriter.write("\n
\n The Load Balancer is not enabled which will eventually cause performance degradation\n in HBase as Regions will not be distributed across all RegionServers. The balancer\n is only expected to be disabled during rolling upgrade scenarios.\n
\n "); } // 170, 15 jamonWriter.write("\n\n
\n

Region Servers

\n "); // 174, 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); } // 174, 74 jamonWriter.write("\n\n "); // 176, 13 if ((deadServers != null) ) { // 176, 42 jamonWriter.write("\n "); // 177, 17 { // 177, 17 __jamon_innerUnit__deadRegionServers(jamonWriter); } // 177, 40 jamonWriter.write("\n "); } // 178, 19 jamonWriter.write("\n
\n
\n "); // 181, 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 ); } // 181, 58 jamonWriter.write("\n
\n
\n

Tables

\n
\n \n
\n
\n "); // 199, 25 if ((metaLocation != null) ) { // 199, 55 jamonWriter.write("\n "); // 200, 29 { // 200, 29 __jamon_innerUnit__userTables(jamonWriter); } // 200, 45 jamonWriter.write("\n "); } // 201, 31 jamonWriter.write("\n
\n
\n "); // 204, 25 if ((metaLocation != null) ) { // 204, 55 jamonWriter.write("\n "); // 205, 29 { // 205, 29 __jamon_innerUnit__catalogTables(jamonWriter); } // 205, 48 jamonWriter.write("\n "); } // 206, 31 jamonWriter.write("\n
\n
\n "); // 209, 25 { // 209, 25 __jamon_innerUnit__userSnapshots(jamonWriter); } // 209, 44 jamonWriter.write("\n
\n
\n
\n
\n "); // 214, 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()); } // 214, 90 jamonWriter.write("\n\t"); } // 215, 2 else { // 215, 9 jamonWriter.write("\n
\n "); // 217, 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 ); } // 217, 58 jamonWriter.write("\n
\n\t"); } // 219, 8 jamonWriter.write("\n\n\n
\n "); // 223, 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); } // 223, 61 jamonWriter.write("\n
\n\n
\n

Software Attributes

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n "); // 294, 17 if (master.isActiveMaster() ) { // 294, 48 jamonWriter.write("\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t "); // 310, 18 if (frags != null ) { // 310, 39 jamonWriter.write("\n\t \n\t \n\t \n\t \n\t \n\t "); } // 316, 24 jamonWriter.write("\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n "); } // 327, 23 jamonWriter.write("\n
Attribute NameValueDescription
HBase Version"); // 236, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getVersion()), jamonWriter); // 236, 84 jamonWriter.write(", r"); // 236, 87 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getRevision()), jamonWriter); // 236, 147 jamonWriter.write("HBase version and revision
HBase Compiled"); // 240, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getDate()), jamonWriter); // 240, 81 jamonWriter.write(", "); // 240, 83 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getUser()), jamonWriter); // 240, 139 jamonWriter.write("When HBase version was compiled and by whom
HBase Source Checksum"); // 245, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.hbase.util.VersionInfo.getSrcChecksum()), jamonWriter); // 245, 88 jamonWriter.write("HBase source MD5 checksum
Hadoop Version"); // 250, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getVersion()), jamonWriter); // 250, 78 jamonWriter.write(", r"); // 250, 81 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getRevision()), jamonWriter); // 250, 135 jamonWriter.write("Hadoop version and revision
Hadoop Compiled"); // 255, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getDate()), jamonWriter); // 255, 75 jamonWriter.write(", "); // 255, 77 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getUser()), jamonWriter); // 255, 127 jamonWriter.write("When Hadoop version was compiled and by whom
Hadoop Source Checksum"); // 260, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.hadoop.util.VersionInfo.getSrcChecksum()), jamonWriter); // 260, 82 jamonWriter.write("Hadoop source MD5 checksum
ZooKeeper Client Version"); // 265, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.zookeeper.Version.getVersion()), jamonWriter); // 265, 72 jamonWriter.write(", revision="); // 265, 83 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.zookeeper.Version.getRevision()), jamonWriter); // 265, 131 jamonWriter.write("ZooKeeper client version and revision
ZooKeeper Client Compiled"); // 270, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(org.apache.zookeeper.Version.getBuildDate()), jamonWriter); // 270, 74 jamonWriter.write("When ZooKeeper client version was compiled
Zookeeper Quorum "); // 276, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(formatZKString()), jamonWriter); // 276, 48 jamonWriter.write(" Addresses of all registered ZK servers. For more, see zk dump.
Zookeeper Base Path "); // 281, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getZooKeeper().getBaseZNode()), jamonWriter); // 281, 68 jamonWriter.write("Root node of this cluster in ZK.
HBase Root Directory"); // 286, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(FSUtils.getRootDir(master.getConfiguration()).toString()), jamonWriter); // 286, 87 jamonWriter.write("Location of HBase home directory
HMaster Start Time"); // 291, 25 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(new Date(master.getMasterStartTime())), jamonWriter); // 291, 68 jamonWriter.write("Date stamp of when this HMaster was started
HMaster Active Time"); // 297, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(new Date(master.getMasterActiveTime())), jamonWriter); // 297, 70 jamonWriter.write("Date stamp of when this HMaster became active
HBase Cluster ID"); // 302, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getClusterId() != null ? master.getClusterId() : "Not set"), jamonWriter); // 302, 97 jamonWriter.write("Unique identifier generated for each HBase cluster
Load average"); // 307, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.limitDecimalTo2(master.getServerManager().getAverageLoad())), jamonWriter); // 307, 103 jamonWriter.write("Average number of regions per regionserver. Naive computation.
Fragmentation"); // 313, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(frags.get("-TOTAL-") != null ? frags.get("-TOTAL-").intValue() + "%" : "n/a"), jamonWriter); // 313, 108 jamonWriter.write("Overall fragmentation of all tables, including hbase:meta
Coprocessors"); // 319, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(java.util.Arrays.toString(master.getCoprocessors())), jamonWriter); // 319, 83 jamonWriter.write("Coprocessors currently loaded by the master
LoadBalancer"); // 324, 26 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(master.getLoadBalancerClassName()), jamonWriter); // 324, 65 jamonWriter.write("LoadBalancer to be used in the Master
\n
\n
\n
\n\n \n \n \n \n\n\n"); } // 439, 1 private void __jamon_innerUnit__userSnapshots(final java.io.Writer jamonWriter) throws java.io.IOException { // 440, 1 List snapshots = admin.listSnapshots(); // 443, 1 if ((snapshots != null && snapshots.size() > 0)) { // 443, 51 jamonWriter.write("\n\n \n \n \n \n \n "); // 450, 5 for (SnapshotDescription snapshotDesc : snapshots) { // 450, 57 jamonWriter.write("\n "); // 451, 5 TableName snapshotTable = TableName.valueOf(snapshotDesc.getTable()); // 454, 5 jamonWriter.write("\n \n \n \n \n "); } // 460, 12 jamonWriter.write("\n

"); // 461, 8 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(snapshots.size()), jamonWriter); // 461, 30 jamonWriter.write(" snapshot(s) in set.

\n
Snapshot NameTableCreation Time
"); // 455, 70 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(snapshotDesc.getName()), jamonWriter); // 455, 98 jamonWriter.write(" "); // 456, 76 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(snapshotTable.getNameAsString()), jamonWriter); // 456, 113 jamonWriter.write("\n "); // 458, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(new Date(snapshotDesc.getCreationTime())), jamonWriter); // 458, 59 jamonWriter.write("
\n"); } // 463, 7 jamonWriter.write("\n"); } // 339, 1 private void __jamon_innerUnit__catalogTables(final java.io.Writer jamonWriter) throws java.io.IOException { // 340, 1 HTableDescriptor[] sysTables = admin.listTableDescriptorsByNamespace(NamespaceDescriptor .SYSTEM_NAMESPACE_NAME_STR); // 345, 1 jamonWriter.write("\n\n \n "); // 348, 5 if ((frags != null) ) { // 348, 28 jamonWriter.write("\n \n "); } // 350, 11 jamonWriter.write("\n \n\n"); // 353, 1 for (HTableDescriptor systemTable : sysTables) { // 353, 49 jamonWriter.write("\n\n"); // 355, 1 TableName tableName = systemTable.getTableName(); // 356, 5 jamonWriter.write("\n "); // 357, 5 if ((frags != null)) { // 357, 27 jamonWriter.write("\n \n "); } // 360, 11 jamonWriter.write("\n "); // 361, 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(Canary.DEFAULT_WRITE_TABLE_NAME)){ description = "The hbase:canary table is used to sniff the write availbility of" + " each regionserver."; } 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 if (tableName.equals(TableName.NAMESPACE_TABLE_NAME)){ description = "The hbase:namespace table holds information about namespaces."; } // 375, 5 jamonWriter.write("\n\n"); } // 377, 8 jamonWriter.write("\n
Table NameFrag.Description
"); // 356, 50 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tableName), jamonWriter); // 356, 65 jamonWriter.write(""); // 358, 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); // 359, 37 jamonWriter.write(""); // 375, 9 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(description), jamonWriter); // 375, 26 jamonWriter.write("
\n"); } // 381, 1 private void __jamon_innerUnit__userTables(final java.io.Writer jamonWriter) throws java.io.IOException { // 382, 1 HTableDescriptor[] tables = admin.listTables(); // 385, 1 if ((tables != null && tables.length > 0)) { // 385, 45 jamonWriter.write("\n\n \n \n \n "); // 390, 9 if ((frags != null) ) { // 390, 32 jamonWriter.write("\n \n "); } // 392, 15 jamonWriter.write("\n \n \n \n \n \n \n \n "); // 400, 5 for (HTableDescriptor htDesc : tables) { // 400, 45 jamonWriter.write("\n "); // 401, 5 TableName tableName = htDesc.getTableName(); Map> tableRegions = master.getAssignmentManager().getRegionStates() .getRegionByStateOfTable(tableName); int openRegionsCount = tableRegions.get(RegionState.State.OPEN).size(); int offlineRegionsCount = tableRegions.get(RegionState.State.OFFLINE).size(); int splitRegionsCount = tableRegions.get(RegionState.State.SPLIT).size(); int failedRegionsCount = tableRegions.get(RegionState.State.FAILED_OPEN).size() + tableRegions.get(RegionState.State.FAILED_CLOSE).size(); int otherRegionsCount = 0; for (List list: tableRegions.values()) { otherRegionsCount += list.size(); } // now subtract known states otherRegionsCount = otherRegionsCount - openRegionsCount - failedRegionsCount - offlineRegionsCount - splitRegionsCount; // 420, 5 jamonWriter.write("\n \n \n "); // 423, 9 if ((frags != null) ) { // 423, 32 jamonWriter.write("\n \n "); } // 425, 15 jamonWriter.write("\n \n \n \n \n \n \n \n "); } // 433, 12 jamonWriter.write("\n

"); // 434, 8 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tables.length), jamonWriter); // 434, 27 jamonWriter.write(" table(s) in set. [Details]

\n
NamespaceTable NameFrag.Online RegionsOffline RegionsFailed RegionsSplit RegionsOther RegionsDescription
"); // 421, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tableName.getNamespaceAsString()), jamonWriter); // 421, 51 jamonWriter.write(""); // 422, 70 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(tableName.getQualifierAsString()), jamonWriter); // 422, 108 jamonWriter.write(" "); // 424, 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); // 424, 150 jamonWriter.write(""); // 426, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(openRegionsCount), jamonWriter); // 426, 35 jamonWriter.write(""); // 427, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(offlineRegionsCount), jamonWriter); // 427, 38 jamonWriter.write(""); // 428, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(failedRegionsCount), jamonWriter); // 428, 37 jamonWriter.write(""); // 429, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(splitRegionsCount), jamonWriter); // 429, 36 jamonWriter.write(""); // 430, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(otherRegionsCount), jamonWriter); // 430, 36 jamonWriter.write(""); // 431, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(htDesc.toStringCustomizedValues()), jamonWriter); // 431, 52 jamonWriter.write("
\n"); } // 436, 7 jamonWriter.write("\n"); } // 467, 1 private void __jamon_innerUnit__deadRegionServers(final java.io.Writer jamonWriter) throws java.io.IOException { // 469, 1 if ((deadServers != null && deadServers.size() > 0)) { // 469, 55 jamonWriter.write("\n

Dead Region Servers

\n\n \n \n \n \n \n "); // 477, 5 DeadServer deadServerUtil = master.getServerManager().getDeadServers(); ServerName [] deadServerNames = deadServers.toArray(new ServerName[deadServers.size()]); Arrays.sort(deadServerNames); for (ServerName deadServerName: deadServerNames) { // 483, 5 jamonWriter.write("\n \t\n \n \n \n "); // 488, 5 } // 491, 5 jamonWriter.write("\n \n \n \n \n
ServerNameStop time
"); // 485, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(deadServerName), jamonWriter); // 485, 33 jamonWriter.write(""); // 486, 13 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(deadServerUtil.getTimeOfDeath(deadServerName)), jamonWriter); // 486, 64 jamonWriter.write("
Total: servers: "); // 493, 22 org.jamon.escaping.Escaping.NONE.write(org.jamon.emit.StandardEmitter.valueOf(deadServers.size()), jamonWriter); // 493, 46 jamonWriter.write("
\n"); } // 497, 7 jamonWriter.write("\n"); // 498, 1 HConnectionManager.deleteConnection(admin.getConfiguration()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy