private class DefaultIndexUpdater.LocalCacheIndexAdaptor extends DefaultIndexUpdater.IndexAdaptor
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CHUNKS_FILE_ENCODING |
private static java.lang.String |
CHUNKS_FILENAME |
private java.util.ArrayList<java.lang.String> |
newChunks |
private IndexUpdateResult |
result |
dir, properties
Constructor and Description |
---|
LocalCacheIndexAdaptor(java.io.File dir,
IndexUpdateResult result) |
Modifier and Type | Method and Description |
---|---|
void |
addIndexChunk(ResourceFetcher source,
java.lang.String filename) |
void |
commit() |
java.util.List<java.lang.String> |
getChunks() |
ResourceFetcher |
getFetcher() |
java.util.Properties |
getProperties() |
java.util.Date |
getTimestamp() |
java.util.Date |
setIndexFile(ResourceFetcher source,
java.lang.String filename) |
void |
storeProperties() |
setProperties
private static final java.lang.String CHUNKS_FILENAME
private static final java.lang.String CHUNKS_FILE_ENCODING
private final IndexUpdateResult result
private final java.util.ArrayList<java.lang.String> newChunks
public LocalCacheIndexAdaptor(java.io.File dir, IndexUpdateResult result)
public java.util.Properties getProperties()
getProperties
in class DefaultIndexUpdater.IndexAdaptor
public void storeProperties() throws java.io.IOException
storeProperties
in class DefaultIndexUpdater.IndexAdaptor
java.io.IOException
public java.util.Date getTimestamp()
getTimestamp
in class DefaultIndexUpdater.IndexAdaptor
public void addIndexChunk(ResourceFetcher source, java.lang.String filename) throws java.io.IOException
addIndexChunk
in class DefaultIndexUpdater.IndexAdaptor
java.io.IOException
public java.util.Date setIndexFile(ResourceFetcher source, java.lang.String filename) throws java.io.IOException
setIndexFile
in class DefaultIndexUpdater.IndexAdaptor
java.io.IOException
public void commit() throws java.io.IOException
commit
in class DefaultIndexUpdater.IndexAdaptor
java.io.IOException
public java.util.List<java.lang.String> getChunks() throws java.io.IOException
java.io.IOException
public ResourceFetcher getFetcher()