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
// /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 Request Per Second \n Read Request Count \n Write Request Count \n \n\n ");
// 190, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 190, 66
jamonWriter.write(" \n ");
// 191, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter);
// 191, 43
jamonWriter.write(" \n ");
// 192, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter);
// 192, 44
jamonWriter.write(" \n \n
\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 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 (bytes) \n\n \n\n ");
// 213, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter);
// 213, 45
jamonWriter.write(" \n ");
// 214, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter);
// 214, 40
jamonWriter.write(" \n ");
// 215, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getPriorityQueueLength()), jamonWriter);
// 215, 51
jamonWriter.write(" \n ");
// 216, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getGeneralQueueLength()), jamonWriter);
// 216, 50
jamonWriter.write(" \n ");
// 217, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mServerWrap.getReplicationQueueLength()), jamonWriter);
// 217, 54
jamonWriter.write(" \n ");
// 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 \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 = HeapMemorySizeUtil.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 \n\n\n \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 \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 \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 \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 \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 \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(0), jamonWriter);
// 89, 20
jamonWriter.write(" \n \n
\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 Num. WAL Files \n Size. WAL Files (bytes) \n \n\n\n ");
// 149, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter);
// 149, 37
jamonWriter.write(" \n ");
// 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 \n
\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 Num. Stores \n Num. Storefiles \n Root Index Size (bytes) \n Index Size (bytes) \n Bloom Size (bytes) \n \n\n ");
// 169, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStores()), jamonWriter);
// 169, 35
jamonWriter.write(" \n ");
// 170, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumStoreFiles()), jamonWriter);
// 170, 39
jamonWriter.write(" \n ");
// 171, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getStoreFileIndexSize(), "B", 1)), jamonWriter);
// 171, 89
jamonWriter.write(" \n ");
// 172, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(TraditionalBinaryPrefix.long2String(mWrap.getTotalStaticIndexSize(), "B", 1)), jamonWriter);
// 172, 91
jamonWriter.write(" \n ");
// 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 \n
\n");
}
}