public class SuperstepBarrier extends Object implements EventListener<TaskEvent>
Constructor and Description |
---|
SuperstepBarrier(ClassLoader userCodeClassLoader) |
Modifier and Type | Method and 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.
|
public SuperstepBarrier(ClassLoader userCodeClassLoader)
public void setup()
public void waitForOtherWorkers() throws InterruptedException
InterruptedException
public String[] getAggregatorNames()
public Value[] getAggregates()
public void onEvent(TaskEvent event)
onEvent
in interface EventListener<TaskEvent>
public boolean terminationSignaled()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.