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
// /Volumes/hbase-1.1.2RC2/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon
package org.apache.hadoop.hbase.tmpl.regionserver;
// 23, 1
import java.util.*;
// 24, 1
import org.apache.hadoop.hbase.regionserver.HRegionServer;
// 25, 1
import org.apache.hadoop.hbase.regionserver.MetricsRegionServerWrapper;
// 26, 1
import org.apache.hadoop.hbase.util.Bytes;
// 27, 1
import org.apache.hadoop.hbase.HRegionInfo;
// 28, 1
import org.apache.hadoop.hbase.ServerName;
// 29, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 30, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 31, 1
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo;
// 32, 1
import org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad;
// 33, 1
import org.apache.hadoop.hbase.util.DirectMemoryUtils;
// 34, 1
import org.apache.hadoop.util.StringUtils;
// 35, 1
import com.yammer.metrics.stats.Snapshot;
// 36, 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;
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();
}
public void renderNoFlush(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 38, 1
jamonWriter.write("\n
\n
\n
\n ");
// 49, 13
{
// 49, 13
__jamon_innerUnit__baseStats(jamonWriter, mWrap );
}
// 49, 43
jamonWriter.write("\n
\n
\n ");
// 52, 13
{
// 52, 13
__jamon_innerUnit__memoryStats(jamonWriter, mWrap );
}
// 52, 45
jamonWriter.write("\n
\n
\n ");
// 55, 13
{
// 55, 13
__jamon_innerUnit__requestStats(jamonWriter, mWrap );
}
// 55, 46
jamonWriter.write("\n
\n
\n ");
// 58, 13
{
// 58, 13
__jamon_innerUnit__walStats(jamonWriter, mWrap );
}
// 58, 42
jamonWriter.write("\n
\n
\n ");
// 61, 13
{
// 61, 13
__jamon_innerUnit__storeStats(jamonWriter, mWrap );
}
// 61, 44
jamonWriter.write("\n
\n
\n ");
// 64, 13
{
// 64, 13
__jamon_innerUnit__queueStats(jamonWriter, mWrap );
}
// 64, 45
jamonWriter.write("\n
\n
\n
\n\n");
}
// 166, 1
private void __jamon_innerUnit__requestStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 170, 1
jamonWriter.write("\n\n Request Per Second \n Read Request Count \n Write Request Count \n \n\n ");
// 177, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 177, 66
jamonWriter.write(" \n ");
// 178, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getReadRequestsCount()), jamonWriter);
// 178, 43
jamonWriter.write(" \n ");
// 179, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWriteRequestsCount()), jamonWriter);
// 179, 44
jamonWriter.write(" \n \n
\n");
}
// 184, 1
private void __jamon_innerUnit__queueStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 188, 1
jamonWriter.write("\n\n Compaction Queue Size \n Flush Queue Size \n\n \n\n ");
// 195, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getCompactionQueueSize()), jamonWriter);
// 195, 45
jamonWriter.write(" \n ");
// 196, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getFlushQueueSize()), jamonWriter);
// 196, 40
jamonWriter.write(" \n \n
\n");
}
// 92, 1
private void __jamon_innerUnit__memoryStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 96, 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 ");
// 108, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed())), jamonWriter);
// 108, 111
jamonWriter.write("\n \n \n ");
// 111, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getMax())), jamonWriter);
// 111, 110
jamonWriter.write("\n \n \n ");
// 114, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemoryUsage())), jamonWriter);
// 114, 85
jamonWriter.write("\n \n \n ");
// 117, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(DirectMemoryUtils.getDirectMemorySize())), jamonWriter);
// 117, 84
jamonWriter.write("\n \n ");
// 119, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getMemstoreSize())), jamonWriter);
// 119, 68
jamonWriter.write(" \n \n
\n");
}
// 69, 1
private void __jamon_innerUnit__baseStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 73, 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 ");
// 83, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(String.format("%.0f", mWrap.getRequestsPerSecond())), jamonWriter);
// 83, 70
jamonWriter.write(" \n ");
// 84, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumOnlineRegions()), jamonWriter);
// 84, 46
jamonWriter.write(" \n ");
// 85, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getPercentFileLocal()), jamonWriter);
// 85, 46
jamonWriter.write(" \n ");
// 86, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getPercentFileLocalSecondaryRegions()), jamonWriter);
// 86, 62
jamonWriter.write(" \n ");
// 87, 13
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(0), jamonWriter);
// 87, 20
jamonWriter.write(" \n \n
\n");
}
// 124, 1
private void __jamon_innerUnit__walStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 128, 1
jamonWriter.write("\n\n \n Num. WAL Files \n Size. WAL Files (bytes) \n \n\n\n ");
// 136, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getNumWALFiles()), jamonWriter);
// 136, 37
jamonWriter.write(" \n ");
// 137, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(mWrap.getWALFileSize()), jamonWriter);
// 137, 37
jamonWriter.write(" \n \n
\n");
}
// 142, 1
private void __jamon_innerUnit__storeStats(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final MetricsRegionServerWrapper mWrap)
throws java.io.IOException
{
// 146, 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 ");
// 156, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStores())), jamonWriter);
// 156, 65
jamonWriter.write(" \n ");
// 157, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getNumStoreFiles())), jamonWriter);
// 157, 69
jamonWriter.write(" \n ");
// 158, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getStoreFileIndexSize())), jamonWriter);
// 158, 74
jamonWriter.write(" \n ");
// 159, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticIndexSize())), jamonWriter);
// 159, 76
jamonWriter.write(" \n ");
// 160, 9
org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(StringUtils.humanReadableInt(mWrap.getTotalStaticBloomSize())), jamonWriter);
// 160, 76
jamonWriter.write(" \n \n
\n");
}
}