com.netflix.spinnaker.orca.pipeline.model.Execution.getBuildTime()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(97)

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

Execution.getBuildTime介绍

暂无

代码示例

代码示例来源:origin: spinnaker/kayenta

.status(pipelineStatus);
Long buildTime = pipeline.getBuildTime();
if (buildTime != null) {
 canaryExecutionStatusResponseBuilder

代码示例来源:origin: spinnaker/kayenta

.ifPresent(stage -> responseBuilder.exception(stage.getContext().get("exception")));
Long buildTime = pipeline.getBuildTime();
if (buildTime != null) {
 responseBuilder

代码示例来源:origin: com.netflix.spinnaker.orca/orca-core

@Override
 public int compare(Execution a, Execution b) {
  Long aBuildTime = Optional.ofNullable(a.getBuildTime()).orElse(0L);
  Long bBuildTime = Optional.ofNullable(b.getBuildTime()).orElse(0L);
  int buildCompare = aBuildTime.compareTo(bBuildTime);
  if (buildCompare == 0) {
   return a.getId().compareTo(b.getId());
  }
  return buildCompare;
 }
};

代码示例来源:origin: com.netflix.spinnaker.orca/orca-core

@Override
 public int compare(Execution a, Execution b) {
  Long aBuildTime = Optional.ofNullable(a.getBuildTime()).orElse(0L);
  Long bBuildTime = Optional.ofNullable(b.getBuildTime()).orElse(0L);
  int buildCompare = bBuildTime.compareTo(aBuildTime);
  if (buildCompare == 0) {
   return b.getId().compareTo(a.getId());
  }
  return buildCompare;
 }
},

代码示例来源:origin: com.netflix.spinnaker.orca/orca-core

@Override
 public Boolean call(Execution execution) {
  if (!COMPLETED_STATUSES.contains(execution.getStatus().toString())) {
   return false;
  }
  long startTime = execution.getStartTime() == null ? execution.getBuildTime() : execution.getStartTime();
  return startTime <= (Instant.ofEpochMilli(clock.millis()).minus(thresholdDays, ChronoUnit.DAYS).toEpochMilli());
 }
};

代码示例来源:origin: com.netflix.spinnaker.orca/orca-redis

@Override
public void store(@Nonnull Execution execution) {
 RedisClientDelegate delegate = getRedisDelegate(execution);
 storeExecutionInternal(delegate, execution);
 if (execution.getType() == PIPELINE) {
  delegate.withCommandsClient(c -> {
   c.zadd(executionsByPipelineKey(execution.getPipelineConfigId()),
    execution.getBuildTime() != null ? execution.getBuildTime() : currentTimeMillis(),
    execution.getId()
   );
  });
 }
}

代码示例来源:origin: com.netflix.spinnaker.orca/orca-redis

map.put("canceled", String.valueOf(execution.isCanceled()));
map.put("limitConcurrent", String.valueOf(execution.isLimitConcurrent()));
map.put("buildTime", String.valueOf(execution.getBuildTime() != null ? execution.getBuildTime() : 0L));
map.put("startTime", execution.getStartTime() != null ? execution.getStartTime().toString() : null);
map.put("endTime", execution.getEndTime() != null ? execution.getEndTime().toString() : null);

代码示例来源:origin: com.netflix.kayenta/kayenta-core

.status(pipelineStatus);
Long buildTime = pipeline.getBuildTime();
if (buildTime != null) {
 canaryExecutionStatusResponseBuilder

代码示例来源:origin: com.netflix.kayenta/kayenta-standalone-canary-analysis

.ifPresent(stage -> responseBuilder.exception(stage.getContext().get("exception")));
Long buildTime = pipeline.getBuildTime();
if (buildTime != null) {
 responseBuilder

相关文章