use of org.apache.storm.executor.Executor in project storm by apache.
the class Worker method doHeartBeat.
public void doHeartBeat() throws IOException {
LocalState state = ConfigUtils.workerState(workerState.conf, workerState.workerId);
state.setWorkerHeartBeat(new LSWorkerHeartbeat(Time.currentTimeSecs(), workerState.topologyId, workerState.executors.stream().map(executor -> new ExecutorInfo(executor.get(0).intValue(), executor.get(1).intValue())).collect(Collectors.toList()), workerState.port));
// this is just in case supervisor is down so that disk doesn't fill up.
state.cleanup(60);
// it shouldn't take supervisor 120 seconds between listing dir and reading it
}
Aggregations