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

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

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

Execution.getName介绍

暂无

代码示例

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

@Override
public boolean shouldProcessExecution(Execution execution) {
 return CanaryAnalysisService.CANARY_ANALYSIS_PIPELINE_NAME.equals(execution.getName());
}

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

@Override
public boolean shouldProcessExecution(Execution execution) {
 return ExecutionMapper.PIPELINE_NAME.equals(execution.getName());
}

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

@Override
public boolean shouldProcessExecution(Execution execution) {
 return CanaryAnalysisService.CANARY_ANALYSIS_PIPELINE_NAME.equals(execution.getName());
}

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

@Override
public boolean shouldProcessExecution(Execution execution) {
 return ExecutionMapper.PIPELINE_NAME.equals(execution.getName());
}

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

map.put("name", execution.getName());
map.put("pipelineConfigId", execution.getPipelineConfigId());
map.put("notifications", mapper.writeValueAsString(execution.getNotifications()));

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

value.put("description", execution.getDescription());
} else if (execution.getType() == PIPELINE) {
 value.put("description", execution.getName());
 value.put("pipelineConfigId", execution.getPipelineConfigId());

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

@Override public Object get(@Nullable Object key) {
  Object value = super.get(key);
  if (value != null) {
   log.warn(
    "Global context key \"{}\" accessed by {} {}[{}] \"{}\"",
    key,
    execution.getApplication(),
    execution.getType(),
    execution.getId(),
    Optional.ofNullable(execution.getName()).orElseGet(execution::getDescription)
   );
   Id counterId = registry
    .createId("global.context.access")
    .withTag("application", execution.getApplication())
    .withTag("key", String.valueOf(key));
   registry
    .counter(counterId)
    .increment();
  }
  return value;
 }
}

相关文章