public interface IStatsDatabase<T extends com.wowza.wms.stats.entry.StatsEntry>
| Modifier and Type | Field and Description |
|---|---|
static int |
APPLICATION_FIELD_COUNT |
static int |
FIELD_ALL |
static int |
FIELD_ALL_CONN |
static int |
FIELD_BW_IN |
static int |
FIELD_BW_OUT |
static int |
FIELD_CPU |
static int |
FIELD_DASH_CONN |
static int |
FIELD_DISK |
static int |
FIELD_HDS_CONN |
static int |
FIELD_HEAP_MEMORY |
static int |
FIELD_HLS_CONN |
static int |
FIELD_INVALID |
static int |
FIELD_MEM |
static int |
FIELD_RTMP_CONN |
static int |
FIELD_RTSP_CONN |
static int |
FIELD_SMOOTH_CONN |
static int |
FIELD_WEBM_CONN |
static int |
FIELD_WEBRTC_CONN |
static int |
LEVEL_COUNT |
static int |
LEVEL_DAYS |
static int |
LEVEL_HOURS |
static int |
LEVEL_INVALID |
static int |
LEVEL_MINUTES |
static int |
LEVEL_SECONDS |
static int |
MACHINE_FIELD_COUNT |
static int |
SERVER_FIELD_COUNT |
static int |
TABLE_AVE |
static int |
TABLE_COUNT |
static int |
TABLE_INVALID |
static int |
TABLE_MAX |
static int |
TABLE_MIN |
static int |
TABLE_SECONDS |
static int |
VHOST_FIELD_COUNT |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the database for reading and writing
|
boolean |
create(String filename,
int fieldCount)
Creates an empty database for use
|
boolean |
delete(int level,
org.joda.time.DateTime datetime)
Deletes all entries in the level from the date time provided (inclusive) to the end of the table
|
void |
dumpDebug()
dumps debug data for the database.
|
String |
getFilename()
Gets the filename of the file on disk to be used
|
int |
getRefCount()
Debug only.
|
boolean |
open()
Opens the database for reading/writing
|
java.util.List<T> |
read(int level,
int table,
org.joda.time.DateTime start,
org.joda.time.DateTime end)
Reads the Stats Entries from the database
|
void |
setDebugLogging(boolean enable)
Enables/disables debug logging on within the database methods
|
void |
setFilename(String filename)
Sets the filename of the file on disk to be used
|
boolean |
write(int level,
com.wowza.wms.stats.entry.StatsEntry[] data)
Writes the provided stats entries to the database.
|
static final int APPLICATION_FIELD_COUNT
static final int FIELD_ALL
static final int FIELD_ALL_CONN
static final int FIELD_BW_IN
static final int FIELD_BW_OUT
static final int FIELD_CPU
static final int FIELD_DASH_CONN
static final int FIELD_DISK
static final int FIELD_HDS_CONN
static final int FIELD_HEAP_MEMORY
static final int FIELD_HLS_CONN
static final int FIELD_INVALID
static final int FIELD_MEM
static final int FIELD_RTMP_CONN
static final int FIELD_RTSP_CONN
static final int FIELD_SMOOTH_CONN
static final int FIELD_WEBM_CONN
static final int FIELD_WEBRTC_CONN
static final int LEVEL_COUNT
static final int LEVEL_DAYS
static final int LEVEL_HOURS
static final int LEVEL_INVALID
static final int LEVEL_MINUTES
static final int LEVEL_SECONDS
static final int MACHINE_FIELD_COUNT
static final int SERVER_FIELD_COUNT
static final int TABLE_AVE
static final int TABLE_COUNT
static final int TABLE_INVALID
static final int TABLE_MAX
static final int TABLE_MIN
static final int TABLE_SECONDS
static final int VHOST_FIELD_COUNT
void close()
boolean create(String filename,
int fieldCount)
filename - to be used.fieldCount - number of fields being storedboolean delete(int level,
org.joda.time.DateTime datetime)
level - to delete fromdatetime - void dumpDebug()
String getFilename()
int getRefCount()
boolean open()
java.util.List<T> read(int level, int table, org.joda.time.DateTime start, org.joda.time.DateTime end)
level - to read fromtable - to read fromstart - start date and time (inclusive) to start reading fromend - end date and time (inclusive) to stop reading from. Okay if null, reads to end of table then.void setDebugLogging(boolean enable)
enable - void setFilename(String filename)
filename - boolean write(int level,
com.wowza.wms.stats.entry.StatsEntry[] data)
level - data -