Package org.apache.hadoop.metrics

Examples of org.apache.hadoop.metrics.ContextFactory


    config = new Configuration();
    config.setBoolean(SimulatedFSDataset.CONFIG_PROPERTY_SIMULATED, true);

    // set dfs metrics context class to JMXContext
    ContextFactory.resetFactory();
    ContextFactory f = ContextFactory.getFactory();
    f.setAttribute("dfs.class", "org.apache.hadoop.metrics.jmx.JMXContext");

  }
View Full Code Here


  public FakeConfigManager getConfigManager() {
    return this.configManager;
  }

  private void setNoEmitMetricsContext() throws IOException {
    ContextFactory factory = ContextFactory.getFactory();
    factory.setAttribute(ClusterManagerMetrics.CONTEXT_NAME + ".class",
        NoEmitMetricsContext.class.getName());
  }
View Full Code Here

    }
    waitTaskTrackers();
  }

  private void setNoEmitMetricsContext() throws IOException {
    ContextFactory factory = ContextFactory.getFactory();
    factory.setAttribute(ClusterManagerMetrics.CONTEXT_NAME + ".class",
        NoEmitMetricsContext.class.getName());
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.metrics.ContextFactory

Copyright © 2018 www.massapicom. 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.