public interface ServerManagement
Modifier and Type | Field and Description |
---|---|
static String |
DB_DUMP_DIRECTORY |
static String |
DB_IMPORT_DIRECTORY |
Modifier and Type | Method and Description |
---|---|
File |
exportDb()
Exports the whole database contents to a JSON file.
|
void |
importDb(File from)
Imports the whole database from a given JSON file
|
String |
loadConfigurationFile(String path)
Load configuration file
|
void |
reloadConfig()
Reload main configuration file if changed
|
void |
resetDatabase()
Removes the whole contents of the database and initializes it from scratch.
|
static final String DB_DUMP_DIRECTORY
static final String DB_IMPORT_DIRECTORY
void resetDatabase() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
File exportDb() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
void importDb(File from) throws pl.edu.icm.unity.exceptions.EngineException
from
- file to load data frompl.edu.icm.unity.exceptions.EngineException
void reloadConfig() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
Copyright © 2018 Unity. All rights reserved.