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.StringCHUNKS_FILE_ENCODINGprivate static java.lang.StringCHUNKS_FILENAMEprivate java.util.ArrayList<java.lang.String>newChunksprivate IndexUpdateResultresult-
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 voidaddIndexChunk(ResourceFetcher source, java.lang.String filename)voidcommit()java.util.List<java.lang.String>getChunks()ResourceFetchergetFetcher()java.util.PropertiesgetProperties()java.util.DategetTimestamp()java.util.DatesetIndexFile(ResourceFetcher source, java.lang.String filename)voidstoreProperties()-
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:
getPropertiesin classDefaultIndexUpdater.IndexAdaptor
-
storeProperties
public void storeProperties() throws java.io.IOException- Specified by:
storePropertiesin classDefaultIndexUpdater.IndexAdaptor- Throws:
java.io.IOException
-
getTimestamp
public java.util.Date getTimestamp()
- Specified by:
getTimestampin classDefaultIndexUpdater.IndexAdaptor
-
addIndexChunk
public void addIndexChunk(ResourceFetcher source, java.lang.String filename) throws java.io.IOException
- Specified by:
addIndexChunkin classDefaultIndexUpdater.IndexAdaptor- Throws:
java.io.IOException
-
setIndexFile
public java.util.Date setIndexFile(ResourceFetcher source, java.lang.String filename) throws java.io.IOException
- Specified by:
setIndexFilein classDefaultIndexUpdater.IndexAdaptor- Throws:
java.io.IOException
-
commit
public void commit() throws java.io.IOException- Overrides:
commitin 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()
-
-