Package com.alipay.bluewhale.core.schedule

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


    }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

    }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

  @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

Related Classes of com.alipay.bluewhale.core.schedule.DelayEventRunnable

Copyright © 2018 www.massapicom. 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.