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 Value[]
getAggregates()
String[]
getAggregatorNames()
void
onEvent(TaskEvent event)
Barrier will release the waiting thread if an event occurs.void
setup()
Setup the barrier, has to be called at the beginning of each superstep.boolean
terminationSignaled()
void
waitForOtherWorkers()
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 InterruptedException
Wait on the barrier.- Throws:
InterruptedException
-
getAggregatorNames
public String[] getAggregatorNames()
-
getAggregates
public Value[] getAggregates()
-
onEvent
public void onEvent(TaskEvent event)
Barrier will release the waiting thread if an event occurs.- Specified by:
onEvent
in interfaceEventListener<TaskEvent>
-
terminationSignaled
public boolean terminationSignaled()
-
-