public class SourceStreamingInstance extends java.lang.Object implements INodeInstance
Constructor and Description |
---|
SourceStreamingInstance(ISource streamingTask,
java.util.concurrent.BlockingQueue<IMessage> outStreamingQueue,
Config config,
java.lang.String tName,
int taskId,
int globalTaskId,
int tIndex,
int parallel,
int wId,
java.util.Map<java.lang.String,java.lang.Object> cfgs,
java.util.Map<java.lang.String,java.lang.String> outEdges,
TaskSchedulePlan taskSchedule,
CheckpointingClient checkpointingClient,
java.lang.String taskGraphName,
long tasksVersion) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Calls at the end to clean up
|
boolean |
execute()
Execution Method calls the SourceTasks run method to get context
|
int |
getIndex() |
INode |
getNode()
Get the node of this instance
|
java.util.concurrent.BlockingQueue<IMessage> |
getOutStreamingQueue() |
void |
prepare(Config cfg)
Prepare for an execution
|
void |
registerOutParallelOperation(java.lang.String edge,
IParallelOperation op) |
void |
scheduleBarriers(java.lang.Long bid) |
void |
scheduleCheckpoint(java.lang.Long bid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, isComplete, reset
public SourceStreamingInstance(ISource streamingTask, java.util.concurrent.BlockingQueue<IMessage> outStreamingQueue, Config config, java.lang.String tName, int taskId, int globalTaskId, int tIndex, int parallel, int wId, java.util.Map<java.lang.String,java.lang.Object> cfgs, java.util.Map<java.lang.String,java.lang.String> outEdges, TaskSchedulePlan taskSchedule, CheckpointingClient checkpointingClient, java.lang.String taskGraphName, long tasksVersion)
public void prepare(Config cfg)
INodeInstance
prepare
in interface INodeInstance
cfg
- configurationpublic int getIndex()
getIndex
in interface INodeInstance
public boolean execute()
execute
in interface INodeInstance
public INode getNode()
INodeInstance
getNode
in interface INodeInstance
public void close()
INodeInstance
close
in interface INodeInstance
public java.util.concurrent.BlockingQueue<IMessage> getOutStreamingQueue()
public void scheduleCheckpoint(java.lang.Long bid)
public void scheduleBarriers(java.lang.Long bid)
public void registerOutParallelOperation(java.lang.String edge, IParallelOperation op)