Mercurial Hosting > luan
comparison src/goodjava/lucene/backup/BackupIndexWriter.java @ 1548:736ec76bbf42
lucene log work
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 27 Sep 2020 22:07:18 -0600 |
| parents | 634f6765830e |
| children | 8dd8c556c449 |
comparison
equal
deleted
inserted
replaced
| 1547:f24a9ba7551e | 1548:736ec76bbf42 |
|---|---|
| 31 private final String password; | 31 private final String password; |
| 32 private final File dir; | 32 private final File dir; |
| 33 private boolean isSyncPending = false; | 33 private boolean isSyncPending = false; |
| 34 private final ExecutorService exec = Executors.newSingleThreadExecutor(); | 34 private final ExecutorService exec = Executors.newSingleThreadExecutor(); |
| 35 | 35 |
| 36 public BackupIndexWriter(LuceneIndexWriter indexWriter,File logDir,String name,String password) throws IOException { | 36 public BackupIndexWriter(LuceneIndexWriter indexWriter,File logDir,long logTime,String name,String password) |
| 37 super(indexWriter,logDir); | 37 throws IOException |
| 38 { | |
| 39 super(indexWriter,logDir,logTime); | |
| 38 if( backupDomains == null ) | 40 if( backupDomains == null ) |
| 39 throw new RuntimeException("must set backupDomains"); | 41 throw new RuntimeException("must set backupDomains"); |
| 40 this.name = name; | 42 this.name = name; |
| 41 this.password = password; | 43 this.password = password; |
| 42 File f = new File(System.getProperty("java.io.tmpdir")); | 44 File f = new File(System.getProperty("java.io.tmpdir")); |
