From 4b3609a0bfd37efc5b41563dd7dea5f3a9926169 Mon Sep 17 00:00:00 2001 From: Salim Kanoun Date: Tue, 3 Apr 2018 16:39:40 +0200 Subject: [PATCH] Add files via upload --- .../orthanc/monitoring/CD_Burner.java | 17 +++--- .../monitoring/Orthanc_Monitoring.java | 55 +++++++++---------- 2 files changed, 34 insertions(+), 38 deletions(-) diff --git a/src/org/petctviewer/orthanc/monitoring/CD_Burner.java b/src/org/petctviewer/orthanc/monitoring/CD_Burner.java index e188acb0..06f076b9 100644 --- a/src/org/petctviewer/orthanc/monitoring/CD_Burner.java +++ b/src/org/petctviewer/orthanc/monitoring/CD_Burner.java @@ -255,17 +255,14 @@ public File printDat(String nom, String id, String date, String studyDescription //SK Remplace le WatchFolder //A Faire public void watchOrthancStableStudies() { - Orthanc_Monitoring monitoring=new Orthanc_Monitoring(true); + Orthanc_Monitoring monitoring=new Orthanc_Monitoring(); + //Met la derniere ligne pour commencer le monitoring + int last=monitoring.getChangeLastLine(); + monitoring.setChangeLastLine(last); + //SK monitoring.makeMonitor(); - for (int i=0; i newStableStudyID = new ArrayList(); + protected List newStablePatientID = new ArrayList(); + protected List newPatientID = new ArrayList(); protected List newStudyID = new ArrayList(); + protected List newSerieID = new ArrayList(); //Connxion API ParametreConnexionHttp connexion=new ParametreConnexionHttp(); public static void main(String[] args) throws IOException, ParseException { - Orthanc_Monitoring monitor=new Orthanc_Monitoring(false); + Orthanc_Monitoring monitor=new Orthanc_Monitoring(); monitor.makeMonitor(); } -public Orthanc_Monitoring(boolean cdBurnerService) { - this.cdBurnerService=cdBurnerService; +public Orthanc_Monitoring() { + } public void makeMonitor() { @@ -83,18 +86,31 @@ private void parseOutput(String outputStream) throws ParseException { JSONArray changesArray=(JSONArray) changes.get("Changes"); for (int i=0; i