separated from mkExecutor in order to replace executor transfer in executor data for testing.
()
| 267 | * separated from mkExecutor in order to replace executor transfer in executor data for testing. |
| 268 | */ |
| 269 | public ExecutorShutdown execute() throws Exception { |
| 270 | LOG.info("Loading executor tasks " + componentId + ":" + executorId); |
| 271 | |
| 272 | String handlerName = componentId + "-executor" + executorId; |
| 273 | Utils.SmartThread handler = |
| 274 | Utils.asyncLoop(this, false, reportErrorDie, Thread.NORM_PRIORITY, true, true, handlerName); |
| 275 | |
| 276 | LOG.info("Finished loading executor " + componentId + ":" + executorId); |
| 277 | return new ExecutorShutdown(this, Lists.newArrayList(handler), idToTask, receiveQueue); |
| 278 | } |
| 279 | |
| 280 | public abstract void tupleActionFn(int taskId, TupleImpl tuple) throws Exception; |
| 281 |