Class StreamExecutor
- java.lang.Object
-
- org.apache.heron.simulator.executors.StreamExecutor
-
-
Field Summary
Fields Modifier and Type Field Description static intNUM_BUCKETS
-
Constructor Summary
Constructors Constructor Description StreamExecutor(TopologyManager topologyManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstanceExecutor(InstanceExecutor instanceExecutor)protected voidaddStreamExecutorTasks()protected voidcopyControlOutBound(int srcTaskId, org.apache.heron.proto.system.HeronTuples.AckTuple control, boolean isSuccess)protected voidcopyDataOutBound(int sourceTaskId, boolean isLocalSpout, org.apache.heron.api.generated.TopologyAPI.StreamId streamId, org.apache.heron.proto.system.HeronTuples.HeronDataTuple tuple, List<Integer> outTasks)protected Set<String>createSpoutsSet(org.apache.heron.proto.system.PhysicalPlans.PhysicalPlan physicalPlan)protected org.apache.heron.common.basics.WakeableLoopercreateWakeableLooper()protected voiddrainCache()voidhandleInstanceExecutor()Handle the execution of the instanceprotected booleanisSendTuplesToInstance(List<Integer> taskIds)protected voidprocessAcksAndFails(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.HeronControlTupleSet controlTupleSet)voidrun()protected voidsendInBound(int taskId, org.apache.heron.proto.system.HeronTuples.HeronTupleSet message)protected voidsendMessageToInstance(int taskId, org.apache.heron.proto.system.HeronTuples.HeronTupleSet message)voidstop()
-
-
-
Field Detail
-
NUM_BUCKETS
public static final int NUM_BUCKETS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamExecutor
public StreamExecutor(TopologyManager topologyManager)
-
-
Method Detail
-
addInstanceExecutor
public void addInstanceExecutor(InstanceExecutor instanceExecutor)
-
stop
public void stop()
-
addStreamExecutorTasks
protected void addStreamExecutorTasks()
-
handleInstanceExecutor
public void handleInstanceExecutor()
Handle the execution of the instance
-
copyDataOutBound
protected void copyDataOutBound(int sourceTaskId, boolean isLocalSpout, org.apache.heron.api.generated.TopologyAPI.StreamId streamId, org.apache.heron.proto.system.HeronTuples.HeronDataTuple tuple, List<Integer> outTasks)
-
copyControlOutBound
protected void copyControlOutBound(int srcTaskId, org.apache.heron.proto.system.HeronTuples.AckTuple control, boolean isSuccess)
-
processAcksAndFails
protected void processAcksAndFails(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.HeronControlTupleSet controlTupleSet)
-
drainCache
protected void drainCache()
-
sendInBound
protected void sendInBound(int taskId, org.apache.heron.proto.system.HeronTuples.HeronTupleSet message)
-
sendMessageToInstance
protected void sendMessageToInstance(int taskId, org.apache.heron.proto.system.HeronTuples.HeronTupleSet message)
-
createWakeableLooper
protected org.apache.heron.common.basics.WakeableLooper createWakeableLooper()
-
-