Interface IStatsFileDatabase
-
public interface IStatsFileDatabase
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATOMID_HEADER
static String
ATOMID_LEVEL
static String
ATOMID_LEVEL_DATATABLE
static String
ATOMID_LEVEL_HEADER
static String
ATOMID_LEVEL_TIME
static String
ATOMID_LEVEL_TIMEINDEX
static int
ATOMSIZE
static int
BYTESPERTIMECODE
static int
DEFAULT_BYTESPERFIELD
static int
DEFAULT_FIELDSPERROW
static int
DEFAULT_TABLECOUNT
static int
DEFAULT_TIMEINDEX_FACTOR
static long
EPOCH_SECS
static String
FILE_SIGNATURE
static int
FILE_VERSION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close open database (will leak descriptors if not closed)long
getEpoch()
Get the defined time epochint
getFlags()
Get the flagsIStatsFileDatabaseLevel
getLevel(int levelIndex)
Get levelcom.wowza.wms.stats.database.file.StatsFileDatabaseStorageContext
getStorageContext()
Get the storage context for open database.int
getVersion()
Get versionboolean
isValidSecondsTime(long timecode)
Returns true if valid timecode value (in seconds).void
putLevel(int levelIndex, com.wowza.wms.stats.database.file.StatsFileDatabaseLevel level)
Put levelboolean
writeEmptyDatabase(String path)
Write empty database
-
-
-
Field Detail
-
ATOMSIZE
static final int ATOMSIZE
- See Also:
- Constant Field Values
-
FILE_SIGNATURE
static final String FILE_SIGNATURE
- See Also:
- Constant Field Values
-
FILE_VERSION
static final int FILE_VERSION
- See Also:
- Constant Field Values
-
ATOMID_HEADER
static final String ATOMID_HEADER
- See Also:
- Constant Field Values
-
ATOMID_LEVEL
static final String ATOMID_LEVEL
- See Also:
- Constant Field Values
-
ATOMID_LEVEL_HEADER
static final String ATOMID_LEVEL_HEADER
- See Also:
- Constant Field Values
-
ATOMID_LEVEL_TIME
static final String ATOMID_LEVEL_TIME
- See Also:
- Constant Field Values
-
ATOMID_LEVEL_TIMEINDEX
static final String ATOMID_LEVEL_TIMEINDEX
- See Also:
- Constant Field Values
-
ATOMID_LEVEL_DATATABLE
static final String ATOMID_LEVEL_DATATABLE
- See Also:
- Constant Field Values
-
EPOCH_SECS
static final long EPOCH_SECS
- See Also:
- Constant Field Values
-
BYTESPERTIMECODE
static final int BYTESPERTIMECODE
- See Also:
- Constant Field Values
-
DEFAULT_TIMEINDEX_FACTOR
static final int DEFAULT_TIMEINDEX_FACTOR
- See Also:
- Constant Field Values
-
DEFAULT_BYTESPERFIELD
static final int DEFAULT_BYTESPERFIELD
- See Also:
- Constant Field Values
-
DEFAULT_FIELDSPERROW
static final int DEFAULT_FIELDSPERROW
- See Also:
- Constant Field Values
-
DEFAULT_TABLECOUNT
static final int DEFAULT_TABLECOUNT
- See Also:
- Constant Field Values
-
-
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)
-
-