@Singleton public class NetworkSettingManager extends java.lang.Object implements SubSystem
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 and Description |
---|
NetworkSettingManager(PlanFiles files,
PlanConfig config,
DBSystem dbSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.task.RunnableFactory runnableFactory,
com.djrapitops.plugin.logging.console.PluginLogger logger,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Performs disable actions for the subsystem
|
void |
enable()
Performs enable actions for the subsystem.
|
java.io.File[] |
getConfigFiles() |
static java.util.UUID |
getServerUUIDFromFilename(java.io.File file) |
void |
updateConfigInDB(java.io.File file,
java.util.UUID serverUUID) |
@Inject public NetworkSettingManager(PlanFiles files, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, com.djrapitops.plugin.task.RunnableFactory runnableFactory, com.djrapitops.plugin.logging.console.PluginLogger logger, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void enable() throws EnableException
SubSystem
enable
in interface SubSystem
EnableException
- If an error occurred during enable and it is fatal to the subsystem.public void disable()
SubSystem
public static java.util.UUID getServerUUIDFromFilename(java.io.File file)
public java.io.File[] getConfigFiles()
public void updateConfigInDB(java.io.File file, java.util.UUID serverUUID)