Class SuperstepBarrier

java.lang.Object
org.apache.flink.runtime.iterative.concurrent.SuperstepBarrier
All Implemented Interfaces:
EventListener<TaskEvent>

public class SuperstepBarrier extends Object implements EventListener<TaskEvent>
A resettable one-shot latch.
  • Constructor Details

    • SuperstepBarrier

      public SuperstepBarrier(ClassLoader userCodeClassLoader)
  • Method Details

    • setup

      public void setup()
      Setup the barrier, has to be called at the beginning of each superstep.
    • waitForOtherWorkers

      public void waitForOtherWorkers() throws InterruptedException
      Wait on the barrier.
      Throws:
      InterruptedException
    • getAggregatorNames

      public String[] getAggregatorNames()
    • getAggregates

      public org.apache.flink.types.Value[] getAggregates()
    • onEvent

      public void onEvent(TaskEvent event)
      Barrier will release the waiting thread if an event occurs.
      Specified by:
      onEvent in interface EventListener<TaskEvent>
    • terminationSignaled

      public boolean terminationSignaled()