public class SyncEventHandler extends Object implements EventListener<TaskEvent>
WorkerDoneEvent
which also aggregates all aggregators from iteration tasks
and signals the end of the superstep.Constructor and Description |
---|
SyncEventHandler(int numberOfEventsUntilEndOfSuperstep,
Map<String,Aggregator<?>> aggregators,
ClassLoader userCodeClassLoader) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEndOfSuperstep() |
void |
onEvent(TaskEvent event) |
void |
resetEndOfSuperstep() |
public SyncEventHandler(int numberOfEventsUntilEndOfSuperstep, Map<String,Aggregator<?>> aggregators, ClassLoader userCodeClassLoader)
public void onEvent(TaskEvent event)
onEvent
in interface EventListener<TaskEvent>
public boolean isEndOfSuperstep()
public void resetEndOfSuperstep()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.