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

Method execute

storm-client/src/jvm/org/apache/storm/task/ShellBolt.java:176–193  ·  view source on GitHub ↗
(Tuple input)

Source from the content-addressed store, hash-verified

174 }
175
176 @Override
177 public void execute(Tuple input) {
178 if (exception != null) {
179 throw new RuntimeException(exception);
180 }
181
182 //just need an id
183 String genId = Long.toString(rand.nextLong());
184 inputs.put(genId, input);
185 try {
186 BoltMsg boltMsg = createBoltMessage(input, genId);
187
188 pendingWrites.putBoltMsg(boltMsg);
189 } catch (InterruptedException e) {
190 // It's likely that Bolt is shutting down so no need to throw RuntimeException
191 // just ignore
192 }
193 }
194
195 private BoltMsg createBoltMessage(Tuple input, String genId) {
196 BoltMsg boltMsg = new BoltMsg();

Callers

nothing calls this directly

Calls 4

createBoltMessageMethod · 0.95
putBoltMsgMethod · 0.80
putMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected