Class SuperstepBarrier
java.lang.Object
org.apache.flink.runtime.iterative.concurrent.SuperstepBarrier
- All Implemented Interfaces:
EventListener<TaskEvent>
A resettable one-shot latch.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SuperstepBarrier
-
-
Method Details
-
setup
public void setup()Setup the barrier, has to be called at the beginning of each superstep. -
waitForOtherWorkers
Wait on the barrier.- Throws:
InterruptedException
-
getAggregatorNames
-
getAggregates
public org.apache.flink.types.Value[] getAggregates() -
onEvent
Barrier will release the waiting thread if an event occurs.- Specified by:
onEventin interfaceEventListener<TaskEvent>
-
terminationSignaled
public boolean terminationSignaled()
-