private void push( int instanceCount, java.util.List<ArchiveInstanceLocator> instances, Association storeas, int priority, final BasicCStoreSCUResp resp) { BasicCStoreSCUResp storeResp = super.cstore(instances, storeas, priority); resp.setCompleted(resp.getCompleted() + 1); resp.setFailed(resp.getFailed() + storeResp.getFailed()); if (resp.getFailedUIDs() != null && storeResp.getFailedUIDs() != null) resp.setFailedUIDs(updateFailed(resp.getFailedUIDs(), storeResp.getFailedUIDs())); else resp.setFailedUIDs( storeResp.getFailedUIDs() == null ? new String[] {} : storeResp.getFailedUIDs()); resp.setWarning(resp.getWarning() + storeResp.getWarning()); resp.setStatus(storeResp.getStatus()); super.nr_instances = instanceCount; super.status = Status.Pending; super.setChanged(); super.notifyObservers(); }
private void pushInstances( ArrayList<ArchiveInstanceLocator> instances, Association storeas, int priority) { super.cstore(instances, storeas, priority); }