Examples of MetricsIntValue


Examples of org.apache.hadoop.metrics.util.MetricsIntValue

    typeToRunningCount = createTypeToCountMap(types, "running");
    typeToTotalSlots = createTypeToCountMap(types, "total");
    typeToFreeSlots = createTypeToCountMap(types, "free");
    typeToSchedulerRunTime = createTypeToCountMap(types, "scheduler_runtime");
    sessionStatusToMetrics = createSessionStatusToMetricsMap();
    aliveNodes = new MetricsIntValue("alive_nodes", registry);
    deadNodes = new MetricsIntValue("dead_nodes", registry);
    blacklistedNodes = new MetricsIntValue("blacklisted_nodes", registry);
    numRunningSessions = new MetricsIntValue("num_running_sessions", registry);
    totalSessionCount = new MetricsTimeVaryingInt("total_sessions", registry);
    pendingCallsCount = new MetricsIntValue("num_pending_calls", registry);
    numCJTFailures = new MetricsTimeVaryingInt("num_cjt_failures", registry);
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

      Collection<ResourceType> resourceTypes, String actionType) {
    Map<ResourceType, MetricsIntValue> m =
        new HashMap<ResourceType, MetricsIntValue>();
    for (ResourceType t : resourceTypes) {
      String name = (actionType + "_" + t).toLowerCase();
      MetricsIntValue value = new MetricsIntValue(name, registry);
      m.put(t, value);
    }
    return m;
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  private MetricsTimeVaryingRate varyRate;

  public void setUp() {
    this.registry = new MetricsRegistry();
    this.metricsRate = new MetricsRate("metricsRate", registry, "test");
    this.intValue = new MetricsIntValue("intValue", registry, "test");
    this.varyRate = new MetricsTimeVaryingRate("varyRate", registry, "test");
    this.stats = new TestStatistics(registry);
    MetricsContext context = MetricsUtil.getContext("hbase");
    this.metricsRecord = MetricsUtil.createRecord(context, "test");
    this.metricsRecord.setTag("TestStatistics", "test");
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  private MetricsTimeVaryingRate varyRate;

  public void setUp() {
    this.registry = new MetricsRegistry();
    this.metricsRate = new MetricsRate("metricsRate", registry, "test");
    this.intValue = new MetricsIntValue("intValue", registry, "test");
    this.varyRate = new MetricsTimeVaryingRate("varyRate", registry, "test");
    this.stats = new TestStatistics(registry);
    MetricsContext context = MetricsUtil.getContext("hbase");
    this.metricsRecord = MetricsUtil.createRecord(context, "test");
    this.metricsRecord.setTag("TestStatistics", "test");
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  private MetricsTimeVaryingRate varyRate;
 
  public void setUp() {
    this.registry = new MetricsRegistry();
    this.metricsRate = new MetricsRate("metricsRate", registry, "test");
    this.intValue = new MetricsIntValue("intValue", registry, "test");
    this.varyRate = new MetricsTimeVaryingRate("varyRate", registry, "test");
    this.stats = new TestStatistics(registry);
    MetricsContext context = MetricsUtil.getContext("hbase");
    this.metricsRecord = MetricsUtil.createRecord(context, "test");
    this.metricsRecord.setTag("TestStatistics", "test");
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  private MetricsTimeVaryingRate varyRate;

  public void setUp() {
    this.registry = new MetricsRegistry();
    this.metricsRate = new MetricsRate("metricsRate", registry, "test");
    this.intValue = new MetricsIntValue("intValue", registry, "test");
    this.varyRate = new MetricsTimeVaryingRate("varyRate", registry, "test");
    this.stats = new TestStatistics(registry);
    MetricsContext context = MetricsUtil.getContext("hbase");
    this.metricsRecord = MetricsUtil.createRecord(context, "test");
    this.metricsRecord.setTag("TestStatistics", "test");
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  private MetricsTimeVaryingRate varyRate;

  public void setUp() {
    this.registry = new MetricsRegistry();
    this.metricsRate = new MetricsRate("metricsRate", registry, "test");
    this.intValue = new MetricsIntValue("intValue", registry, "test");
    this.varyRate = new MetricsTimeVaryingRate("varyRate", registry, "test");
    this.stats = new TestStatistics(registry);
    MetricsContext context = MetricsUtil.getContext("hbase");
    this.metricsRecord = MetricsUtil.createRecord(context, "test");
    this.metricsRecord.setTag("TestStatistics", "test");
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  private MetricsTimeVaryingRate varyRate;

  public void setUp() {
    this.registry = new MetricsRegistry();
    this.metricsRate = new MetricsRate("metricsRate", registry, "test");
    this.intValue = new MetricsIntValue("intValue", registry, "test");
    this.varyRate = new MetricsTimeVaryingRate("varyRate", registry, "test");
    this.stats = new TestStatistics(registry);
    MetricsContext context = MetricsUtil.getContext("hbase");
    this.metricsRecord = MetricsUtil.createRecord(context, "test");
    this.metricsRecord.setTag("TestStatistics", "test");
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  private MetricsTimeVaryingRate varyRate;

  public void setUp() {
    this.registry = new MetricsRegistry();
    this.metricsRate = new MetricsRate("metricsRate", registry, "test");
    this.intValue = new MetricsIntValue("intValue", registry, "test");
    this.varyRate = new MetricsTimeVaryingRate("varyRate", registry, "test");
    this.stats = new TestStatistics(registry);
    MetricsContext context = MetricsUtil.getContext("hbase");
    this.metricsRecord = MetricsUtil.createRecord(context, "test");
    this.metricsRecord.setTag("TestStatistics", "test");
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsIntValue

  }

  public AvatarNodeMetrics(NameNodeMetrics metrics) {
    this.metrics = metrics;

    ignoreDataNodes = new MetricsIntValue(namePref + "IgnoreDatanodes",
        metrics.registry, "Ignoring datanodes");
    numIgnoredDatanodes = new MetricsTimeVaryingLong(namePref
        + "NumIgnoredDatanodes", metrics.registry,
        "Number of ignored datanodes");

    numReportedBlocks = new MetricsTimeVaryingLong(namePref
        + "NumReportedBlocks", metrics.registry,
        "Blocks reported through incremental block reports");
    numRetryBlocks = new MetricsTimeVaryingLong(namePref + "NumRetryBlocks",
        metrics.registry, "Blocks retried for incremental block reports");

    numCleanerThreadExceptions = new MetricsTimeVaryingLong(namePref
        + "NumCleanerThreadExceptions", metrics.registry,
        "Exceptions when clearing deletion queues");

    numIngestFailures = new MetricsIntValue(namePref + "NumIngestFailures",
        metrics.registry, "Number of ingest failures");
    numCheckpointFailures = new MetricsIntValue(namePref
        + "NumCheckpointFailures", metrics.registry,
        "Number of checkpoint failures");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.