azkaban.utils.Utils.createPeriodString()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中azkaban.utils.Utils.createPeriodString()方法的一些代码示例,展示了Utils.createPeriodString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.createPeriodString()方法的具体详情如下:
包路径:azkaban.utils.Utils
类名称:Utils
方法名:createPeriodString

Utils.createPeriodString介绍

暂无

代码示例

代码示例来源:origin: azkaban/azkaban

@Override
public Object toJson() {
 final Map<String, Object> jsonObj = new HashMap<>();
 jsonObj.put("type", type);
 jsonObj.put("firstCheckTime", String.valueOf(this.firstCheckTime));
 jsonObj.put("timezone", this.timezone.getID());
 jsonObj.put("nextCheckTime", String.valueOf(this.nextCheckTime));
 jsonObj.put("isRecurring", String.valueOf(this.isRecurring));
 jsonObj.put("skipPastChecks", String.valueOf(this.skipPastChecks));
 jsonObj.put("period", Utils.createPeriodString(this.period));
 jsonObj.put("id", this.id);
 jsonObj.put("cronExpression", this.cronExpression);
 return jsonObj;
}

代码示例来源:origin: azkaban/azkaban

slaInfo.put(SlaOption.INFO_DURATION, Utils.createPeriodString(dur));
final SlaOption r = new SlaOption(slaType, slaActions, slaInfo);
logger.info("Parsing sla as id:" + id + " type:" + slaType + " rule:"

代码示例来源:origin: com.linkedin.azkaban/azkaban

@Override
public Object toJson() {
  Map<String, Object> jsonObj = new HashMap<String, Object>();
  jsonObj.put("type", type);
  jsonObj.put("firstCheckTime", String.valueOf(firstCheckTime));
  jsonObj.put("timezone", timezone.getID());
  jsonObj.put("nextCheckTime", String.valueOf(nextCheckTime));
  jsonObj.put("isRecurring", String.valueOf(isRecurring));
  jsonObj.put("skipPastChecks", String.valueOf(skipPastChecks));
  jsonObj.put("period", Utils.createPeriodString(period));
  jsonObj.put("id", id);
  
  return jsonObj;
}

代码示例来源:origin: com.linkedin.azkaban/azkaban-common

@Override
public Object toJson() {
 final Map<String, Object> jsonObj = new HashMap<>();
 jsonObj.put("type", type);
 jsonObj.put("firstCheckTime", String.valueOf(this.firstCheckTime));
 jsonObj.put("timezone", this.timezone.getID());
 jsonObj.put("nextCheckTime", String.valueOf(this.nextCheckTime));
 jsonObj.put("isRecurring", String.valueOf(this.isRecurring));
 jsonObj.put("skipPastChecks", String.valueOf(this.skipPastChecks));
 jsonObj.put("period", Utils.createPeriodString(this.period));
 jsonObj.put("id", this.id);
 jsonObj.put("cronExpression", this.cronExpression);
 return jsonObj;
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

slaInfo.put(SlaOption.INFO_DURATION, Utils.createPeriodString(dur));
SlaOption r = new SlaOption(slaType, slaActions, slaInfo);
logger.info("Parsing sla as id:" + id + " type:" + slaType + " rule:" + rule + " Duration:" + duration + " actions:" + slaActions);

相关文章