public abstract class StreamTask<OUT,O extends StreamOperator<OUT>> extends org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable implements org.apache.flink.runtime.jobgraph.tasks.OperatorStateCarrier<org.apache.flink.runtime.state.StateHandle<Serializable>>, org.apache.flink.runtime.jobgraph.tasks.CheckpointedOperator, org.apache.flink.runtime.jobgraph.tasks.CheckpointCommittingOperator
| Modifier and Type | Field and Description |
|---|---|
protected Object |
checkpointLock |
protected StreamConfig |
configuration |
protected List<StreamingRuntimeContext> |
contexts |
protected boolean |
hasChainedOperators |
protected boolean |
isRunning |
protected OutputHandler<OUT> |
outputHandler |
protected O |
streamOperator |
protected ClassLoader |
userClassLoader |
| Constructor and Description |
|---|
StreamTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
protected void |
clearBuffers() |
protected void |
closeOperator() |
void |
confirmCheckpoint(long checkpointId,
long timestamp) |
StreamingRuntimeContext |
createRuntimeContext(StreamConfig conf) |
String |
getName() |
org.apache.flink.runtime.util.event.EventListener<org.apache.flink.runtime.event.task.TaskEvent> |
getSuperstepListener() |
protected void |
openOperator() |
void |
registerInputOutput() |
void |
setInitialState(org.apache.flink.runtime.state.StateHandle<Serializable> stateHandle) |
String |
toString() |
void |
triggerCheckpoint(long checkpointId,
long timestamp) |
protected final Object checkpointLock
protected StreamConfig configuration
protected OutputHandler<OUT> outputHandler
protected O extends StreamOperator<OUT> streamOperator
protected boolean hasChainedOperators
protected volatile boolean isRunning
protected List<StreamingRuntimeContext> contexts
protected ClassLoader userClassLoader
public void registerInputOutput()
registerInputOutput in class org.apache.flink.runtime.jobgraph.tasks.AbstractInvokablepublic String getName()
public StreamingRuntimeContext createRuntimeContext(StreamConfig conf)
protected void clearBuffers()
throws IOException
IOExceptionpublic void cancel()
cancel in class org.apache.flink.runtime.jobgraph.tasks.AbstractInvokablepublic org.apache.flink.runtime.util.event.EventListener<org.apache.flink.runtime.event.task.TaskEvent> getSuperstepListener()
public void setInitialState(org.apache.flink.runtime.state.StateHandle<Serializable> stateHandle) throws Exception
setInitialState in interface org.apache.flink.runtime.jobgraph.tasks.OperatorStateCarrier<org.apache.flink.runtime.state.StateHandle<Serializable>>Exceptionpublic void triggerCheckpoint(long checkpointId,
long timestamp)
throws Exception
triggerCheckpoint in interface org.apache.flink.runtime.jobgraph.tasks.CheckpointedOperatorExceptionpublic void confirmCheckpoint(long checkpointId,
long timestamp)
throws Exception
confirmCheckpoint in interface org.apache.flink.runtime.jobgraph.tasks.CheckpointCommittingOperatorExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.