Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.apache.hadoop.hbase.tmpl.regionserver.ServerMetricsTmplImpl Maven / Gradle / Ivy
// Autogenerated Jamon implementation
// /home/zhangduo/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.ServerName;
// 32, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 33, 1
import org.apache.hadoop.hbase.util.DirectMemoryUtils;
// 34, 1
import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
// 35, 1
import java.lang.management.MemoryUsage;
// 36, 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
{
// 38, 1
jamonWriter.write("\n
\n
\n
\n ");
// 50, 13
{
// 50, 13
__jamon_innerUnit__baseStats(jamonWriter, mWrap );
}
// 50, 43
jamonWriter.write("\n
\n
\n ");
// 53, 13
{
// 53, 13
__jamon_innerUnit__memoryStats(jamonWriter, mWrap );
}
// 53, 45
jamonWriter.write("\n
\n
\n ");
// 56, 13
{
// 56, 13
__jamon_innerUnit__requestStats(jamonWriter, mWrap );
}
// 56, 46
jamonWriter.write("\n
\n
\n ");
// 59, 13
{
// 59, 13
__jamon_innerUnit__walStats(jamonWriter, mWrap );
}
// 59, 42
jamonWriter.write("\n
\n
\n ");
// 62, 13
{
// 62, 13
__jamon_innerUnit__storeStats(jamonWriter, mWrap );
}
// 62, 44
jamonWriter.write("\n
\n
\n ");
// 65, 13
{
// 65, 13
__jamon_innerUnit__queueStats(jamonWriter, mWrap, mServerWrap);
}
// 65, 72
jamonWriter.write("\n
\n
\n ");
// 68, 13
{
// 68, 13
__jamon_innerUnit__byteBuffAllocatorStats(jamonWriter, bbAllocator);
}
// 68, 69
jamonWriter.write("\n
\n
\n
\n\n");
}
// 73, 1
private void __jamon_innerUnit__baseStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 77, 1
jamonWriter.write("\n \n\n Requests Per Second \n Num. Regions \n Block locality \n Block locality (Secondary replicas) \n Slow WAL Append Count \n \n \n ");
// 87, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 87, 70
jamonWriter.write(" \n ");
// 88, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumOnlineRegions()), jamonWriter);
// 88, 46
jamonWriter.write(" \n ");
// 89, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.3f",mWrap.getPercentFileLocal())), jamonWriter);
// 89, 68
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf("%"), jamonWriter);
// 89, 77
jamonWriter.write(" \n ");
// 90, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.3f",mWrap.getPercentFileLocalSecondaryRegions())), jamonWriter);
// 90, 84
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf("%"), jamonWriter);
// 90, 93
jamonWriter.write(" \n ");
// 91, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALSlowAppend()), jamonWriter);
// 91, 46
jamonWriter.write(" \n \n
\n");
}
// 243, 1
private void __jamon_innerUnit__byteBuffAllocatorStats(final java.io.Writer jamonWriter, final ByteBuffAllocator bbAllocator)
throws java.io.IOException
{
// 247, 1
jamonWriter.write("\n\n Total Heap Allocation \n Total Pool Allocation \n Heap Allocation Ratio \n Total Buffer Count \n Used Buffer Count \n Buffer Size \n \n\n ");
// 257, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(ByteBuffAllocator.getHeapAllocationBytes(bbAllocator, ByteBuffAllocator.HEAP), "B", 1)), jamonWriter);
// 257, 137
jamonWriter.write(" \n ");
// 258, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(bbAllocator.getPoolAllocationBytes(), "B", 1)), jamonWriter);
// 258, 96
jamonWriter.write(" \n ");
// 259, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.3f", ByteBuffAllocator.getHeapAllocationRatio(bbAllocator, ByteBuffAllocator.HEAP) * 100)), jamonWriter);
// 259, 121
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf("%"), jamonWriter);
// 259, 130
jamonWriter.write(" \n ");
// 260, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(bbAllocator.getTotalBufferCount()), jamonWriter);
// 260, 48
jamonWriter.write(" \n ");
// 261, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(bbAllocator.getUsedBufferCount()), jamonWriter);
// 261, 47
jamonWriter.write(" \n ");
// 262, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(bbAllocator.getBufferSize(), "B", 1)), jamonWriter);
// 262, 87
jamonWriter.write(" \n \n
\n");
}
// 96, 1
private void __jamon_innerUnit__memoryStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 100, 1
long usedHeap = -1L;
long maxHeap = -1L;
final MemoryUsage usage = MemorySizeUtil.safeGetHeapMemoryUsage();
if (usage != null) {
maxHeap = usage.getMax();
usedHeap = usage.getUsed();
}
// 109, 1
jamonWriter.write("\n\n \n Used Heap \n Max Heap \n Direct Memory Used \n Direct Memory Configured \n Memstore On-Heap Size / Limit \n Memstore Off-Heap Size / Limit \n Memstore Data Size (On&&Off Heap) \n \n\n\n \n ");
// 123, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(usedHeap, "B", 1)), jamonWriter);
// 123, 68
jamonWriter.write("\n \n \n ");
// 126, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(maxHeap, "B", 1)), jamonWriter);
// 126, 67
jamonWriter.write("\n \n \n ");
// 129, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemoryUsage(), "B", 1)), jamonWriter);
// 129, 100
jamonWriter.write("\n \n \n ");
// 132, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(DirectMemoryUtils.getDirectMemorySize(), "B", 1)), jamonWriter);
// 132, 99
jamonWriter.write("\n \n \n ");
// 135, 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);
// 136, 90
jamonWriter.write("\n \n \n ");
// 139, 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);
// 140, 91
jamonWriter.write("\n \n \n ");
// 143, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getMemStoreSize(), "B", 1)), jamonWriter);
// 143, 83
jamonWriter.write("\n \n \n
\n");
}
// 217, 1
private void __jamon_innerUnit__queueStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap, final MetricsHBaseServerWrapper mServerWrap)
throws java.io.IOException
{
// 222, 1
jamonWriter.write("\n\n Compaction Queue Length \n Flush Queue Length \n Priority Call Queue Length \n General Call Queue Length \n Replication Call Queue Length \n Total Call Queue Size \n\n \n\n ");
// 233, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter);
// 233, 45
jamonWriter.write(" \n ");
// 234, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter);
// 234, 40
jamonWriter.write(" \n ");
// 235, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getPriorityQueueLength()), jamonWriter);
// 235, 51
jamonWriter.write(" \n ");
// 236, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getGeneralQueueLength()), jamonWriter);
// 236, 50
jamonWriter.write(" \n ");
// 237, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getReplicationQueueLength()), jamonWriter);
// 237, 54
jamonWriter.write(" \n ");
// 238, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mServerWrap.getTotalQueueSize(), "B", 1)), jamonWriter);
// 238, 91
jamonWriter.write(" \n \n
\n");
}
// 197, 1
private void __jamon_innerUnit__requestStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 201, 1
jamonWriter.write("\n\n Request Per Second \n Read Request Count \n Filtered Read Request Count \n Write Request Count \n \n\n ");
// 209, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 209, 66
jamonWriter.write(" \n ");
// 210, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter);
// 210, 43
jamonWriter.write(" \n ");
// 211, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFilteredReadRequestsCount()), jamonWriter);
// 211, 51
jamonWriter.write(" \n ");
// 212, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter);
// 212, 44
jamonWriter.write(" \n \n
\n");
}
// 173, 1
private void __jamon_innerUnit__storeStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 177, 1
jamonWriter.write("\n\n\n Num. Stores \n Num. Storefiles \n Root Index Size \n Index Size \n Bloom Size \n \n\n ");
// 187, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStores()), jamonWriter);
// 187, 35
jamonWriter.write(" \n ");
// 188, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStoreFiles()), jamonWriter);
// 188, 39
jamonWriter.write(" \n ");
// 189, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getStoreFileIndexSize(), "B", 1)), jamonWriter);
// 189, 89
jamonWriter.write(" \n ");
// 190, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticIndexSize(), "B", 1)), jamonWriter);
// 190, 91
jamonWriter.write(" \n ");
// 191, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticBloomSize(), "B", 1)), jamonWriter);
// 191, 91
jamonWriter.write(" \n \n
\n");
}
// 149, 1
private void __jamon_innerUnit__walStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 153, 1
jamonWriter.write("\n\n \n Num. WAL Files \n Size. WAL Files \n WAL exclude DNs \n \n\n\n ");
// 162, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter);
// 162, 37
jamonWriter.write(" \n ");
// 163, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getWALFileSize(), "B", 1)), jamonWriter);
// 163, 82
jamonWriter.write(" \n \n ");
// 165, 9
for (String exclude: mWrap.getWALExcludeDNs() )
{
// 165, 58
jamonWriter.write("\n ");
// 166, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(exclude), jamonWriter);
// 166, 26
jamonWriter.write(" \n ");
}
// 167, 16
jamonWriter.write("\n \n \n
\n");
}
}