*/
public class TasksCommon {
private final static Logger LOG = Logger.getLogger(TasksCommon.class);
public static BaseTaskStatsRolling mk_task_stats(Object obj, int rate) {
BaseTaskStatsRolling stat=null;
if (obj instanceof IBolt) {
stat= Stats.mk_bolt_stats(rate);
}else{
stat=Stats.mk_spout_stats(rate);
}