private boolean isFromCurrentPipeline(final PipelineExecutionTraceKey pipelineExecutionTraceKey) { return item != null && !item.isRuntime() && item.getPipelineTrace().getKey().equals(pipelineExecutionTraceKey); }
private boolean isFromCurrentRuntime(final RuntimeKey runtimeKey) { return item != null && item.isRuntime() && item.getRuntime().getKey().equals(runtimeKey); }
/** * Helper method for showing whe provider type name in a consistent way around the different widgets. * @param providerType a provider type. * @return Returns a String with the provider name to show in the UI. */ public static String getDisplayableProviderTypeName(ProviderType providerType) { return providerType.getName() + " " + providerType.getKey().getVersion(); }
protected PipelineExecutionTrace mockPipelineExecutionTrace(String executionId, Pipeline pipeline, PipelineStatus initialPipelineStatus, PipelineStatus initialStagesStatus) { PipelineExecutionTrace trace = new PipelineExecutionTrace(new PipelineExecutionTraceKey(executionId)); trace.setPipeline(pipeline); trace.setPipelineStatus(initialPipelineStatus); pipeline.getStages().forEach(stage -> trace.setStageStatus(stage.getName(), initialStagesStatus)); return trace; } }
private void setupPipelineTrace(RuntimeListItem item) { PipelineExecutionTrace trace = item.getPipelineTrace(); String itemLabel = item.getItemLabel(); String pipelineName = trace.getPipeline().getKey().getId(); String createdDate = ""; view.setup(itemLabel, createdDate, pipelineName); setupPipeline(trace); processPipelineStatus(trace.getPipelineStatus()); }
protected Pipeline mockPipeline(String pipelineId, int stages) { PipelineKey pipelineKey = new PipelineKey(pipelineId); Pipeline pipeline = new Pipeline(pipelineKey); for (int i = 0; i < stages; i++) { Stage stage = new Stage(pipelineKey, "Stage.name." + Integer.toString(i)); pipeline.addStage(stage); } return pipeline; }
protected void showPipelineError() { PipelineError error = item.getPipelineTrace().getPipelineError(); popupHelper.showErrorPopup(error.getError(), error.getErrorDetail()); }
@Override public int hashCode() { int result = provider != null ? provider.hashCode() : 0; result = ~~result; return result; } }
@Override public int hashCode() { int result = providerType != null ? providerType.hashCode() : 0; result = ~~result; return result; } }
public static final ProviderKey mockProviderKey(ProviderTypeKey providerTypeKey, String suffix) { return new ProviderKey(providerTypeKey, "ProviderKey.id." + suffix); }
protected PipelineExecutionTrace mockPipelineExecutionTrace(String executionId, Pipeline pipeline, PipelineStatus initialPipelineStatus, PipelineStatus initialStagesStatus) { PipelineExecutionTrace trace = new PipelineExecutionTrace(new PipelineExecutionTraceKey(executionId)); trace.setPipeline(pipeline); trace.setPipelineStatus(initialPipelineStatus); pipeline.getStages().forEach(stage -> trace.setStageStatus(stage.getName(), initialStagesStatus)); return trace; } }
private void setupPipelineTrace(RuntimeListItem item) { PipelineExecutionTrace trace = item.getPipelineTrace(); String itemLabel = item.getItemLabel(); String pipelineName = trace.getPipeline().getKey().getId(); String createdDate = ""; view.setup(itemLabel, createdDate, pipelineName); setupPipeline(trace); processPipelineStatus(trace.getPipelineStatus()); }
private boolean isFromCurrentPipeline(final PipelineExecutionTraceKey pipelineExecutionTraceKey) { return item != null && !item.isRuntime() && item.getPipelineTrace().getKey().equals(pipelineExecutionTraceKey); }
private boolean isFromCurrentRuntime(final RuntimeKey runtimeKey) { return item != null && item.isRuntime() && item.getRuntime().getKey().equals(runtimeKey); }
/** * Helper method for showing whe provider type name in a consistent way around the different widgets. * @param providerType a provider type. * @return Returns a String with the provider name to show in the UI. */ public static String getDisplayableProviderTypeName(ProviderType providerType) { return providerType.getName() + " " + providerType.getKey().getVersion(); }
protected Pipeline mockPipeline(String pipelineId, int stages) { PipelineKey pipelineKey = new PipelineKey(pipelineId); Pipeline pipeline = new Pipeline(pipelineKey); for (int i = 0; i < stages; i++) { Stage stage = new Stage(pipelineKey, "Stage.name." + Integer.toString(i)); pipeline.addStage(stage); } return pipeline; }
@Override public int hashCode() { int result = provider != null ? provider.hashCode() : 0; result = ~~result; return result; } }
@Override public int hashCode() { int result = providerType != null ? providerType.hashCode() : 0; result = ~~result; return result; } }