Package com.wowza.wms.stats.database
Interface IStatsDatabaseManager
public interface IStatsDatabaseManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applicationDeleteDatabase
(String vhost, String appName) Deletes the stats database used to store the specified application stats dataapplicationGetDatabase
(String vhost, String appName) Gets the IStatsDB database reference for use in reading and writing to the specified application stats datavoid
Checks the permissions on the storage root provided.boolean
Indicates if the DB manager can read/write to the supplied storage root.void
Deletes the stats database used to store the machine stats dataGets the IStatsDB database reference for use in reading and writing to the machine stats datavoid
Deletes the stats database used to store the server stats dataGets the IStatsDB database reference for use in reading and writing to the server stats datavoid
setDebugLogging
(boolean enable) sets debug logging within the DB manager as well as any Stats Databases opened/createdvoid
setStorageRoot
(String storageRoot) Sets the storage root for the stats database filesvoid
vhostDeleteDatabase
(String vhost) Deletes the stats database used to store the specified vhost stats datavhostGetDatabase
(String vhost) Gets the IStatsDB database reference for use in reading and writing to the specified vhost stats data
-
Method Details
-
setStorageRoot
Sets the storage root for the stats database files- Parameters:
storageRoot
- absolute or relative paths accepted
-
checkStorage
void checkStorage()Checks the permissions on the storage root provided. Call only if you suspect permissions has changed. -
isStorageAvailable
boolean isStorageAvailable()Indicates if the DB manager can read/write to the supplied storage root.- Returns:
- returns false if unable to access/create the provided storage root otherwise true.
-
serverGetDatabase
IStatsDatabase<?> serverGetDatabase()Gets the IStatsDB database reference for use in reading and writing to the server stats data- Returns:
- returns null if unable to find/create the server stats database
-
machineGetDatabase
IStatsDatabase<?> machineGetDatabase()Gets the IStatsDB database reference for use in reading and writing to the machine stats data- Returns:
- returns null if unable to find/create the machine stats database
-
vhostGetDatabase
Gets the IStatsDB database reference for use in reading and writing to the specified vhost stats data- Returns:
- returns null if unable to find/create the specified vhost stats database
-
applicationGetDatabase
Gets the IStatsDB database reference for use in reading and writing to the specified application stats data- Returns:
- returns null if unable to find/create the specified application stats database
-
serverDeleteDatabase
void serverDeleteDatabase()Deletes the stats database used to store the server stats data -
machineDeleteDatabase
void machineDeleteDatabase()Deletes the stats database used to store the machine stats data -
vhostDeleteDatabase
Deletes the stats database used to store the specified vhost stats data -
applicationDeleteDatabase
Deletes the stats database used to store the specified application stats data -
setDebugLogging
void setDebugLogging(boolean enable) sets debug logging within the DB manager as well as any Stats Databases opened/created- Parameters:
enable
-
-