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/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 Requests Per Second \n Num. Regions \n Block locality \n Block locality (Secondary replicas) \n Slow WAL Append Count \n \n \n ");
// 85, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 85, 70
jamonWriter.write(" \n ");
// 86, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumOnlineRegions()), jamonWriter);
// 86, 46
jamonWriter.write(" \n ");
// 87, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getPercentFileLocal()), jamonWriter);
// 87, 46
jamonWriter.write(" \n ");
// 88, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getPercentFileLocalSecondaryRegions()), jamonWriter);
// 88, 62
jamonWriter.write(" \n ");
// 89, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALSlowAppend()), jamonWriter);
// 89, 46
jamonWriter.write(" \n \n
\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 Used Heap \n Max Heap \n Direct Memory Used \n Direct Memory Configured \n Memstore Size \n Memstore Limit \n \n\n\n \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 \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 \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 \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 \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 \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 \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 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 ");
// 219, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter);
// 219, 45
jamonWriter.write(" \n ");
// 220, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter);
// 220, 40
jamonWriter.write(" \n ");
// 221, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getPriorityQueueLength()), jamonWriter);
// 221, 51
jamonWriter.write(" \n ");
// 222, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getGeneralQueueLength()), jamonWriter);
// 222, 50
jamonWriter.write(" \n ");
// 223, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getReplicationQueueLength()), jamonWriter);
// 223, 54
jamonWriter.write(" \n ");
// 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 \n
\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 Request Per Second \n Read Request Count \n Filtered Read Request Count \n Write Request Count \n \n\n ");
// 195, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 195, 66
jamonWriter.write(" \n ");
// 196, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter);
// 196, 43
jamonWriter.write(" \n ");
// 197, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFilteredReadRequestsCount()), jamonWriter);
// 197, 51
jamonWriter.write(" \n ");
// 198, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter);
// 198, 44
jamonWriter.write(" \n \n
\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 Num. Stores \n Num. Storefiles \n Root Index Size \n Index Size \n Bloom Size \n \n\n ");
// 173, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStores()), jamonWriter);
// 173, 35
jamonWriter.write(" \n ");
// 174, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStoreFiles()), jamonWriter);
// 174, 39
jamonWriter.write(" \n ");
// 175, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getStoreFileIndexSize(), "B", 1)), jamonWriter);
// 175, 89
jamonWriter.write(" \n ");
// 176, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticIndexSize(), "B", 1)), jamonWriter);
// 176, 91
jamonWriter.write(" \n ");
// 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 \n
\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 Num. WAL Files \n Size. WAL Files \n \n\n\n ");
// 153, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter);
// 153, 37
jamonWriter.write(" \n ");
// 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 \n
\n");
}
}