Package eu.stratosphere.pact.runtime.iterative.event

Examples of eu.stratosphere.pact.runtime.iterative.event.AllWorkersDoneEvent


  public void eventOccurred(AbstractTaskEvent event) {
    if (event instanceof TerminationEvent) {
      terminationSignaled = true;
    }
    else if (event instanceof AllWorkersDoneEvent) {
      AllWorkersDoneEvent wde = (AllWorkersDoneEvent) event;
      aggregatorNames = wde.getAggregatorNames();
      aggregates = wde.getAggregates(userCodeClassLoader);
    }
    else {
      throw new IllegalArgumentException("Unknown event type.");
    }
View Full Code Here


        if (log.isInfoEnabled()) {
          log.info(formatLogString("signaling that all workers are done in iteration [" + currentIteration
            + "]"));
        }

        AllWorkersDoneEvent allWorkersDoneEvent = new AllWorkersDoneEvent(aggregators);
        sendToAllWorkers(allWorkersDoneEvent);
       
        // reset all aggregators
        for (Aggregator<?> agg : aggregators.values()) {
          agg.reset();
View Full Code Here

public class SuperstepBarrierTest {

  @Test
  public void syncAllWorkersDone() throws InterruptedException {
    for (int n = 0; n < 20; n++) {
      sync(new AllWorkersDoneEvent());
    }
  }
View Full Code Here

TOP

Related Classes of eu.stratosphere.pact.runtime.iterative.event.AllWorkersDoneEvent

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.