use of org.apache.storm.generated.LSWorkerHeartbeat in project storm by apache.
the class SlotTest method mkWorkerHB.
static LSWorkerHeartbeat mkWorkerHB(String id, int port, List<ExecutorInfo> exec, Integer timeSecs) {
LSWorkerHeartbeat ret = new LSWorkerHeartbeat();
ret.set_topology_id(id);
ret.set_port(port);
ret.set_executors(exec);
ret.set_time_secs(timeSecs);
return ret;
}
Aggregations