Interface IStatsFileDatabase


  • public interface IStatsFileDatabase
    • Method Detail

      • writeEmptyDatabase

        boolean writeEmptyDatabase​(String path)
        Write empty database
        Parameters:
        path -
        Returns:
        true if successful
      • getLevel

        IStatsFileDatabaseLevel getLevel​(int levelIndex)
        Get level
        Parameters:
        levelIndex -
        Returns:
        level index
      • putLevel

        void putLevel​(int levelIndex,
                      com.wowza.wms.stats.database.file.StatsFileDatabaseLevel level)
        Put level
        Parameters:
        levelIndex -
        level -
      • isValidSecondsTime

        boolean isValidSecondsTime​(long timecode)
        Returns true if valid timecode value (in seconds). Must be greater than define epoch and less than epoch+Inter.MAX_VALUE
        Parameters:
        timecode -
        Returns:
        true if valid timecode
      • getStorageContext

        com.wowza.wms.stats.database.file.StatsFileDatabaseStorageContext getStorageContext()
        Get the storage context for open database. You can get read/write stats
        Returns:
        storage context for open database
      • getEpoch

        long getEpoch()
        Get the defined time epoch
        Returns:
        epoch time
      • getVersion

        int getVersion()
        Get version
        Returns:
        version
      • getFlags

        int getFlags()
        Get the flags
        Returns:
        flags
      • close

        void close()
        Close open database (will leak descriptors if not closed)