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 Summary
Constructors Constructor Description SuperstepBarrier(ClassLoader userCodeClassLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.types.Value[]getAggregates()String[]getAggregatorNames()voidonEvent(TaskEvent event)Barrier will release the waiting thread if an event occurs.voidsetup()Setup the barrier, has to be called at the beginning of each superstep.booleanterminationSignaled()voidwaitForOtherWorkers()Wait on the barrier.
-
-
-
Constructor Detail
-
SuperstepBarrier
public SuperstepBarrier(ClassLoader userCodeClassLoader)
-
-
Method Detail
-
setup
public void setup()
Setup the barrier, has to be called at the beginning of each superstep.
-
waitForOtherWorkers
public void waitForOtherWorkers() throws InterruptedExceptionWait 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:
onEventin interfaceEventListener<TaskEvent>
-
terminationSignaled
public boolean terminationSignaled()
-
-