Package org.apache.storm.daemon
Class Task
- java.lang.Object
-
- org.apache.storm.daemon.Task
-
public class Task extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentId()
List<Integer>
getOutgoingTasks(Integer outTaskId, String stream, List<Object> values)
List<Integer>
getOutgoingTasks(String stream, List<Object> values)
Integer
getTaskId()
TaskMetrics
getTaskMetrics()
Object
getTaskObject()
Tuple
getTuple(String stream, List values)
TopologyContext
getUserContext()
void
sendToEventLogger(Executor executor, List values, String componentId, Object messageId, Random random, Queue<AddressedTuple> overflow)
Send sampled data to the eventlogger if the global or component level debug flag is set (via nimbus api).void
sendUnanchored(String stream, List<Object> values, ExecutorTransfer transfer, Queue<AddressedTuple> pendingEmits)
String
toString()
-
-
-
Constructor Detail
-
Task
public Task(Executor executor, Integer taskId) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getOutgoingTasks
public List<Integer> getOutgoingTasks(Integer outTaskId, String stream, List<Object> values)
-
getTaskId
public Integer getTaskId()
-
getComponentId
public String getComponentId()
-
getUserContext
public TopologyContext getUserContext()
-
getTaskObject
public Object getTaskObject()
-
getTaskMetrics
public TaskMetrics getTaskMetrics()
-
sendUnanchored
public void sendUnanchored(String stream, List<Object> values, ExecutorTransfer transfer, Queue<AddressedTuple> pendingEmits)
-
sendToEventLogger
public void sendToEventLogger(Executor executor, List values, String componentId, Object messageId, Random random, Queue<AddressedTuple> overflow)
Send sampled data to the eventlogger if the global or component level debug flag is set (via nimbus api).
-
-