Package pl.edu.icm.unity.engine.api
Interface ServerManagement
public interface ServerManagement
Provides access to general maintenance operations.
- Author:
- K. Benedyczak
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionexportDb
(pl.edu.icm.unity.base.json.dump.DBDumpContentElements content) Exports database contents to a JSON file.void
Imports the whole database from a given JSON fileloadConfigurationFile
(String path) Load configuration filevoid
Reload main configuration file if changedvoid
Removes the whole contents of the database and initializes it from scratch.
-
Field Details
-
DB_DUMP_DIRECTORY
- See Also:
-
DB_IMPORT_DIRECTORY
- See Also:
-
-
Method Details
-
resetDatabase
void resetDatabase() throws pl.edu.icm.unity.base.exceptions.EngineExceptionRemoves the whole contents of the database and initializes it from scratch.- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
exportDb
File exportDb(pl.edu.icm.unity.base.json.dump.DBDumpContentElements content) throws pl.edu.icm.unity.base.exceptions.EngineException Exports database contents to a JSON file.- Parameters:
content
- dump content type- Returns:
- the file reference
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
importDb
Imports the whole database from a given JSON file- Parameters:
from
- file to load data from- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
reloadConfig
void reloadConfig() throws pl.edu.icm.unity.base.exceptions.EngineExceptionReload main configuration file if changed- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
loadConfigurationFile
Load configuration file- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-