public class IterationSynchronizationSinkTask extends AbstractInvokable implements Terminable
WorkerDoneEvent
from each head and will send back
an AllWorkersDoneEvent
to signal that the next superstep can begin.Constructor and Description |
---|
IterationSynchronizationSinkTask() |
Modifier and Type | Method and Description |
---|---|
void |
invoke()
Must be overwritten by the concrete task.
|
void |
registerInputOutput()
Must be overwritten by the concrete task to instantiate the required record reader and record writer.
|
void |
requestTermination() |
boolean |
terminationRequested() |
cancel, getCurrentNumberOfSubtasks, getEnvironment, getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getTaskConfiguration, getUserCodeClassLoader, setEnvironment
public void registerInputOutput()
AbstractInvokable
registerInputOutput
in class AbstractInvokable
public void invoke() throws Exception
AbstractInvokable
invoke
in class AbstractInvokable
Exception
- Tasks may forward their exceptions for the TaskManager to handle through failure/recovery.public boolean terminationRequested()
terminationRequested
in interface Terminable
public void requestTermination()
requestTermination
in interface Terminable
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.