@Override public boolean accept(PipelineKey pipelineKey) { return pipelineKey != null && KIE_SERVER_PROVISIONING.equals(pipelineKey.getId()); }
public void setup(final PipelineKey pipeline) { this.pipeline = pipeline; view.setPipelineName(pipeline.getId()); }
public void setup(final PipelineKey pipeline) { this.pipeline = pipeline; view.setPipelineName(pipeline.getId()); }
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 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()); }
@Override public PipelineExecutionTraceKey createRuntime(final ProviderKey providerKey, final String runtimeName, final PipelineKey pipelineKey, final Map<String, String> params) { checkNotNull("providerKey", providerKey); checkNotNull("runtimeName", runtimeName); checkNotNull("pipelineKey", pipelineKey); validateForCreateRuntime(providerKey, runtimeName); try { final Input input = PipelineInputBuilder.newInstance() .withRuntimeName(runtimeName) .withProvider(providerKey) .withParams(params) .build(); return new PipelineExecutionTraceKey(pipelineService.runPipeline(pipelineKey.getId(), input, true)); } catch (Exception e) { logger.error("Runtime creation failed.", e); throw ExceptionUtilities.handleException(e); } }
private void setupRuntime(RuntimeListItem item) { String itemLabel = item.getItemLabel(); String pipelineName = SYSTEM_PIPELINE_NAME; String createdDate = item.getRuntime().getCreatedDate(); String endpoint = ""; Runtime runtime = item.getRuntime(); PipelineExecutionTrace trace = runtime.getPipelineTrace(); if (trace != null) { pipelineName = trace.getPipeline().getKey().getId(); setupPipeline(trace); } view.setup(itemLabel, createdDate, pipelineName); if (runtime.getEndpoint() != null) { endpoint = runtime.getEndpoint(); } view.setEndpoint(endpoint); processRuntimeStatus(runtime); }
private void setupRuntime(RuntimeListItem item) { String itemLabel = item.getItemLabel(); String pipelineName = SYSTEM_PIPELINE_NAME; String createdDate = item.getRuntime().getCreatedDate(); String endpoint = ""; Runtime runtime = item.getRuntime(); PipelineExecutionTrace trace = runtime.getPipelineTrace(); if (trace != null) { pipelineName = trace.getPipeline().getKey().getId(); setupPipeline(trace); } view.setup(itemLabel, createdDate, pipelineName); if (runtime.getEndpoint() != null) { endpoint = runtime.getEndpoint(); } view.setEndpoint(endpoint); processRuntimeStatus(runtime); }
private void assertPipelineTrace(PipelineExecutionTrace trace) { assertEquals(PIPELINE_ID, trace.getPipeline().getKey().getId()); assertEquals(PIPELINE_EXECUTION_ID, trace.getKey().getId()); assertEquals(PipelineStatus.RUNNING, trace.getPipelineStatus()); assertEquals(stageItemList.getItems().size(), trace.getPipeline().getStages().size()); for (int i = 0; i < STAGE_ITEMS_COUNT; i++) { PipelineStageItem stageItem = stageItemList.getItems().get(i); Stage stage = trace.getPipeline().getStages().get(i); assertEquals(stageItem.getName(), stage.getName()); assertEquals(stageItem.getStatus(), trace.getStageStatus(stage.getName()).name()); assertEquals(stageItem.getErrorMessage(), trace.getStageError(stage.getName())); } }
private void assertPipelineTrace(PipelineExecutionTrace trace) { assertEquals(PIPELINE_ID, trace.getPipeline().getKey().getId()); assertEquals(PIPELINE_EXECUTION_ID, trace.getKey().getId()); assertEquals(PipelineStatus.RUNNING, trace.getPipelineStatus()); assertEquals(PIPELINE_ERROR, trace.getPipelineError().getError()); assertEquals(PIPELINE_ERROR_DETAIL, trace.getPipelineError().getErrorDetail()); assertEquals(stageItemList.getItems().size(), trace.getPipeline().getStages().size()); for (int i = 0; i < STAGE_ITEMS_COUNT; i++) { PipelineStageItem stageItem = stageItemList.getItems().get(i); Stage stage = trace.getPipeline().getStages().get(i); assertEquals(stageItem.getName(), stage.getName()); assertEquals(stageItem.getStatus(), trace.getStageStatus(stage.getName()).name()); assertEquals(stageItem.getStageError(), trace.getStageError(stage.getName()).getError()); assertEquals(stageItem.getStageErrorDetail(), trace.getStageError(stage.getName()).getErrorDetail()); } }