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, waitgetId, isComplete, resetpublic 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)
INodeInstanceprepare in interface INodeInstancecfg - configurationpublic int getIndex()
getIndex in interface INodeInstancepublic boolean execute()
execute in interface INodeInstancepublic INode getNode()
INodeInstancegetNode in interface INodeInstancepublic void close()
INodeInstanceclose in interface INodeInstancepublic 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)