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

org.apache.hadoop.hbase.tmpl.regionserver.ServerMetricsTmplImpl Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta-1
Show newest version
// Autogenerated Jamon implementation
// /Volumes/hbase-1.1.2RC2/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon

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

// 23, 1
import java.util.*;
// 24, 1
import org.apache.hadoop.hbase.regionserver.HRegionServer;
// 25, 1
import org.apache.hadoop.hbase.regionserver.MetricsRegionServerWrapper;
// 26, 1
import org.apache.hadoop.hbase.util.Bytes;
// 27, 1
import org.apache.hadoop.hbase.HRegionInfo;
// 28, 1
import org.apache.hadoop.hbase.ServerName;
// 29, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 30, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 31, 1
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo;
// 32, 1
import org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad;
// 33, 1
import org.apache.hadoop.hbase.util.DirectMemoryUtils;
// 34, 1
import org.apache.hadoop.util.StringUtils;
// 35, 1
import com.yammer.metrics.stats.Snapshot;
// 36, 1
import java.lang.management.ManagementFactory;

public class ServerMetricsTmplImpl
  extends org.jamon.AbstractTemplateImpl
  implements org.apache.hadoop.hbase.tmpl.regionserver.ServerMetricsTmpl.Intf

{
  private final MetricsRegionServerWrapper mWrap;
  protected static org.apache.hadoop.hbase.tmpl.regionserver.ServerMetricsTmpl.ImplData __jamon_setOptionalArguments(org.apache.hadoop.hbase.tmpl.regionserver.ServerMetricsTmpl.ImplData p_implData)
  {
    return p_implData;
  }
  public ServerMetricsTmplImpl(org.jamon.TemplateManager p_templateManager, org.apache.hadoop.hbase.tmpl.regionserver.ServerMetricsTmpl.ImplData p_implData)
  {
    super(p_templateManager, __jamon_setOptionalArguments(p_implData));
    mWrap = p_implData.getMWrap();
  }
  
  public void renderNoFlush(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
    throws java.io.IOException
  {
    // 38, 1
    jamonWriter.write("
\n \n
\n
\n "); // 49, 13 { // 49, 13 __jamon_innerUnit__baseStats(jamonWriter, mWrap ); } // 49, 43 jamonWriter.write("\n
\n
\n "); // 52, 13 { // 52, 13 __jamon_innerUnit__memoryStats(jamonWriter, mWrap ); } // 52, 45 jamonWriter.write("\n
\n
\n "); // 55, 13 { // 55, 13 __jamon_innerUnit__requestStats(jamonWriter, mWrap ); } // 55, 46 jamonWriter.write("\n
\n
\n "); // 58, 13 { // 58, 13 __jamon_innerUnit__walStats(jamonWriter, mWrap ); } // 58, 42 jamonWriter.write("\n
\n
\n "); // 61, 13 { // 61, 13 __jamon_innerUnit__storeStats(jamonWriter, mWrap ); } // 61, 44 jamonWriter.write("\n
\n
\n "); // 64, 13 { // 64, 13 __jamon_innerUnit__queueStats(jamonWriter, mWrap ); } // 64, 45 jamonWriter.write("\n
\n
\n
\n\n"); } // 166, 1 private void __jamon_innerUnit__requestStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 170, 1 jamonWriter.write("\n\n \n \n \n\n\n \n \n \n\n
Request Per SecondRead Request CountWrite Request Count
"); // 177, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 177, 66 jamonWriter.write(""); // 178, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter); // 178, 43 jamonWriter.write(""); // 179, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter); // 179, 44 jamonWriter.write("
\n"); } // 184, 1 private void __jamon_innerUnit__queueStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 188, 1 jamonWriter.write("\n\n \n \n\n\n\n \n \n\n
Compaction Queue SizeFlush Queue Size
"); // 195, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter); // 195, 45 jamonWriter.write(""); // 196, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter); // 196, 40 jamonWriter.write("
\n"); } // 92, 1 private void __jamon_innerUnit__memoryStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 96, 1 jamonWriter.write("\n\n \n \n \n \n \n \n \n\n\n \n \n \n \n \n\n
Used HeapMax HeapDirect Memory UsedDirect Memory ConfiguredMemstore Size
\n "); // 108, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed())), jamonWriter); // 108, 111 jamonWriter.write("\n \n "); // 111, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getMax())), jamonWriter); // 111, 110 jamonWriter.write("\n \n "); // 114, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemoryUsage())), jamonWriter); // 114, 85 jamonWriter.write("\n \n "); // 117, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemorySize())), jamonWriter); // 117, 84 jamonWriter.write("\n "); // 119, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getMemstoreSize())), jamonWriter); // 119, 68 jamonWriter.write("
\n"); } // 69, 1 private void __jamon_innerUnit__baseStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 73, 1 jamonWriter.write("\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n
Requests Per SecondNum. RegionsBlock localityBlock locality (Secondary replicas)Slow WAL Append Count
"); // 83, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 83, 70 jamonWriter.write(""); // 84, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumOnlineRegions()), jamonWriter); // 84, 46 jamonWriter.write(""); // 85, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getPercentFileLocal()), jamonWriter); // 85, 46 jamonWriter.write(""); // 86, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getPercentFileLocalSecondaryRegions()), jamonWriter); // 86, 62 jamonWriter.write(""); // 87, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(0), jamonWriter); // 87, 20 jamonWriter.write("
\n"); } // 124, 1 private void __jamon_innerUnit__walStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 128, 1 jamonWriter.write("\n\n \n \n \n \n\n\n \n \n\n
Num. WAL FilesSize. WAL Files (bytes)
"); // 136, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter); // 136, 37 jamonWriter.write(""); // 137, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWALFileSize()), jamonWriter); // 137, 37 jamonWriter.write("
\n"); } // 142, 1 private void __jamon_innerUnit__storeStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 146, 1 jamonWriter.write("\n\n\n \n \n \n \n \n\n\n \n \n \n \n \n\n
Num. StoresNum. StorefilesRoot Index Size (bytes)Index Size (bytes)Bloom Size (bytes)
"); // 156, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStores())), jamonWriter); // 156, 65 jamonWriter.write(""); // 157, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStoreFiles())), jamonWriter); // 157, 69 jamonWriter.write(""); // 158, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getStoreFileIndexSize())), jamonWriter); // 158, 74 jamonWriter.write(""); // 159, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticIndexSize())), jamonWriter); // 159, 76 jamonWriter.write(""); // 160, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticBloomSize())), jamonWriter); // 160, 76 jamonWriter.write("
\n"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy