OcspCertStoreDbImporter(
     final DataSourceWrapper dataSource,
     final Unmarshaller unmarshaller,
     final String srcDir,
     final int numCertsPerCommit,
     final boolean resume,
     final AtomicBoolean stopMe,
     final boolean evaluateOnly)
     throws Exception {
   super(dataSource, srcDir, stopMe, evaluateOnly);
   if (numCertsPerCommit < 1) {
     throw new IllegalArgumentException(
         "numCertsPerCommit could not be less than 1: " + numCertsPerCommit);
   }
   ParamUtil.assertNotNull("unmarshaller", unmarshaller);
   this.unmarshaller = unmarshaller;
   this.numCertsPerCommit = numCertsPerCommit;
   File processLogFile = new File(baseDir, DbPorter.IMPORT_PROCESS_LOG_FILENAME);
   if (resume) {
     if (!processLogFile.exists()) {
       throw new Exception("could not process with '--resume' option");
     }
   } else {
     if (processLogFile.exists()) {
       throw new Exception(
           "please either specify '--resume' option or delete the file "
               + processLogFile.getPath()
               + " first");
     }
   }
   this.resume = resume;
 }
Exemple #2
0
 public void setValidityMode(final ValidityMode mode) {
   ParamUtil.assertNotNull("mode", mode);
   this.validityMode = mode;
 }
Exemple #3
0
 public void setDuplicateSubjectMode(final DuplicationMode mode) {
   ParamUtil.assertNotNull("mode", mode);
   this.duplicateSubjectMode = mode;
 }