Examples of process()


Examples of org.apache.hadoop.chukwa.extraction.demux.processor.reducer.ReduceProcessor.process()

        String defaultProcessor = Demux.jobConf.get(
            "chukwa.demux.reducer.default.processor", null);
        ReduceProcessor processor = ReduceProcessorFactory.getProcessor(
            key.getReduceType(), defaultProcessor);

        processor.process(key, values, chukwaOutputCollector, reporter);

        if (log.isDebugEnabled()) {
          duration = System.currentTimeMillis() - duration;
          log.debug("Demux:Reduce, dataType:" + key.getReduceType()
              + " duration:" + duration);
View Full Code Here

Examples of org.apache.hadoop.contrib.index.lucene.ShardWriter.process()

    final ShardWriter writer = new ShardWriter(fs, key, temp, iconf);

    // update the shard
    while (values.hasNext()) {
      IntermediateForm form = values.next();
      writer.process(form);
      reporter.progress();
    }

    // close the shard
    final Reporter fReporter = reporter;
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.impl.UrlRewriteStepProcessorHolder.process()

      effectiveRuleName = ruleName;
    }
    if( stepHolder != null ) {
      UrlRewriteContext context = new UrlRewriteContextImpl( environment, resolver, functions, direction, inputUri );
      try {
        UrlRewriteStepStatus stepStatus = stepHolder.process( context );
        if( UrlRewriteStepStatus.SUCCESS == stepStatus ) {
          outputUri = context.getCurrentUrl();
          if( ruleName == null ) {
            LOG.rewroteUrlViaImplicitRule( inputUri, direction, effectiveRuleName, outputUri );
          } else {
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.EnableTableHandler.process()

              new EnableTableHandler(this.master, tableName.getBytes(), catalogTracker, this, true);
        } catch (TableNotFoundException e) {
          LOG.warn("Table " + tableName + " not found in .META. to recover.");
          continue;
        }
        if (eth != null) eth.process();
      }
    }
  }

  private boolean checkIfRegionsBelongsToEnabling(HRegionInfo regionInfo) {
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.OpenedRegionHandler.process()

      // Should not invoke assignmentmanager.regionOnline. If it is
      // invoked as per current mocking it will throw null pointer exception.
      boolean expectedException = false;
      try {
        handler.process();
      } catch (Exception e) {
        expectedException = true;
      }
      assertFalse("The process method should not throw any exception.",
          expectedException);
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.ServerShutdownHandler.process()

    if (sn != null) {
      handler = new ServerShutdownHandler(this.server, services, deadServers, sn, false);
    } else {
      handler = new ServerShutdownHandler(this.server, services, deadServers, SERVERNAME_A, false);
    }
    handler.process();
    // The region in r will have been assigned.  It'll be up in zk as unassigned.
  }

  /**
   * @param sn ServerName to use making startcode and server in meta
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.TruncateTableHandler.process()

      cpHost.preTruncateTable(tableName);
    }
    LOG.info(getClientIdAuditPrefix() + " truncate " + tableName);
    TruncateTableHandler handler = new TruncateTableHandler(tableName, this, this, preserveSplits);
    handler.prepare();
    handler.process();
    if (cpHost != null) {
      cpHost.postTruncateTable(tableName);
    }
  }
View Full Code Here

Examples of org.apache.helix.controller.stages.CompatibilityCheckStage.process()

    StageContext context = new StageContext();
    stage.init(context);
    stage.preProcess();
    try
    {
      stage.process(event);
    }
    catch (Exception e)
    {
      Assert.fail("Should not fail since versions are compatible");
    }
View Full Code Here

Examples of org.apache.helix.controller.stages.ResourceComputationStage.process()

    stage.init(context);
    stage.preProcess();
    boolean exceptionCaught = false;
    try
    {
      stage.process(event);
    } catch (Exception e)
    {
      exceptionCaught = true;
    }
    AssertJUnit.assertTrue(exceptionCaught);
View Full Code Here

Examples of org.apache.hivemind.impl.InterceptorStackImpl.process()

        for (int i = count - 1; i >= 0; i--)
        {
            ServiceInterceptorContribution ic = (ServiceInterceptorContribution) interceptors
                    .get(i);

            stack.process(ic);
        }

        // Whatever's on top is the final service.

        return stack.peek();
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.