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/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.metrics.histogram.MetricsHistogram;
// 36, 1
import org.apache.hadoop.hbase.util.DirectMemoryUtils;
// 37, 1
import org.apache.hadoop.util.StringUtils;
// 38, 1
import com.yammer.metrics.stats.Snapshot;
// 39, 1
import java.lang.management.ManagementFactory;
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
{
// 41, 1
jamonWriter.write("\n
\n
\n
\n ");
// 52, 13
{
// 52, 13
__jamon_innerUnit__baseStats(jamonWriter, mWrap );
}
// 52, 43
jamonWriter.write("\n
\n
\n ");
// 55, 13
{
// 55, 13
__jamon_innerUnit__memoryStats(jamonWriter, mWrap );
}
// 55, 45
jamonWriter.write("\n
\n
\n ");
// 58, 13
{
// 58, 13
__jamon_innerUnit__requestStats(jamonWriter, mWrap );
}
// 58, 46
jamonWriter.write("\n
\n
\n ");
// 61, 13
{
// 61, 13
__jamon_innerUnit__hlogStats(jamonWriter, mWrap );
}
// 61, 43
jamonWriter.write("\n
\n
\n ");
// 64, 13
{
// 64, 13
__jamon_innerUnit__storeStats(jamonWriter, mWrap );
}
// 64, 44
jamonWriter.write("\n
\n
\n ");
// 67, 13
{
// 67, 13
__jamon_innerUnit__queueStats(jamonWriter, mWrap, mServerWrap);
}
// 67, 72
jamonWriter.write("\n
\n
\n
\n\n");
}
// 167, 1
private void __jamon_innerUnit__requestStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 171, 1
jamonWriter.write("\n\n Request Per Second \n Read Request Count \n Write Request Count \n \n\n ");
// 178, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 178, 66
jamonWriter.write(" \n ");
// 179, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter);
// 179, 43
jamonWriter.write(" \n ");
// 180, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter);
// 180, 44
jamonWriter.write(" \n \n
\n");
}
// 185, 1
private void __jamon_innerUnit__queueStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap, final MetricsHBaseServerWrapper mServerWrap)
throws java.io.IOException
{
// 190, 1
jamonWriter.write("\n\n Compaction Queue Size \n Flush Queue Size \n Call Queue Size (bytes) \n\n \n\n ");
// 198, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter);
// 198, 45
jamonWriter.write(" \n ");
// 199, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter);
// 199, 40
jamonWriter.write(" \n ");
// 200, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mServerWrap.getTotalQueueSize())), jamonWriter);
// 200, 76
jamonWriter.write(" \n \n
\n");
}
// 125, 1
private void __jamon_innerUnit__hlogStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 129, 1
jamonWriter.write("\n\n \n Num. HLog Files \n Size. HLog Files (bytes) \n \n\n\n ");
// 137, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumHLogFiles()), jamonWriter);
// 137, 38
jamonWriter.write(" \n ");
// 138, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getHLogFileSize()), jamonWriter);
// 138, 38
jamonWriter.write(" \n \n
\n");
}
// 93, 1
private void __jamon_innerUnit__memoryStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 97, 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 ");
// 109, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed())), jamonWriter);
// 109, 111
jamonWriter.write("\n \n \n ");
// 112, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getMax())), jamonWriter);
// 112, 110
jamonWriter.write("\n \n \n ");
// 115, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemoryUsage())), jamonWriter);
// 115, 85
jamonWriter.write("\n \n \n ");
// 118, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemorySize())), jamonWriter);
// 118, 84
jamonWriter.write("\n \n ");
// 120, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getMemstoreSize())), jamonWriter);
// 120, 68
jamonWriter.write(" \n \n
\n");
}
// 72, 1
private void __jamon_innerUnit__baseStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 76, 1
jamonWriter.write("\n \n\n Requests Per Second \n Num. Regions \n Block locality \n Slow HLog 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(0), jamonWriter);
// 88, 20
jamonWriter.write(" \n \n
\n");
}
// 143, 1
private void __jamon_innerUnit__storeStats(final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 147, 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 ");
// 157, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStores())), jamonWriter);
// 157, 65
jamonWriter.write(" \n ");
// 158, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStoreFiles())), jamonWriter);
// 158, 69
jamonWriter.write(" \n ");
// 159, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getStoreFileIndexSize())), jamonWriter);
// 159, 74
jamonWriter.write(" \n ");
// 160, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticIndexSize())), jamonWriter);
// 160, 76
jamonWriter.write(" \n ");
// 161, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticBloomSize())), jamonWriter);
// 161, 76
jamonWriter.write(" \n \n
\n");
}
}