Esempio n. 1
0
 public void setDestination(String filePath) {
   destination = new File(filePath);
   if ("/dev/null".equals(filePath)) {
     devnull = destination;
     cache.setCacheRootDir(null);
   } else {
     devnull = null;
     cache.setCacheRootDir(destination);
   }
 }
Esempio n. 2
0
 private File getDir(Association as) {
   File dir = cache.getCacheRootDir();
   if (called2dir != null) {
     dir = new File(dir, called2dir.getProperty(as.getCalledAET(), calleddefdir));
   }
   if (calling2dir != null) {
     dir = new File(dir, calling2dir.getProperty(as.getCallingAET(), callingdefdir));
   }
   return dir;
 }
Esempio n. 3
0
 private boolean isStgcmtEnabled() {
   return ae.getAETitle() != null && cache.getCacheRootDir() != null;
 }
Esempio n. 4
0
 boolean isStoreFile() {
   return devnull != null || cache.getCacheRootDir() != null;
 }
Esempio n. 5
0
 public void setJournalFilePathFormat(String format) {
   cache.setJournalFilePathFormat(format);
 }
Esempio n. 6
0
 public void setJournal(String journalRootDir) {
   cache.setJournalRootDir(new File(journalRootDir));
   // Prefix JournalFileName to distinguish from journal files created
   // by other applications than DcmRcv
   cache.setJournalFileName("DcmRcv." + cache.getJournalFileName());
 }