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
// /home/apurtell/src/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon

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

// 24, 1
import java.util.*;
// 25, 1
import org.apache.hadoop.hbase.regionserver.HRegionServer;
// 26, 1
import org.apache.hadoop.hbase.ipc.MetricsHBaseServerWrapper;
// 27, 1
import org.apache.hadoop.hbase.regionserver.MetricsRegionServerWrapper;
// 28, 1
import org.apache.hadoop.hbase.util.Bytes;
// 29, 1
import org.apache.hadoop.hbase.HRegionInfo;
// 30, 1
import org.apache.hadoop.hbase.ServerName;
// 31, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 32, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 33, 1
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo;
// 34, 1
import org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad;
// 35, 1
import org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram;
// 36, 1
import org.apache.hadoop.hbase.util.DirectMemoryUtils;
// 37, 1
import org.apache.hadoop.util.StringUtils;
// 38, 1
import com.yammer.metrics.stats.Snapshot;
// 39, 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;
  private final MetricsHBaseServerWrapper mServerWrap;
  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();
    mServerWrap = p_implData.getMServerWrap();
  }
  
  @Override public void renderNoFlush(final java.io.Writer jamonWriter)
    throws java.io.IOException
  {
    // 41, 1
    jamonWriter.write("
\n \n
\n
\n "); // 52, 13 { // 52, 13 __jamon_innerUnit__baseStats(jamonWriter, mWrap ); } // 52, 43 jamonWriter.write("\n
\n
\n "); // 55, 13 { // 55, 13 __jamon_innerUnit__memoryStats(jamonWriter, mWrap ); } // 55, 45 jamonWriter.write("\n
\n
\n "); // 58, 13 { // 58, 13 __jamon_innerUnit__requestStats(jamonWriter, mWrap ); } // 58, 46 jamonWriter.write("\n
\n
\n "); // 61, 13 { // 61, 13 __jamon_innerUnit__hlogStats(jamonWriter, mWrap ); } // 61, 43 jamonWriter.write("\n
\n
\n "); // 64, 13 { // 64, 13 __jamon_innerUnit__storeStats(jamonWriter, mWrap ); } // 64, 44 jamonWriter.write("\n
\n
\n "); // 67, 13 { // 67, 13 __jamon_innerUnit__queueStats(jamonWriter, mWrap, mServerWrap); } // 67, 72 jamonWriter.write("\n
\n
\n
\n\n"); } // 167, 1 private void __jamon_innerUnit__requestStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 171, 1 jamonWriter.write("\n\n \n \n \n\n\n \n \n \n\n
Request Per SecondRead Request CountWrite Request Count
"); // 178, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 178, 66 jamonWriter.write(""); // 179, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter); // 179, 43 jamonWriter.write(""); // 180, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter); // 180, 44 jamonWriter.write("
\n"); } // 185, 1 private void __jamon_innerUnit__queueStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap, final MetricsHBaseServerWrapper mServerWrap) throws java.io.IOException { // 190, 1 jamonWriter.write("\n\n \n \n \n\n\n\n \n \n \n\n
Compaction Queue SizeFlush Queue SizeCall Queue Size (bytes)
"); // 198, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter); // 198, 45 jamonWriter.write(""); // 199, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter); // 199, 40 jamonWriter.write(""); // 200, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mServerWrap.getTotalQueueSize())), jamonWriter); // 200, 76 jamonWriter.write("
\n"); } // 125, 1 private void __jamon_innerUnit__hlogStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 129, 1 jamonWriter.write("\n\n \n \n \n \n\n\n \n \n\n
Num. HLog FilesSize. HLog Files (bytes)
"); // 137, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumHLogFiles()), jamonWriter); // 137, 38 jamonWriter.write(""); // 138, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getHLogFileSize()), jamonWriter); // 138, 38 jamonWriter.write("
\n"); } // 93, 1 private void __jamon_innerUnit__memoryStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 97, 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 "); // 109, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed())), jamonWriter); // 109, 111 jamonWriter.write("\n \n "); // 112, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getMax())), jamonWriter); // 112, 110 jamonWriter.write("\n \n "); // 115, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemoryUsage())), jamonWriter); // 115, 85 jamonWriter.write("\n \n "); // 118, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemorySize())), jamonWriter); // 118, 84 jamonWriter.write("\n "); // 120, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getMemstoreSize())), jamonWriter); // 120, 68 jamonWriter.write("
\n"); } // 72, 1 private void __jamon_innerUnit__baseStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 76, 1 jamonWriter.write("\n \n\n \n \n \n \n \n \n \n \n \n \n \n
Requests Per SecondNum. RegionsBlock localitySlow HLog Append Count
"); // 85, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 85, 70 jamonWriter.write(""); // 86, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumOnlineRegions()), jamonWriter); // 86, 46 jamonWriter.write(""); // 87, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getPercentFileLocal()), jamonWriter); // 87, 46 jamonWriter.write(""); // 88, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(0), jamonWriter); // 88, 20 jamonWriter.write("
\n"); } // 143, 1 private void __jamon_innerUnit__storeStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 147, 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)
"); // 157, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStores())), jamonWriter); // 157, 65 jamonWriter.write(""); // 158, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStoreFiles())), jamonWriter); // 158, 69 jamonWriter.write(""); // 159, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getStoreFileIndexSize())), jamonWriter); // 159, 74 jamonWriter.write(""); // 160, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticIndexSize())), jamonWriter); // 160, 76 jamonWriter.write(""); // 161, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticBloomSize())), jamonWriter); // 161, 76 jamonWriter.write("
\n"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy