private ErrorCallback<Message> getDeleteRuntimeErrorCallback() { return (message, throwable) -> { popupHelper.hideBusyIndicator(); confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeDeleteFailedTitle), translationService.format(RuntimePresenter_RuntimeDeleteFailedMessage, throwable.getMessage()), this::forceDeleteRuntime); return false; }; }
private ErrorCallback<Message> getDeleteRuntimeErrorCallback() { return (message, throwable) -> { popupHelper.hideBusyIndicator(); confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeDeleteFailedTitle), translationService.format(RuntimePresenter_RuntimeDeleteFailedMessage, throwable.getMessage()), this::forceDeleteRuntime); return false; }; }
protected void deletePipeline() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmDeleteTitle), translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmDeleteMessage), () -> runtimeService.call(getDeletePipelineSuccessCallback(), getDefaultErrorCallback()).deletePipelineExecution(item.getPipelineTrace().getKey())); }
protected void deletePipeline() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmDeleteTitle), translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmDeleteMessage), () -> runtimeService.call(getDeletePipelineSuccessCallback(), getDefaultErrorCallback()).deletePipelineExecution(item.getPipelineTrace().getKey())); }
protected void forceDeleteRuntime() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeConfirmForcedDeleteTitle), translationService.getTranslation(RuntimePresenter_RuntimeConfirmForcedDeleteMessage), () -> { popupHelper.showBusyIndicator(translationService.getTranslation(RuntimePresenter_RuntimeDeletingForcedMessage)); runtimeService.call(getDeleteRuntimeSuccessCallback(), getDefaultErrorCallback(true)).deleteRuntime(item.getRuntime().getKey(), true); } ); }
protected void stopRuntime() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeConfirmStopTitle), translationService.getTranslation(RuntimePresenter_RuntimeConfirmStopMessage), () -> { popupHelper.showBusyIndicator(translationService.getTranslation(RuntimePresenter_RuntimeStoppingMessage)); runtimeService.call(getStopRuntimeSuccessCallback(), getDefaultErrorCallback(true)).stopRuntime(item.getRuntime().getKey()); }); }
protected void forceDeleteRuntime() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeConfirmForcedDeleteTitle), translationService.getTranslation(RuntimePresenter_RuntimeConfirmForcedDeleteMessage), () -> { popupHelper.showBusyIndicator(translationService.getTranslation(RuntimePresenter_RuntimeDeletingForcedMessage)); runtimeService.call(getDeleteRuntimeSuccessCallback(), getDefaultErrorCallback(true)).deleteRuntime(item.getRuntime().getKey(), true); } ); }
protected void deleteRuntime() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeConfirmDeleteTitle), translationService.getTranslation(RuntimePresenter_RuntimeConfirmDeleteMessage), () -> { popupHelper.showBusyIndicator(translationService.getTranslation(RuntimePresenter_RuntimeDeletingMessage)); runtimeService.call(getDeleteRuntimeSuccessCallback(), getDeleteRuntimeErrorCallback()).deleteRuntime(item.getRuntime().getKey(), false); } ); }
protected void stopRuntime() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeConfirmStopTitle), translationService.getTranslation(RuntimePresenter_RuntimeConfirmStopMessage), () -> { popupHelper.showBusyIndicator(translationService.getTranslation(RuntimePresenter_RuntimeStoppingMessage)); runtimeService.call(getStopRuntimeSuccessCallback(), getDefaultErrorCallback(true)).stopRuntime(item.getRuntime().getKey()); }); }
protected void deleteRuntime() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_RuntimeConfirmDeleteTitle), translationService.getTranslation(RuntimePresenter_RuntimeConfirmDeleteMessage), () -> { popupHelper.showBusyIndicator(translationService.getTranslation(RuntimePresenter_RuntimeDeletingMessage)); runtimeService.call(getDeleteRuntimeSuccessCallback(), getDeleteRuntimeErrorCallback()).deleteRuntime(item.getRuntime().getKey(), false); } ); }
protected void stopPipeline() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmStopTitle), translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmStopMessage), () -> { if (item.isRuntime()) { popupHelper.showInformationPopup(translationService.getTranslation(RuntimePresenter_PipelineExecutionAlreadyStoppedMessage)); } else { runtimeService.call(getStopPipelineSuccessCallback(), getDefaultErrorCallback()).stopPipelineExecution(item.getPipelineTrace().getKey()); } }); }
protected void stopPipeline() { confirmAndExecute(translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmStopTitle), translationService.getTranslation(RuntimePresenter_PipelineExecutionConfirmStopMessage), () -> { if (item.isRuntime()) { popupHelper.showInformationPopup(translationService.getTranslation(RuntimePresenter_PipelineExecutionAlreadyStoppedMessage)); } else { runtimeService.call(getStopPipelineSuccessCallback(), getDefaultErrorCallback()).stopPipelineExecution(item.getPipelineTrace().getKey()); } }); }