Examples of NullContext


Examples of com.sun.faban.driver.engine.NullContext

    public static DriverContext getContext() {
        DriverContext ctx =
                com.sun.faban.driver.engine.DriverContext.getContext();
        if (ctx != null)
            return ctx;
        return new NullContext();
    }
View Full Code Here

Examples of jp.vmi.selenium.selenese.NullContext

     * @param driver WebDriver instance.
     * @param varsMap variable map.
     */
    public CustomCommandProcessor(final String baseUrl, final WebDriver driver, final VarsMap varsMap) {
        super(baseUrl, driver); // dummy
        this.subCommandMap = new SubCommandMap(new NullContext() {

            @Override
            public String getCurrentBaseURL() {
                return baseUrl;
            }
View Full Code Here

Examples of jp.vmi.selenium.selenese.NullContext

            return s1 + ", " + s2;
    }

    private static void addCommandInformationFromSubCommandMap(Map<String, String> commands) {
        try {
            SubCommandMap subCommandMap = new SubCommandMap(new NullContext());
            for (Entry<String, ISubCommand<?>> entry : subCommandMap.getMap().entrySet()) {
                String name = entry.getKey();
                ISubCommand<?> command = entry.getValue();
                String info = "";
                if (command instanceof WDCommand) {
View Full Code Here

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

   * Returns a "null" context - one which does nothing.
   */
  public static synchronized MetricsContext getNullContext(String contextName) {
    MetricsContext nullContext = nullContextMap.get(contextName);
    if (nullContext == null) {
      nullContext = new NullContext();
      nullContextMap.put(contextName, nullContext);
    }
    return nullContext;
  }
View Full Code Here

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

    stringResult = proxy.echo((String)null);
    assertEquals(stringResult, null);
   
    // Check rpcMetrics
    server.rpcMetrics.doUpdates(new NullContext());
   
    // Number 4 includes getProtocolVersion()
    assertEquals(4, server.rpcMetrics.rpcProcessingTime.getPreviousIntervalNumOps());
    assertTrue(server.rpcMetrics.sentBytes.getPreviousIntervalValue() > 0);
    assertTrue(server.rpcMetrics.receivedBytes.getPreviousIntervalValue() > 0);
   
    // Number of calls to echo method should be 2
    server.rpcDetailedMetrics.doUpdates(new NullContext());
    MetricsTimeVaryingRate metrics =
      (MetricsTimeVaryingRate)server.rpcDetailedMetrics.registry.get("echo");
    assertEquals(2, metrics.getPreviousIntervalNumOps());
   
    // Number of calls to ping method should be 1
View Full Code Here

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

   * Returns a "null" context - one which does nothing.
   */
  public static synchronized MetricsContext getNullContext(String contextName) {
    MetricsContext nullContext = nullContextMap.get(contextName);
    if (nullContext == null) {
      nullContext = new NullContext();
      nullContextMap.put(contextName, nullContext);
    }
    return nullContext;
  }
View Full Code Here

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

     * Returns a "null" context - one which does nothing.
     */
    public static synchronized MetricsContext getNullContext(String contextName) {
        MetricsContext nullContext = nullContextMap.get(contextName);
        if (nullContext == null) {
            nullContext = new NullContext();
            nullContextMap.put(contextName, nullContext);
        }
        return nullContext;
    }
View Full Code Here

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

   * Returns a "null" context - one which does nothing.
   */
  public static synchronized MetricsContext getNullContext(String contextName) {
    MetricsContext nullContext = nullContextMap.get(contextName);
    if (nullContext == null) {
      nullContext = new NullContext();
      nullContextMap.put(contextName, nullContext);
    }
    return nullContext;
  }
View Full Code Here

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

    stringResult = proxy.echo((String)null);
    assertEquals(stringResult, null);
   
    // Check rpcMetrics
    server.rpcMetrics.doUpdates(new NullContext());
   
    // Number 4 includes getProtocolVersion()
    assertEquals(4, server.rpcMetrics.rpcProcessingTime.getPreviousIntervalNumOps());
    assertTrue(server.rpcMetrics.sentBytes.getPreviousIntervalValue() > 0);
    assertTrue(server.rpcMetrics.receivedBytes.getPreviousIntervalValue() > 0);
   
    // Number of calls to echo method should be 2
    server.rpcDetailedMetrics.doUpdates(new NullContext());
    MetricsTimeVaryingRate metrics =
      (MetricsTimeVaryingRate)server.rpcDetailedMetrics.registry.get("echo");
    assertEquals(2, metrics.getPreviousIntervalNumOps());
   
    // Number of calls to ping method should be 1
View Full Code Here

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

   * Returns a "null" context - one which does nothing.
   */
  public static synchronized MetricsContext getNullContext(String contextName) {
    MetricsContext nullContext = nullContextMap.get(contextName);
    if (nullContext == null) {
      nullContext = new NullContext();
      nullContextMap.put(contextName, nullContext);
    }
    return nullContext;
  }
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.