MCPcopy Create free account
hub / github.com/apache/storm / Task

Method Task

storm-client/src/jvm/org/apache/storm/daemon/Task.java:75–93  ·  view source on GitHub ↗
(Executor executor, Integer taskId)

Source from the content-addressed store, hash-verified

73 private final boolean debug;
74
75 public Task(Executor executor, Integer taskId) throws IOException {
76 this.taskId = taskId;
77 this.executor = executor;
78 this.workerData = executor.getWorkerData();
79 this.topoConf = executor.getTopoConf();
80 this.componentId = executor.getComponentId();
81 this.streamComponentToGrouper = executor.getStreamToComponentToGrouper();
82 this.streamToGroupers = getGroupersPerStream(streamComponentToGrouper);
83 this.executorStats = executor.getStats();
84 this.workerTopologyContext = executor.getWorkerTopologyContext();
85 this.emitSampler = ConfigUtils.mkStatsSampler(topoConf);
86 this.systemTopologyContext = mkTopologyContext(workerData.getSystemTopology());
87 this.userTopologyContext = mkTopologyContext(workerData.getTopology());
88 this.taskObject = mkTaskObject();
89 this.debug = topoConf.containsKey(Config.TOPOLOGY_DEBUG) && (Boolean) topoConf.get(Config.TOPOLOGY_DEBUG);
90 this.addTaskHooks();
91 this.taskMetrics = new TaskMetrics(this.workerTopologyContext, this.componentId, this.taskId,
92 workerData.getMetricRegistry(), topoConf);
93 }
94
95 private static HashMap<String, ArrayList<LoadAwareCustomStreamGrouping>> getGroupersPerStream(
96 Map<String, Map<String, LoadAwareCustomStreamGrouping>> streamComponentToGrouper) {

Callers

nothing calls this directly

Calls 15

getGroupersPerStreamMethod · 0.95
mkStatsSamplerMethod · 0.95
mkTopologyContextMethod · 0.95
mkTaskObjectMethod · 0.95
addTaskHooksMethod · 0.95
getWorkerDataMethod · 0.80
getSystemTopologyMethod · 0.80
getTopologyMethod · 0.65
getMethod · 0.65
getTopoConfMethod · 0.45
getComponentIdMethod · 0.45

Tested by

no test coverage detected