Package org.apache.maven.index.updater
Class DefaultIndexUpdater.LocalCacheIndexAdaptor
- java.lang.Object
-
- org.apache.maven.index.updater.DefaultIndexUpdater.IndexAdaptor
-
- org.apache.maven.index.updater.DefaultIndexUpdater.LocalCacheIndexAdaptor
-
- Enclosing class:
- DefaultIndexUpdater
private class DefaultIndexUpdater.LocalCacheIndexAdaptor extends DefaultIndexUpdater.IndexAdaptor
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class org.apache.maven.index.updater.DefaultIndexUpdater.IndexAdaptor
dir, properties
-
-
Constructor Summary
Constructors Constructor Description LocalCacheIndexAdaptor(java.io.File dir, IndexUpdateResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.apache.maven.index.updater.DefaultIndexUpdater.IndexAdaptor
setProperties
-
-
-
-
Field Detail
-
CHUNKS_FILENAME
private static final java.lang.String CHUNKS_FILENAME
- See Also:
- Constant Field Values
-
CHUNKS_FILE_ENCODING
private static final java.lang.String CHUNKS_FILE_ENCODING
- See Also:
- Constant Field Values
-
result
private final IndexUpdateResult result
-
newChunks
private final java.util.ArrayList<java.lang.String> newChunks
-
-
Constructor Detail
-
LocalCacheIndexAdaptor
LocalCacheIndexAdaptor(java.io.File dir, IndexUpdateResult result)
-
-
Method Detail
-
getProperties
public java.util.Properties getProperties()
- Specified by:
getProperties
in classDefaultIndexUpdater.IndexAdaptor
-
storeProperties
public void storeProperties() throws java.io.IOException
- Specified by:
storeProperties
in classDefaultIndexUpdater.IndexAdaptor
- Throws:
java.io.IOException
-
getTimestamp
public java.util.Date getTimestamp()
- Specified by:
getTimestamp
in classDefaultIndexUpdater.IndexAdaptor
-
addIndexChunk
public void addIndexChunk(ResourceFetcher source, java.lang.String filename) throws java.io.IOException
- Specified by:
addIndexChunk
in classDefaultIndexUpdater.IndexAdaptor
- Throws:
java.io.IOException
-
setIndexFile
public java.util.Date setIndexFile(ResourceFetcher source, java.lang.String filename) throws java.io.IOException
- Specified by:
setIndexFile
in classDefaultIndexUpdater.IndexAdaptor
- Throws:
java.io.IOException
-
commit
public void commit() throws java.io.IOException
- Overrides:
commit
in classDefaultIndexUpdater.IndexAdaptor
- Throws:
java.io.IOException
-
getChunks
public java.util.List<java.lang.String> getChunks() throws java.io.IOException
- Throws:
java.io.IOException
-
getFetcher
public ResourceFetcher getFetcher()
-
-