|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.config.database.MultiTenantDatabaseConfigurationLoader
public class MultiTenantDatabaseConfigurationLoader
Implements the DatabaseConfigurationLoader for MultiTenant mode - where the MultiTenantContext provides configuration storage for this stuff.
| Constructor Summary | |
|---|---|
MultiTenantDatabaseConfigurationLoader()
|
|
| Method Summary | |
|---|---|
boolean |
configExists()
Returns true only if the database configuration file already exists in the JIRA home directory. |
DatabaseConfig |
loadDatabaseConfiguration()
Reads and deserialises the DatabaseConfig from its permanent store. |
void |
saveDatabaseConfiguration(DatabaseConfig config)
Serialises and persists the given config to its permanent store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiTenantDatabaseConfigurationLoader()
| Method Detail |
|---|
public boolean configExists()
DatabaseConfigurationLoader
configExists in interface DatabaseConfigurationLoader
public DatabaseConfig loadDatabaseConfiguration()
throws RuntimeException,
RuntimeIOException
DatabaseConfigurationLoaderDatabaseConfig from its permanent store.
loadDatabaseConfiguration in interface DatabaseConfigurationLoaderRuntimeIOException - if the config cannot be loaded due to a missing file or bad permissions.
RuntimeException - if the config cannot be loaded for example due to a corrupt file format.
public void saveDatabaseConfiguration(DatabaseConfig config)
throws RuntimeIOException
DatabaseConfigurationLoader
saveDatabaseConfiguration in interface DatabaseConfigurationLoaderconfig - the config to store.
RuntimeIOException - if there was some IO problem saving.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||