136137138139140141142143144145146
long timeStart = System.currentTimeMillis(); try { main.open(); main.query(getDimseRSPHandler(main.getAssociation().nextMessageID())); } finally { main.close(); // is waiting for all the responsens to be complete executorService.shutdown();
175176177178179180181182183184185
device.setExecutor(executorService); device.setScheduledExecutor(scheduledExecutorService); // open and send try { main.open(); t1 = System.currentTimeMillis(); main.createMpps(); t2 = System.currentTimeMillis(); main.updateMpps();
161162163164165166167168169170171
device.setExecutor(executorService); device.setScheduledExecutor(scheduledExecutorService); // open and send try { main.open(); t1 = System.currentTimeMillis(); main.sendFiles(); t2 = System.currentTimeMillis(); } finally {