Package com.wowza.wms.mediacache.model
Interface IMediaCacheStoreItem
public interface IMediaCacheStoreItem
Interface that describes items within a Media Cache store.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]InternalGet the path of the block associated with this item.Get the path of the media associated with this item.Get the properties for this itemGet the full path of the propertiescom.wowza.wms.mediacache.model.MediaCacheStoregetStore()Get the store associated to this item.voidinitMedia(long length) Initialise the media entry with the length of the asset.longlength()Get the length of the asset.voidsetBlockMask(byte[] blockMask) InternalvoidsetLength(long length) Set the length of the asset.voidsetProperties(Properties props) Set the properties for this item.toString()voidupdateBlockMask(byte[] blockMask, long offset, long len) Internal
-
Method Details
-
getStore
com.wowza.wms.mediacache.model.MediaCacheStore getStore()Get the store associated to this item.- Returns:
- MediaCacheStore
-
setProperties
Set the properties for this item.- Parameters:
Properties- props
-
getProperties
Properties getProperties()Get the properties for this item- Returns:
- Properties
-
getPropertiesPath
String getPropertiesPath()Get the full path of the properties- Returns:
-
initMedia
void initMedia(long length) Initialise the media entry with the length of the asset.- Parameters:
length-
-
getMediaPath
String getMediaPath()Get the path of the media associated with this item.- Returns:
- String
-
getBlockPath
String getBlockPath()Get the path of the block associated with this item.- Returns:
- String
-
setBlockMask
void setBlockMask(byte[] blockMask) Internal- Parameters:
blockMask-
-
getBlockMask
byte[] getBlockMask()Internal- Returns:
- byte[]
-
updateBlockMask
void updateBlockMask(byte[] blockMask, long offset, long len) Internal- Parameters:
blockMask-offset-len-
-
toString
String toString() -
length
long length()Get the length of the asset.- Returns:
- long
-
setLength
void setLength(long length) Set the length of the asset. Should be identical size when initMedia is called.- Parameters:
length-
-