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

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

// 25, 1
import java.util.*;
// 26, 1
import org.apache.hadoop.hbase.regionserver.HRegionServer;
// 27, 1
import org.apache.hadoop.hbase.io.ByteBuffAllocator;
// 28, 1
import org.apache.hadoop.hbase.ipc.MetricsHBaseServerWrapper;
// 29, 1
import org.apache.hadoop.hbase.regionserver.MetricsRegionServerWrapper;
// 30, 1
import org.apache.hadoop.hbase.util.Bytes;
// 31, 1
import org.apache.hadoop.hbase.HRegionInfo;
// 32, 1
import org.apache.hadoop.hbase.ServerName;
// 33, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 34, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 35, 1
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo;
// 36, 1
import org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad;
// 37, 1
import org.apache.hadoop.hbase.util.DirectMemoryUtils;
// 38, 1
import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
// 39, 1
import java.lang.management.MemoryUsage;
// 40, 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;
  private final ByteBuffAllocator bbAllocator;
  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();
    bbAllocator = p_implData.getBbAllocator();
  }
  
  @Override public void renderNoFlush(final java.io.Writer jamonWriter)
    throws java.io.IOException
  {
    // 42, 1
    jamonWriter.write("
\n \n
\n
\n "); // 54, 13 { // 54, 13 __jamon_innerUnit__baseStats(jamonWriter, mWrap ); } // 54, 43 jamonWriter.write("\n
\n
\n "); // 57, 13 { // 57, 13 __jamon_innerUnit__memoryStats(jamonWriter, mWrap ); } // 57, 45 jamonWriter.write("\n
\n
\n "); // 60, 13 { // 60, 13 __jamon_innerUnit__requestStats(jamonWriter, mWrap ); } // 60, 46 jamonWriter.write("\n
\n
\n "); // 63, 13 { // 63, 13 __jamon_innerUnit__walStats(jamonWriter, mWrap ); } // 63, 42 jamonWriter.write("\n
\n
\n "); // 66, 13 { // 66, 13 __jamon_innerUnit__storeStats(jamonWriter, mWrap ); } // 66, 44 jamonWriter.write("\n
\n
\n "); // 69, 13 { // 69, 13 __jamon_innerUnit__queueStats(jamonWriter, mWrap, mServerWrap); } // 69, 72 jamonWriter.write("\n
\n
\n "); // 72, 13 { // 72, 13 __jamon_innerUnit__byteBuffAllocatorStats(jamonWriter, bbAllocator); } // 72, 69 jamonWriter.write("\n
\n
\n
\n\n"); } // 77, 1 private void __jamon_innerUnit__baseStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 81, 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
"); // 91, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 91, 70 jamonWriter.write(""); // 92, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumOnlineRegions()), jamonWriter); // 92, 46 jamonWriter.write(""); // 93, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.3f",mWrap.getPercentFileLocal())), jamonWriter); // 93, 68 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf("%"), jamonWriter); // 93, 77 jamonWriter.write(""); // 94, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.3f",mWrap.getPercentFileLocalSecondaryRegions())), jamonWriter); // 94, 84 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf("%"), jamonWriter); // 94, 93 jamonWriter.write(""); // 95, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALSlowAppend()), jamonWriter); // 95, 46 jamonWriter.write("
\n"); } // 247, 1 private void __jamon_innerUnit__byteBuffAllocatorStats(final java.io.Writer jamonWriter, final ByteBuffAllocator bbAllocator) throws java.io.IOException { // 251, 1 jamonWriter.write("\n\n \n \n \n \n \n \n\n\n \n \n \n \n \n \n\n
Total Heap AllocationTotal Pool AllocationHeap Allocation RatioTotal Buffer CountUsed Buffer CountBuffer Size
"); // 261, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(ByteBuffAllocator.getHeapAllocationBytes(bbAllocator, ByteBuffAllocator.HEAP), "B", 1)), jamonWriter); // 261, 137 jamonWriter.write(""); // 262, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(bbAllocator.getPoolAllocationBytes(), "B", 1)), jamonWriter); // 262, 96 jamonWriter.write(""); // 263, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.3f", ByteBuffAllocator.getHeapAllocationRatio(bbAllocator, ByteBuffAllocator.HEAP) * 100)), jamonWriter); // 263, 121 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf("%"), jamonWriter); // 263, 130 jamonWriter.write(""); // 264, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(bbAllocator.getTotalBufferCount()), jamonWriter); // 264, 48 jamonWriter.write(""); // 265, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(bbAllocator.getUsedBufferCount()), jamonWriter); // 265, 47 jamonWriter.write(""); // 266, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(bbAllocator.getBufferSize(), "B", 1)), jamonWriter); // 266, 87 jamonWriter.write("
\n"); } // 100, 1 private void __jamon_innerUnit__memoryStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 104, 1 long usedHeap = -1L; long maxHeap = -1L; final MemoryUsage usage = MemorySizeUtil.safeGetHeapMemoryUsage(); if (usage != null) { maxHeap = usage.getMax(); usedHeap = usage.getUsed(); } // 113, 1 jamonWriter.write("\n\n \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 On-Heap Size / LimitMemstore Off-Heap Size / LimitMemstore Data Size (On&&Off Heap)
\n "); // 127, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(usedHeap, "B", 1)), jamonWriter); // 127, 68 jamonWriter.write("\n \n "); // 130, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(maxHeap, "B", 1)), jamonWriter); // 130, 67 jamonWriter.write("\n \n "); // 133, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemoryUsage(), "B", 1)), jamonWriter); // 133, 100 jamonWriter.write("\n \n "); // 136, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemorySize(), "B", 1)), jamonWriter); // 136, 99 jamonWriter.write("\n \n "); // 139, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getOnHeapMemStoreSize(), "B", 1) + " / " + TraditionalBinaryPrefix.long2String(mWrap.getOnHeapMemStoreLimit(), "B", 1)), jamonWriter); // 140, 90 jamonWriter.write("\n \n "); // 143, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getOffHeapMemStoreSize(), "B", 1) + " / " + TraditionalBinaryPrefix.long2String(mWrap.getOffHeapMemStoreLimit(), "B", 1)), jamonWriter); // 144, 91 jamonWriter.write("\n \n "); // 147, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getMemStoreSize(), "B", 1)), jamonWriter); // 147, 83 jamonWriter.write("\n
\n"); } // 221, 1 private void __jamon_innerUnit__queueStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap, final MetricsHBaseServerWrapper mServerWrap) throws java.io.IOException { // 226, 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
"); // 237, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter); // 237, 45 jamonWriter.write(""); // 238, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter); // 238, 40 jamonWriter.write(""); // 239, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getPriorityQueueLength()), jamonWriter); // 239, 51 jamonWriter.write(""); // 240, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getGeneralQueueLength()), jamonWriter); // 240, 50 jamonWriter.write(""); // 241, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getReplicationQueueLength()), jamonWriter); // 241, 54 jamonWriter.write(""); // 242, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mServerWrap.getTotalQueueSize(), "B", 1)), jamonWriter); // 242, 91 jamonWriter.write("
\n"); } // 201, 1 private void __jamon_innerUnit__requestStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 205, 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
"); // 213, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter); // 213, 66 jamonWriter.write(""); // 214, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter); // 214, 43 jamonWriter.write(""); // 215, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFilteredReadRequestsCount()), jamonWriter); // 215, 51 jamonWriter.write(""); // 216, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter); // 216, 44 jamonWriter.write("
\n"); } // 177, 1 private void __jamon_innerUnit__storeStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 181, 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
"); // 191, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStores()), jamonWriter); // 191, 35 jamonWriter.write(""); // 192, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStoreFiles()), jamonWriter); // 192, 39 jamonWriter.write(""); // 193, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getStoreFileIndexSize(), "B", 1)), jamonWriter); // 193, 89 jamonWriter.write(""); // 194, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticIndexSize(), "B", 1)), jamonWriter); // 194, 91 jamonWriter.write(""); // 195, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticBloomSize(), "B", 1)), jamonWriter); // 195, 91 jamonWriter.write("
\n"); } // 153, 1 private void __jamon_innerUnit__walStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap) throws java.io.IOException { // 157, 1 jamonWriter.write("\n\n \n \n \n \n \n\n\n \n \n \n\n
Num. WAL FilesSize. WAL FilesWAL exclude DNs
"); // 166, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter); // 166, 37 jamonWriter.write(""); // 167, 9 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getWALFileSize(), "B", 1)), jamonWriter); // 167, 82 jamonWriter.write("\n "); // 169, 9 for (String exclude: mWrap.getWALExcludeDNs() ) { // 169, 58 jamonWriter.write("\n "); // 170, 13 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(exclude), jamonWriter); // 170, 26 jamonWriter.write("
\n "); } // 171, 16 jamonWriter.write("\n
\n"); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy