Examples of TriggerType


Examples of com.taobao.zeus.model.JobStatus.TriggerType

      @Override
      public void run() {
        JobHistory his = context.getJobHistoryManager().findJobHistory(
            context.getGroupManager().getJobStatus(jobId)
                .getHistoryId());
        TriggerType type = his.getTriggerType();
        ScheduleInfoLog.info("JobId:" + jobId + " run start");
        his.getLog().appendZeus(
            new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
                .format(new Date()) + " 开始运行");
        context.getJobHistoryManager().updateJobHistoryLog(his.getId(),
View Full Code Here

Examples of com.taobao.zeus.model.JobStatus.TriggerType

  protected UserManager userManager;
  @Override
  public void alarm(String historyId, String title, String content,ChainException chain)
      throws Exception {
    JobHistory history=jobHistoryManager.findJobHistory(historyId);
    TriggerType type=history.getTriggerType();
    String jobId=history.getJobId();
    List<String> users=new ArrayList<String>();
    if(type==TriggerType.SCHEDULE){
      users=followManager.findActualJobFollowers(jobId);
    }else{
View Full Code Here

Examples of com.taobao.zeus.model.JobStatus.TriggerType

    return jobService.jobHistoryPaging(jobId,config);
  }

  @Override
  public void run(String jobId, int type) throws GwtException {
    TriggerType triggerType=null;
    if(type==1){
      triggerType=TriggerType.MANUAL;
    }else if(type==2){
      triggerType=TriggerType.MANUAL_RECOVER;
    }
View Full Code Here

Examples of com.taobao.zeus.model.JobStatus.TriggerType

      }
    }
  }
  @Override
  public void run(String jobId, int type) throws GwtException {
    TriggerType triggerType=null;
    if(type==1){
      triggerType=TriggerType.MANUAL;
    }else if(type==2){
      triggerType=TriggerType.MANUAL_RECOVER;
    }
View Full Code Here

Examples of lineage2.gameserver.stats.triggers.TriggerType

            {
              NamedNodeMap attrs = d.getAttributes();
              int skillId = 0, augmentationId = Integer.parseInt(attrs.getNamedItem("id").getNodeValue());
              int skillLvL = 0;
              String type = "blue";
              TriggerType t = null;
              double chance = 0;
              for (Node cd = d.getFirstChild(); cd != null; cd = cd.getNextSibling())
              {
                attrs = cd.getAttributes();
                if ("skillId".equalsIgnoreCase(cd.getNodeName()))
View Full Code Here

Examples of lineage2.gameserver.stats.triggers.TriggerType

    for (Iterator<Element> iterator = f.elementIterator(); iterator.hasNext();)
    {
      Element element = iterator.next();
      int id = parseNumber(element.attributeValue("id")).intValue();
      int level = parseNumber(element.attributeValue("level")).intValue();
      TriggerType t = TriggerType.valueOf(element.attributeValue("type"));
      double chance = parseNumber(element.attributeValue("chance")).doubleValue();
      TriggerInfo trigger = new TriggerInfo(id, level, t, chance);
      triggerable.addTrigger(trigger);
      for (Iterator<Element> subIterator = element.elementIterator(); subIterator.hasNext();)
      {
View Full Code Here

Examples of lineage2.gameserver.stats.triggers.TriggerType

      if ("trigger".equalsIgnoreCase(n.getNodeName()))
      {
        NamedNodeMap map = n.getAttributes();
        int id = parseNumber(map.getNamedItem("id").getNodeValue()).intValue();
        int level = parseNumber(map.getNamedItem("level").getNodeValue()).intValue();
        TriggerType t = TriggerType.valueOf(map.getNamedItem("type").getNodeValue());
        double chance = parseNumber(map.getNamedItem("chance").getNodeValue()).doubleValue();
        TriggerInfo trigger = new TriggerInfo(id, level, t, chance);
        template.addTrigger(trigger);
        for (Node n2 = n.getFirstChild(); n2 != null; n2 = n2.getNextSibling())
        {
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.