Example #1
0
 void setDefaultHarvestNamePrefix() {
   if (getJobID() != null) {
     ArchiveFileNaming naming = ArchiveFileNamingFactory.getInstance();
     log.debug("Applying the default ArchiveFileNaming class '{}'.", naming.getClass().getName());
     final String prefix = naming.getPrefix(this);
     setHarvestFilenamePrefix(prefix);
     log.debug("The harvestPrefix of this job is: {}", prefix);
   } else {
     log.warn(
         "The harvestnamePrefix is not set now, as it depends on the JobID, which is not set yet");
   }
 }