Package org.apache.hadoop.metrics.spi

Examples of org.apache.hadoop.metrics.spi.NoEmitMetricsContext


  /**
   * Initializes, for testing, two NoEmitMetricsContext's, and adds one value
   * to the first of them.
   */
  public void setUp() throws IOException {
    nc1 = new NoEmitMetricsContext();
    nc1.init("test1", ContextFactory.getFactory());
    nc2 = new NoEmitMetricsContext();
    nc2.init("test2", ContextFactory.getFactory());
    contexts = new ArrayList<MetricsContext>();
    contexts.add(nc1);
    contexts.add(nc2);

View Full Code Here


   * Initializes, for testing, two NoEmitMetricsContext's, and adds one value
   * to the first of them.
   */
  @Override
  public void setUp() throws IOException {
    nc1 = new NoEmitMetricsContext();
    nc1.init("test1", ContextFactory.getFactory());
    nc2 = new NoEmitMetricsContext();
    nc2.init("test2", ContextFactory.getFactory());
    contexts = new ArrayList<MetricsContext>();
    contexts.add(nc1);
    contexts.add(nc2);

View Full Code Here

TOP

Related Classes of org.apache.hadoop.metrics.spi.NoEmitMetricsContext

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.