org.red5.io
Class CachingFileKeyFrameMetaCache

java.lang.Object
  extended by org.red5.io.FileKeyFrameMetaCache
      extended by org.red5.io.CachingFileKeyFrameMetaCache
All Implemented Interfaces:
IKeyFrameMetaCache

public class CachingFileKeyFrameMetaCache
extends FileKeyFrameMetaCache


Constructor Summary
CachingFileKeyFrameMetaCache()
           
 
Method Summary
 IKeyFrameDataAnalyzer.KeyFrameMeta loadKeyFrameMeta(File file)
          Load keyframe informations for the given file.
 void removeKeyFrameMeta(File file)
          Remove keyframe information for given file.
 void saveKeyFrameMeta(File file, IKeyFrameDataAnalyzer.KeyFrameMeta meta)
          Store keyframe informations for the given file.
 void setMaxCacheEntry(int maxCacheEntry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingFileKeyFrameMetaCache

public CachingFileKeyFrameMetaCache()
Method Detail

setMaxCacheEntry

public void setMaxCacheEntry(int maxCacheEntry)

loadKeyFrameMeta

public IKeyFrameDataAnalyzer.KeyFrameMeta loadKeyFrameMeta(File file)
Description copied from class: FileKeyFrameMetaCache
Load keyframe informations for the given file.

Specified by:
loadKeyFrameMeta in interface IKeyFrameMetaCache
Overrides:
loadKeyFrameMeta in class FileKeyFrameMetaCache
Parameters:
file - File to load informations for.
Returns:
The keyframe informations or null if none exist.

saveKeyFrameMeta

public void saveKeyFrameMeta(File file,
                             IKeyFrameDataAnalyzer.KeyFrameMeta meta)
Description copied from class: FileKeyFrameMetaCache
Store keyframe informations for the given file.

Specified by:
saveKeyFrameMeta in interface IKeyFrameMetaCache
Overrides:
saveKeyFrameMeta in class FileKeyFrameMetaCache
Parameters:
file - File to save informations for.
meta - Keyframe informations for this file.

removeKeyFrameMeta

public void removeKeyFrameMeta(File file)
Description copied from interface: IKeyFrameMetaCache
Remove keyframe information for given file. Need to update keyframe cache when re-writing file.

Specified by:
removeKeyFrameMeta in interface IKeyFrameMetaCache
Overrides:
removeKeyFrameMeta in class FileKeyFrameMetaCache
Parameters:
file - File to remove information for.


Copyright © 2006-2012 The Red5 Project