public void run() { if (pipelineRev == null) { pipelineRev = "0"; } ManagerApi managerApi = new ManagerApi(getApiClient()); try { ObjectMapper mapper = new ObjectMapper(); mapper.configure(SerializationFeature.INDENT_OUTPUT, true); System.out.println( mapper.writeValueAsString(managerApi.getHistory(pipelineName, pipelineRev, true))); } catch (Exception e) { e.printStackTrace(); } }
@Override public void run() { if (pipelineRev == null) { pipelineRev = "0"; } try { ManagerApi managerApi = new ManagerApi(getApiClient()); managerApi.resetOffset(pipelineName, pipelineRev); System.out.println("Reset Origin is successful."); } catch (Exception ex) { if (printStackTrace) { ex.printStackTrace(); } else { System.out.println(ex.getMessage()); } } }
public void run() { if (pipelineRev == null) { pipelineRev = "0"; } ManagerApi managerApi = new ManagerApi(getApiClient()); try { ObjectMapper mapper = new ObjectMapper(); mapper.configure(SerializationFeature.INDENT_OUTPUT, true); System.out.println( mapper.writeValueAsString( managerApi.getSnapshotStatus(pipelineName, snapshotName, pipelineRev))); } catch (Exception ex) { if (printStackTrace) { ex.printStackTrace(); } else { System.out.println(ex.getMessage()); } } }