Examples of DelayEventRunnable


Examples of com.alibaba.jstorm.schedule.DelayEventRunnable

    int delaySecs = getDelaySeconds(args);
    LOG.info("Delaying event " + newType + " for "
        + delaySecs + " secs for " + topologyid);

    data.getScheduExec().schedule(
        new DelayEventRunnable(data, topologyid, nextAction),
        delaySecs, TimeUnit.SECONDS);

    return new StormStatus(delaySecs, newType);
  }
View Full Code Here

Examples of com.alipay.bluewhale.core.schedule.DelayEventRunnable

  @Override
  public <T> Object execute(T... args) {
   
    LOG.info("Delaying event " + oldStatus.getStatusType().getStatus() + " for " + oldStatus.getKillTimeSecs() + " secs for " + topologyid);
   
    data.getScheduExec().schedule(new DelayEventRunnable(data,topologyid,StatusType.remove), oldStatus.getKillTimeSecs(), TimeUnit.SECONDS);
   
    return null;
  }
View Full Code Here

Examples of com.alipay.bluewhale.core.schedule.DelayEventRunnable

    }else{
      delaySecs=(Integer) args[0];
    }
    LOG.info("Delaying event " + StatusType.remove.getStatus() + " for " + delaySecs + " secs for " + topologyid);
   
    data.getScheduExec().schedule(new DelayEventRunnable(data,topologyid,StatusType.remove), delaySecs, TimeUnit.SECONDS);
   
    return new StormStatus(delaySecs, StatusType.killed, oldStatus);
  }
View Full Code Here

Examples of com.alipay.bluewhale.core.schedule.DelayEventRunnable

    }else{
      delaySecs=(Integer) args[0];
    }
    LOG.info("Delaying event " + StatusType.do_rebalance.getStatus() + " for " + delaySecs + " secs for " + topologyid);
   
    data.getScheduExec().schedule(new DelayEventRunnable(data,topologyid,StatusType.do_rebalance), delaySecs, TimeUnit.SECONDS);
   
    return new StormStatus(delaySecs, StatusType.rebalancing, oldStatus);
  }
View Full Code Here

Examples of com.alipay.bluewhale.core.schedule.DelayEventRunnable

  @Override
  public <T> Object execute(T... args) {
   
        LOG.info("Delaying event " + oldStatus.getStatusType().getStatus() + " for " + oldStatus.getDelaySecs() + " secs for " + topologyid);
   
    data.getScheduExec().schedule(new DelayEventRunnable(data,topologyid,StatusType.do_rebalance), oldStatus.getDelaySecs(), TimeUnit.SECONDS);

    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.