public class StreamExecutor
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static int |
NUM_BUCKETS |
Constructor and Description |
---|
StreamExecutor(PhysicalPlans.PhysicalPlan pPlan) |
Modifier and Type | Method and Description |
---|---|
void |
addInstanceExecutor(InstanceExecutor instanceExecutor) |
protected void |
addStreamExecutorTasks() |
protected void |
copyControlOutBound(HeronTuples.AckTuple control,
boolean isSuccess) |
protected void |
copyDataOutBound(int sourceTaskId,
boolean isLocalSpout,
TopologyAPI.StreamId streamId,
HeronTuples.HeronDataTuple tuple,
java.util.List<java.lang.Integer> outTasks) |
protected java.util.Set<java.lang.String> |
createSpoutsSet(PhysicalPlans.PhysicalPlan physicalPlan) |
protected WakeableLooper |
createWakeableLooper() |
protected void |
drainCache() |
void |
handleInstanceExecutor()
Handle the execution of the instance
|
protected boolean |
isSendTuplesToInstance(java.util.List<java.lang.Integer> taskIds) |
protected void |
processAcksAndFails(int taskId,
HeronTuples.HeronControlTupleSet controlTupleSet) |
void |
run() |
protected void |
sendInBound(int taskId,
HeronTuples.HeronTupleSet message) |
protected void |
sendMessageToInstance(int taskId,
StreamManager.TupleMessage message) |
void |
stop() |
public static final int NUM_BUCKETS
public StreamExecutor(PhysicalPlans.PhysicalPlan pPlan)
public void addInstanceExecutor(InstanceExecutor instanceExecutor)
public void run()
run
in interface java.lang.Runnable
public void stop()
protected void addStreamExecutorTasks()
public void handleInstanceExecutor()
protected boolean isSendTuplesToInstance(java.util.List<java.lang.Integer> taskIds)
protected void copyDataOutBound(int sourceTaskId, boolean isLocalSpout, TopologyAPI.StreamId streamId, HeronTuples.HeronDataTuple tuple, java.util.List<java.lang.Integer> outTasks)
protected void copyControlOutBound(HeronTuples.AckTuple control, boolean isSuccess)
protected void processAcksAndFails(int taskId, HeronTuples.HeronControlTupleSet controlTupleSet)
protected void drainCache()
protected void sendInBound(int taskId, HeronTuples.HeronTupleSet message)
protected void sendMessageToInstance(int taskId, StreamManager.TupleMessage message)
protected WakeableLooper createWakeableLooper()
protected java.util.Set<java.lang.String> createSpoutsSet(PhysicalPlans.PhysicalPlan physicalPlan)