本文整理了Java中azkaban.utils.Utils.createPeriodString()
方法的一些代码示例,展示了Utils.createPeriodString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.createPeriodString()
方法的具体详情如下:
包路径:azkaban.utils.Utils
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!