MUM.data
Interface ICacheManager

All Superinterfaces:
IMultimediaService

public interface ICacheManager
extends IMultimediaService

Title: MUM * Copyright: Copyright (c) 2004 * Date: May 2004 * Description: Mobile agent based Ubiquitous multimedia Middleware * Package: MUM.repository.proxy.cache contains all the classes needed for the implementation of caching enabled proxies * @author Luca Foschini * @version 1.0


Method Summary
 ICacheWriter getCacheWriter()
          Returns a cache writer to write the cache
 void init(java.io.PrintStream out, PlaceID placeID, IMUMBaseFacilities factory, IPresentationMetadataRepository distributedCachingEntryPoint, java.lang.Object[] parameters)
          Initializes the cache manager.
 MUM.repository.proxy.cache.IMetaDataCache isInCache(IMetadata metadata)
          Verifies if a presentation is stored in the local cache
 MUM.repository.proxy.cache.IMetaDataCache isInCacheNoHit(IMetadata metadata)
          Requires if the metadata is present into the local cache.
 void putInCache(MUM.repository.proxy.cache.IMetaDataCache metaDataCache)
          Put a new element in the list maintained for the singulare cache
 void putInCache(MUM.repository.proxy.cache.IMetaDataPrefixCache metaDataPrefixCache)
          Put a new element in the list maintained for video prefixes
 

Method Detail

init

public void init(java.io.PrintStream out,
                 PlaceID placeID,
                 IMUMBaseFacilities factory,
                 IPresentationMetadataRepository distributedCachingEntryPoint,
                 java.lang.Object[] parameters)
          throws InitializationException
Initializes the cache manager.

Throws:
InitializationException

putInCache

public void putInCache(MUM.repository.proxy.cache.IMetaDataCache metaDataCache)
Put a new element in the list maintained for the singulare cache

Parameters:
metaDataCache - the MetaDataCache maintained locally

putInCache

public void putInCache(MUM.repository.proxy.cache.IMetaDataPrefixCache metaDataPrefixCache)
Put a new element in the list maintained for video prefixes


isInCache

public MUM.repository.proxy.cache.IMetaDataCache isInCache(IMetadata metadata)
Verifies if a presentation is stored in the local cache

Parameters:
metadata - the metadata you want to save in the current cache
Returns:
the currespondent IMetaDataCache, null if it is not present

isInCacheNoHit

public MUM.repository.proxy.cache.IMetaDataCache isInCacheNoHit(IMetadata metadata)
Requires if the metadata is present into the local cache. NOTE!! This method has no side effects, i.e. it does not produce locally any cache hit...

Parameters:
metadata - the required metadata
Returns:
the currespondent IMetaDataCache, null if it is not present

getCacheWriter

public ICacheWriter getCacheWriter()
Returns a cache writer to write the cache



Copyright © 2004 Luca Foschini