Interface IStatsDatabaseManager


public interface IStatsDatabaseManager
  • Method Details

    • setStorageRoot

      void setStorageRoot(String storageRoot)
      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

      IStatsDatabase<?> 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
    • applicationGetDatabase

      IStatsDatabase<?> 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
    • 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

      void vhostDeleteDatabase(String vhost)
      Deletes the stats database used to store the specified vhost stats data
    • applicationDeleteDatabase

      void applicationDeleteDatabase(String vhost, String appName)
      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 -