Class NetworkSettingManager

  • All Implemented Interfaces:
    SubSystem

    @Singleton
    public class NetworkSettingManager
    extends java.lang.Object
    implements SubSystem
    In charge of updating network-server configs.

    Performs the following tasks related to network configs: - File modification watching related to server configs - Database update operations related to server configs - File update operations from database related to server configs

    • Constructor Detail

      • NetworkSettingManager

        @Inject
        public NetworkSettingManager​(PlanFiles files,
                                     PlanConfig config,
                                     DBSystem dbSystem,
                                     ServerInfo serverInfo,
                                     net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory,
                                     net.playeranalytics.plugin.server.PluginLogger logger,
                                     ErrorLogger errorLogger)
    • Method Detail

      • enable

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

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

        public static java.util.UUID getServerUUIDFromFilename​(java.io.File file)
      • getConfigFiles

        public java.io.File[] getConfigFiles()
      • updateConfigInDB

        public void updateConfigInDB​(java.io.File file,
                                     java.util.UUID serverUUID)