本文整理了Java中com.netflix.spinnaker.orca.pipeline.model.Stage.getStatus()
方法的一些代码示例,展示了Stage.getStatus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stage.getStatus()
方法的具体详情如下:
包路径:com.netflix.spinnaker.orca.pipeline.model.Stage
类名称:Stage
方法名:getStatus
暂无
代码示例来源:origin: spinnaker/kayenta
.collect(Collectors.toMap(Stage::getRefId, s -> s.getStatus().toString().toLowerCase()));
代码示例来源:origin: spinnaker/kayenta
.stageStatus(pipeline.getStages()
.stream()
.map(stage -> new StageMetadata(stage.getType(), stage.getName(), stage.getStatus()))
.collect(Collectors.toList()))
.complete(isComplete)
代码示例来源:origin: com.netflix.spinnaker.orca/orca-core
private static Predicate<Stage> matchesDeployedStage(String ...id) {
List<String> idsOrNames = Arrays.asList(id);
if (!idsOrNames.isEmpty()){
return stage -> DEPLOY_STAGE_NAMES.contains(stage.getType()) &&
stage.getContext().containsKey("deploy.server.groups") &&
stage.getStatus() == ExecutionStatus.SUCCEEDED &&
(idsOrNames.contains(stage.getName()) || idsOrNames.contains(stage.getId()));
} else {
return stage -> DEPLOY_STAGE_NAMES.contains(stage.getType()) &&
stage.getContext().containsKey("deploy.server.groups") && stage.getStatus() == ExecutionStatus.SUCCEEDED;
}
}
}
代码示例来源:origin: com.netflix.spinnaker.orca/orca-core
stage.getExecution().getStages()
.stream()
.filter(s -> lockTypes.contains(s.getType()) && s.getStatus() == ExecutionStatus.SUCCEEDED)
.forEach(s -> {
LockContext lc = s.mapTo("/lock", LockContext.LockContextBuilder.class).withStage(s).build();
代码示例来源:origin: com.netflix.spinnaker.orca/orca-core
public StageComplete(
@Nonnull Object source,
@Nonnull Stage stage
) {
this(source, stage.getExecution().getType(), stage.getExecution().getId(), stage.getId(), stage.getType(), stage.getName(), stage.getStatus());
}
代码示例来源:origin: com.netflix.spinnaker.orca/orca-redis
map.put(prefix + "endTime", stage.getEndTime() != null ? stage.getEndTime().toString() : null);
map.put(prefix + "startTimeExpiry", stage.getStartTimeExpiry() != null ? String.valueOf(stage.getStartTimeExpiry()) : null);
map.put(prefix + "status", stage.getStatus().name());
map.put(prefix + "syntheticStageOwner", stage.getSyntheticStageOwner() != null ? stage.getSyntheticStageOwner().name() : null);
map.put(prefix + "parentStageId", stage.getParentStageId());
代码示例来源:origin: com.netflix.kayenta/kayenta-core
.collect(Collectors.toMap(Stage::getRefId, s -> s.getStatus().toString().toLowerCase()));
代码示例来源:origin: com.netflix.kayenta/kayenta-standalone-canary-analysis
.stageStatus(pipeline.getStages()
.stream()
.map(stage -> new StageMetadata(stage.getType(), stage.getName(), stage.getStatus()))
.collect(Collectors.toList()))
.complete(isComplete)
内容来源于网络,如有侵权,请联系作者删除!