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

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

The newest version!
// Autogenerated Jamon implementation
// /Users/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.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.HeapMemorySizeUtil;

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"); } // 179, 1 private void __jamon_innerUnit__requestStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 183, 1 jamonWriter.write("\n\n \n \n \n\n\n \n \n \n\n
Request Per SecondRead Request CountWrite Request Count
"); // 190, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 190, 66 jamonWriter.write(""); // 191, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter); // 191, 43 jamonWriter.write(""); // 192, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter); // 192, 44 jamonWriter.write("
\n"); } // 197, 1 private void __jamon_innerUnit__queueStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap, final MetricsHBaseServerWrapper mServerWrap) throws java.io.IOException { // 202, 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 (bytes)
"); // 213, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter); // 213, 45 jamonWriter.write(""); // 214, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter); // 214, 40 jamonWriter.write(""); // 215, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getPriorityQueueLength()), jamonWriter); // 215, 51 jamonWriter.write(""); // 216, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getGeneralQueueLength()), jamonWriter); // 216, 50 jamonWriter.write(""); // 217, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getReplicationQueueLength()), jamonWriter); // 217, 54 jamonWriter.write(""); // 218, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mServerWrap.getTotalQueueSize(), "B", 1)), jamonWriter); // 218, 91 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 = HeapMemorySizeUtil.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
Used HeapMax HeapDirect Memory UsedDirect Memory ConfiguredMemstore Size
\n "); // 119, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(usedHeap, "B", 1)), jamonWriter); // 119, 68 jamonWriter.write("\n \n "); // 122, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(maxHeap, "B", 1)), jamonWriter); // 122, 67 jamonWriter.write("\n \n "); // 125, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemoryUsage(), "B", 1)), jamonWriter); // 125, 100 jamonWriter.write("\n \n "); // 128, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemorySize(), "B", 1)), jamonWriter); // 128, 99 jamonWriter.write("\n \n "); // 131, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getMemstoreSize(), "B", 1)), jamonWriter); // 131, 83 jamonWriter.write("\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(0), jamonWriter); // 89, 20 jamonWriter.write("
\n"); } // 137, 1 private void __jamon_innerUnit__walStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 141, 1 jamonWriter.write("\n\n \n \n \n \n\n\n \n \n\n
Num. WAL FilesSize. WAL Files (bytes)
"); // 149, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter); // 149, 37 jamonWriter.write(""); // 150, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getWALFileSize(), "B", 1)), jamonWriter); // 150, 82 jamonWriter.write("
\n"); } // 155, 1 private void __jamon_innerUnit__storeStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 159, 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)
"); // 169, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStores()), jamonWriter); // 169, 35 jamonWriter.write(""); // 170, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStoreFiles()), jamonWriter); // 170, 39 jamonWriter.write(""); // 171, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getStoreFileIndexSize(), "B", 1)), jamonWriter); // 171, 89 jamonWriter.write(""); // 172, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticIndexSize(), "B", 1)), jamonWriter); // 172, 91 jamonWriter.write(""); // 173, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticBloomSize(), "B", 1)), jamonWriter); // 173, 91 jamonWriter.write("
\n"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy