@SuppressWarnings("rawtypes")
public static void doHeartbeat(Map conf, String worker_id, int port,
String storm_id, Set<Integer> task_ids) throws IOException {
int currtime = TimeUtils.current_time_secs();
WorkerHeartbeat hb = new WorkerHeartbeat(currtime, storm_id, task_ids,
port);
LOG.debug("Doing heartbeat:" + worker_id + ",port:" + port + ",hb"
+ hb.toString());
LocalState state = StormConfig.worker_state(conf, worker_id);
state.put(Common.LS_WORKER_HEARTBEAT, hb);
}