Interface IMediaCacheStoreItem


  • public interface IMediaCacheStoreItem
    Interface that describes items within a Media Cache store.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] getBlockMask()
      Internal
      String getBlockPath()
      Get the path of the block associated with this item.
      String getMediaPath()
      Get the path of the media associated with this item.
      java.util.Properties getProperties()
      Get the properties for this item
      String getPropertiesPath()
      Get the full path of the properties
      com.wowza.wms.mediacache.model.MediaCacheStore getStore()
      Get the store associated to this item.
      void initMedia​(long length)
      Initialise the media entry with the length of the asset.
      long length()
      Get the length of the asset.
      void setBlockMask​(byte[] blockMask)
      Internal
      void setLength​(long length)
      Set the length of the asset.
      void setProperties​(java.util.Properties props)
      Set the properties for this item.
      String toString()  
      void updateBlockMask​(byte[] blockMask, long offset, long len)
      Internal
    • Method Detail

      • getStore

        com.wowza.wms.mediacache.model.MediaCacheStore getStore()
        Get the store associated to this item.
        Returns:
        MediaCacheStore
      • setProperties

        void setProperties​(java.util.Properties props)
        Set the properties for this item.
        Parameters:
        Properties - props
      • getProperties

        java.util.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()
        Overrides:
        toString in class Object
      • 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 -