Interface IStatsFileDatabase
- 
 public interface IStatsFileDatabase
- 
- 
Field SummaryFields Modifier and Type Field Description static StringATOMID_HEADERstatic StringATOMID_LEVELstatic StringATOMID_LEVEL_DATATABLEstatic StringATOMID_LEVEL_HEADERstatic StringATOMID_LEVEL_TIMEstatic StringATOMID_LEVEL_TIMEINDEXstatic intATOMSIZEstatic intBYTESPERTIMECODEstatic intDEFAULT_BYTESPERFIELDstatic intDEFAULT_FIELDSPERROWstatic intDEFAULT_TABLECOUNTstatic intDEFAULT_TIMEINDEX_FACTORstatic longEPOCH_SECSstatic StringFILE_SIGNATUREstatic intFILE_VERSION
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close open database (will leak descriptors if not closed)longgetEpoch()Get the defined time epochintgetFlags()Get the flagsIStatsFileDatabaseLevelgetLevel(int levelIndex)Get levelcom.wowza.wms.stats.database.file.StatsFileDatabaseStorageContextgetStorageContext()Get the storage context for open database.intgetVersion()Get versionbooleanisValidSecondsTime(long timecode)Returns true if valid timecode value (in seconds).voidputLevel(int levelIndex, com.wowza.wms.stats.database.file.StatsFileDatabaseLevel level)Put levelbooleanwriteEmptyDatabase(String path)Write empty database
 
- 
- 
- 
Field Detail- 
ATOMSIZEstatic final int ATOMSIZE - See Also:
- Constant Field Values
 
 - 
FILE_SIGNATUREstatic final String FILE_SIGNATURE - See Also:
- Constant Field Values
 
 - 
FILE_VERSIONstatic final int FILE_VERSION - See Also:
- Constant Field Values
 
 - 
ATOMID_HEADERstatic final String ATOMID_HEADER - See Also:
- Constant Field Values
 
 - 
ATOMID_LEVELstatic final String ATOMID_LEVEL - See Also:
- Constant Field Values
 
 - 
ATOMID_LEVEL_HEADERstatic final String ATOMID_LEVEL_HEADER - See Also:
- Constant Field Values
 
 - 
ATOMID_LEVEL_TIMEstatic final String ATOMID_LEVEL_TIME - See Also:
- Constant Field Values
 
 - 
ATOMID_LEVEL_TIMEINDEXstatic final String ATOMID_LEVEL_TIMEINDEX - See Also:
- Constant Field Values
 
 - 
ATOMID_LEVEL_DATATABLEstatic final String ATOMID_LEVEL_DATATABLE - See Also:
- Constant Field Values
 
 - 
EPOCH_SECSstatic final long EPOCH_SECS - See Also:
- Constant Field Values
 
 - 
BYTESPERTIMECODEstatic final int BYTESPERTIMECODE - See Also:
- Constant Field Values
 
 - 
DEFAULT_TIMEINDEX_FACTORstatic final int DEFAULT_TIMEINDEX_FACTOR - See Also:
- Constant Field Values
 
 - 
DEFAULT_BYTESPERFIELDstatic final int DEFAULT_BYTESPERFIELD - See Also:
- Constant Field Values
 
 - 
DEFAULT_FIELDSPERROWstatic final int DEFAULT_FIELDSPERROW - See Also:
- Constant Field Values
 
 - 
DEFAULT_TABLECOUNTstatic final int DEFAULT_TABLECOUNT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
writeEmptyDatabaseboolean writeEmptyDatabase(String path) Write empty database- Parameters:
- path-
- Returns:
- true if successful
 
 - 
getLevelIStatsFileDatabaseLevel getLevel(int levelIndex) Get level- Parameters:
- levelIndex-
- Returns:
- level index
 
 - 
putLevelvoid putLevel(int levelIndex, com.wowza.wms.stats.database.file.StatsFileDatabaseLevel level)Put level- Parameters:
- levelIndex-
- level-
 
 - 
isValidSecondsTimeboolean 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
 
 - 
getStorageContextcom.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
 
 - 
getEpochlong getEpoch() Get the defined time epoch- Returns:
- epoch time
 
 - 
getVersionint getVersion() Get version- Returns:
- version
 
 - 
getFlagsint getFlags() Get the flags- Returns:
- flags
 
 - 
closevoid close() Close open database (will leak descriptors if not closed)
 
- 
 
-