org.apache.maven.mercury.repository.cache.fs
Class MetadataCacheFs
java.lang.Object
org.apache.maven.mercury.repository.cache.fs.MetadataCacheFs
- All Implemented Interfaces:
- EventGenerator, RepositoryMetadataCache
public class MetadataCacheFs
- extends java.lang.Object
- implements RepositoryMetadataCache
- Version:
- $Id: MetadataCacheFs.java 720564 2008-11-25 18:58:02Z ogusakov $
- Author:
- Oleg Gusakov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT_FIND_GA
public static final java.lang.String EVENT_FIND_GA
- See Also:
- Constant Field Values
EVENT_FIND_GAV
public static final java.lang.String EVENT_FIND_GAV
- See Also:
- Constant Field Values
EVENT_FIND_RAW
public static final java.lang.String EVENT_FIND_RAW
- See Also:
- Constant Field Values
EVENT_UPDATE_GA
public static final java.lang.String EVENT_UPDATE_GA
- See Also:
- Constant Field Values
EVENT_UPDATE_GAV
public static final java.lang.String EVENT_UPDATE_GAV
- See Also:
- Constant Field Values
EVENT_SAVE_RAW
public static final java.lang.String EVENT_SAVE_RAW
- See Also:
- Constant Field Values
getCache
public static MetadataCacheFs getCache(java.io.File root)
throws java.io.IOException
- access to all known FS caches
- Parameters:
root -
- Returns:
-
- Throws:
java.io.IOException
findGA
public RepositoryGAMetadata findGA(java.lang.String repoGuid,
RepositoryUpdatePolicy up,
ArtifactCoordinates coord)
throws MetadataCorruptionException
- Specified by:
findGA in interface RepositoryMetadataCache
- Throws:
MetadataCorruptionException
findGAV
public RepositoryGAVMetadata findGAV(java.lang.String repoGuid,
RepositoryUpdatePolicy up,
ArtifactCoordinates coord)
throws MetadataCorruptionException
- Specified by:
findGAV in interface RepositoryMetadataCache
- Throws:
MetadataCorruptionException
updateGA
public void updateGA(java.lang.String repoGuid,
RepositoryGAMetadata gam)
throws MetadataCacheException
- Specified by:
updateGA in interface RepositoryMetadataCache
- Throws:
MetadataCacheException
updateGAV
public void updateGAV(java.lang.String repoGuid,
RepositoryGAVMetadata gavm)
throws MetadataCacheException
- Specified by:
updateGAV in interface RepositoryMetadataCache
- Throws:
MetadataCacheException
findRaw
public byte[] findRaw(ArtifactBasicMetadata bmd)
throws MetadataCacheException
- Specified by:
findRaw in interface RepositoryMetadataCache
- Throws:
MetadataCacheException
saveRaw
public void saveRaw(ArtifactBasicMetadata bmd,
byte[] rawBytes)
throws MetadataCacheException
- Specified by:
saveRaw in interface RepositoryMetadataCache
- Throws:
MetadataCacheException
register
public void register(MercuryEventListener listener)
- Specified by:
register in interface EventGenerator
unRegister
public void unRegister(MercuryEventListener listener)
- Specified by:
unRegister in interface EventGenerator
setEventManager
public void setEventManager(EventManager eventManager)
- Specified by:
setEventManager in interface EventGenerator
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.