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/saint_ack/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.util.DirectMemoryUtils;
// 36, 1
import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
// 37, 1
import java.lang.management.MemoryUsage;
// 38, 1
import org.apache.hadoop.hbase.io.util.MemorySizeUtil;

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
  {
    // 40, 1
    jamonWriter.write("
\n \n
\n
\n "); // 51, 13 { // 51, 13 __jamon_innerUnit__baseStats(jamonWriter, mWrap ); } // 51, 43 jamonWriter.write("\n
\n
\n "); // 54, 13 { // 54, 13 __jamon_innerUnit__memoryStats(jamonWriter, mWrap ); } // 54, 45 jamonWriter.write("\n
\n
\n "); // 57, 13 { // 57, 13 __jamon_innerUnit__requestStats(jamonWriter, mWrap ); } // 57, 46 jamonWriter.write("\n
\n
\n "); // 60, 13 { // 60, 13 __jamon_innerUnit__walStats(jamonWriter, mWrap ); } // 60, 42 jamonWriter.write("\n
\n
\n "); // 63, 13 { // 63, 13 __jamon_innerUnit__storeStats(jamonWriter, mWrap ); } // 63, 44 jamonWriter.write("\n
\n
\n "); // 66, 13 { // 66, 13 __jamon_innerUnit__queueStats(jamonWriter, mWrap, mServerWrap); } // 66, 72 jamonWriter.write("\n
\n
\n
\n\n"); } // 71, 1 private void __jamon_innerUnit__baseStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 75, 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
"); // 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(mWrap.getPercentFileLocalSecondaryRegions()), jamonWriter); // 88, 62 jamonWriter.write(""); // 89, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALSlowAppend()), jamonWriter); // 89, 46 jamonWriter.write("
\n"); } // 94, 1 private void __jamon_innerUnit__memoryStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 98, 1 long usedHeap = -1L; long maxHeap = -1L; final MemoryUsage usage = MemorySizeUtil.safeGetHeapMemoryUsage(); if (usage != null) { maxHeap = usage.getMax(); usedHeap = usage.getUsed(); } // 107, 1 jamonWriter.write("\n\n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n\n
Used HeapMax HeapDirect Memory UsedDirect Memory ConfiguredMemstore SizeMemstore Limit
\n "); // 120, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(usedHeap, "B", 1)), jamonWriter); // 120, 68 jamonWriter.write("\n \n "); // 123, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(maxHeap, "B", 1)), jamonWriter); // 123, 67 jamonWriter.write("\n \n "); // 126, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemoryUsage(), "B", 1)), jamonWriter); // 126, 100 jamonWriter.write("\n \n "); // 129, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemorySize(), "B", 1)), jamonWriter); // 129, 99 jamonWriter.write("\n \n "); // 132, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getMemStoreSize(), "B", 1)), jamonWriter); // 132, 83 jamonWriter.write("\n \n "); // 135, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getMemStoreLimit(), "B", 1)), jamonWriter); // 135, 84 jamonWriter.write("\n
\n"); } // 203, 1 private void __jamon_innerUnit__queueStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap, final MetricsHBaseServerWrapper mServerWrap) throws java.io.IOException { // 208, 1 jamonWriter.write("\n\n \n \n \n \n \n \n\n\n\n \n \n \n \n \n \n\n
Compaction Queue LengthFlush Queue LengthPriority Call Queue LengthGeneral Call Queue LengthReplication Call Queue LengthTotal Call Queue Size
"); // 219, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter); // 219, 45 jamonWriter.write(""); // 220, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter); // 220, 40 jamonWriter.write(""); // 221, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getPriorityQueueLength()), jamonWriter); // 221, 51 jamonWriter.write(""); // 222, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getGeneralQueueLength()), jamonWriter); // 222, 50 jamonWriter.write(""); // 223, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getReplicationQueueLength()), jamonWriter); // 223, 54 jamonWriter.write(""); // 224, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mServerWrap.getTotalQueueSize(), "B", 1)), jamonWriter); // 224, 91 jamonWriter.write("
\n"); } // 183, 1 private void __jamon_innerUnit__requestStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 187, 1 jamonWriter.write("\n\n \n \n \n \n\n\n \n \n \n \n\n
Request Per SecondRead Request CountFiltered Read Request CountWrite Request Count
"); // 195, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 195, 66 jamonWriter.write(""); // 196, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter); // 196, 43 jamonWriter.write(""); // 197, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFilteredReadRequestsCount()), jamonWriter); // 197, 51 jamonWriter.write(""); // 198, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter); // 198, 44 jamonWriter.write("
\n"); } // 159, 1 private void __jamon_innerUnit__storeStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 163, 1 jamonWriter.write("\n\n\n \n \n \n \n \n\n\n \n \n \n \n \n\n
Num. StoresNum. StorefilesRoot Index SizeIndex SizeBloom Size
"); // 173, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStores()), jamonWriter); // 173, 35 jamonWriter.write(""); // 174, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStoreFiles()), jamonWriter); // 174, 39 jamonWriter.write(""); // 175, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getStoreFileIndexSize(), "B", 1)), jamonWriter); // 175, 89 jamonWriter.write(""); // 176, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticIndexSize(), "B", 1)), jamonWriter); // 176, 91 jamonWriter.write(""); // 177, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticBloomSize(), "B", 1)), jamonWriter); // 177, 91 jamonWriter.write("
\n"); } // 141, 1 private void __jamon_innerUnit__walStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 145, 1 jamonWriter.write("\n\n \n \n \n \n\n\n \n \n\n
Num. WAL FilesSize. WAL Files
"); // 153, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter); // 153, 37 jamonWriter.write(""); // 154, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getWALFileSize(), "B", 1)), jamonWriter); // 154, 82 jamonWriter.write("
\n"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy