Package com.wowza.wms.stats.database
Interface IStatsDatabaseManager
- 
 public interface IStatsDatabaseManager
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplicationDeleteDatabase(String vhost, String appName)Deletes the stats database used to store the specified application stats dataIStatsDatabase<?>applicationGetDatabase(String vhost, String appName)Gets the IStatsDB database reference for use in reading and writing to the specified application stats datavoidcheckStorage()Checks the permissions on the storage root provided.booleanisStorageAvailable()Indicates if the DB manager can read/write to the supplied storage root.voidmachineDeleteDatabase()Deletes the stats database used to store the machine stats dataIStatsDatabase<?>machineGetDatabase()Gets the IStatsDB database reference for use in reading and writing to the machine stats datavoidserverDeleteDatabase()Deletes the stats database used to store the server stats dataIStatsDatabase<?>serverGetDatabase()Gets the IStatsDB database reference for use in reading and writing to the server stats datavoidsetDebugLogging(boolean enable)sets debug logging within the DB manager as well as any Stats Databases opened/createdvoidsetStorageRoot(String storageRoot)Sets the storage root for the stats database filesvoidvhostDeleteDatabase(String vhost)Deletes the stats database used to store the specified vhost stats dataIStatsDatabase<?>vhostGetDatabase(String vhost)Gets the IStatsDB database reference for use in reading and writing to the specified vhost stats data
 
- 
- 
- 
Method Detail- 
setStorageRootvoid setStorageRoot(String storageRoot) Sets the storage root for the stats database files- Parameters:
- storageRoot- absolute or relative paths accepted
 
 - 
checkStoragevoid checkStorage() Checks the permissions on the storage root provided. Call only if you suspect permissions has changed.
 - 
isStorageAvailableboolean 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.
 
 - 
serverGetDatabaseIStatsDatabase<?> 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
 
 - 
machineGetDatabaseIStatsDatabase<?> 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
 
 - 
vhostGetDatabaseIStatsDatabase<?> vhostGetDatabase(String vhost) 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
 
 - 
applicationGetDatabaseIStatsDatabase<?> applicationGetDatabase(String vhost, String appName) 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
 
 - 
serverDeleteDatabasevoid serverDeleteDatabase() Deletes the stats database used to store the server stats data
 - 
machineDeleteDatabasevoid machineDeleteDatabase() Deletes the stats database used to store the machine stats data
 - 
vhostDeleteDatabasevoid vhostDeleteDatabase(String vhost) Deletes the stats database used to store the specified vhost stats data
 - 
applicationDeleteDatabasevoid applicationDeleteDatabase(String vhost, String appName)Deletes the stats database used to store the specified application stats data
 - 
setDebugLoggingvoid setDebugLogging(boolean enable) sets debug logging within the DB manager as well as any Stats Databases opened/created- Parameters:
- enable-
 
 
- 
 
-