Class DBSystem

    • Field Detail

      • locale

        protected final Locale locale
      • logger

        protected final net.playeranalytics.plugin.server.PluginLogger logger
      • databases

        protected final java.util.Set<Database> databases
    • Method Detail

      • getActiveDatabaseByName

        public Database getActiveDatabaseByName​(java.lang.String dbName)
      • getActiveDatabaseByType

        public Database getActiveDatabaseByType​(DBType type)
      • getDatabases

        public java.util.Set<Database> getDatabases()
      • disable

        public void disable()
        Description copied from interface: SubSystem
        Performs disable actions for the subsystem
        Specified by:
        disable in interface SubSystem
      • getDatabase

        public Database getDatabase()
      • enable

        public void enable()
        Description copied from interface: SubSystem
        Performs enable actions for the subsystem.
        Specified by:
        enable in interface SubSystem
      • setActiveDatabase

        public void setActiveDatabase​(Database db)