public class SuperstepBarrier extends Object implements EventListener
| Constructor and Description |
|---|
SuperstepBarrier(ClassLoader userCodeClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
eventOccurred(AbstractTaskEvent event)
barrier will release the waiting thread if an event occurs
|
Value[] |
getAggregates() |
String[] |
getAggregatorNames() |
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
InterruptedExceptionpublic String[] getAggregatorNames()
public Value[] getAggregates()
public void eventOccurred(AbstractTaskEvent event)
eventOccurred in interface EventListenerevent - the task event which has occurredpublic boolean terminationSignaled()
Copyright © 2014 The Apache Software Foundation. All rights reserved.