com.application.areca.cache
Class ArchiveManifestCache

java.lang.Object
  extended by com.application.areca.cache.AbstractArchiveDataCache
      extended by com.application.areca.cache.ArchiveManifestCache

public class ArchiveManifestCache
extends AbstractArchiveDataCache

Cache of Manifests

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Method Summary
static ArchiveManifestCache getInstance()
           
 Manifest getManifest(AbstractFileSystemMedium medium, java.io.File key)
          Returns the requested manifest
 boolean init(AbstractFileSystemMedium medium, java.io.File key)
          Init the data in cache.
 Manifest removeManifest(AbstractFileSystemMedium medium, java.io.File key)
           
 
Methods inherited from class com.application.areca.cache.AbstractArchiveDataCache
findArchiveDataMap, findOrCreateArchiveDataMap, get, getLeastAccessedNonEmptyMapMedium, put, remove, removeAllArchiveData, removeAllArchiveData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ArchiveManifestCache getInstance()

getManifest

public Manifest getManifest(AbstractFileSystemMedium medium,
                            java.io.File key)
                     throws ApplicationException
Returns the requested manifest

Throws:
ApplicationException

init

public boolean init(AbstractFileSystemMedium medium,
                    java.io.File key)
             throws ApplicationException
Init the data in cache.
Returns true if the cache still can grow (ie if no gc has been required after having added the data)

Throws:
ApplicationException

removeManifest

public Manifest removeManifest(AbstractFileSystemMedium medium,
                               java.io.File key)