java.lang.Object | |
↳ | com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl |
A threadsafe implementation which reads and writes configuration for the database using the given
DatabaseConfigurationLoader
. Caches configuration.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialises the first connection to the database and causes each enqueued runnable that registered with
doNowOrWhenDatabaseActivated(Runnable, String) to be run. | |||||||||||
Creates a new dbconfig.xml usinfg the values in entityengine.xml if there are any
Allows for upgrade from pre 5.0 instances
| |||||||||||
Requests that work that needs to read from and write to the database be done.
| |||||||||||
Requests that work dependent on the database configuration be done.
| |||||||||||
Gets the current database configuration.
| |||||||||||
Provides the
DatabaseConfig that represents the embedded JIRA database. | |||||||||||
Returns true only if the database configuration is available.
| |||||||||||
Persists the given config as JIRA's database configuration.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.config.database.DatabaseConfigurationManager
|
Initialises the first connection to the database and causes each enqueued runnable that registered with doNowOrWhenDatabaseActivated(Runnable, String)
to be run. Should only be run once per application boot.
Creates a new dbconfig.xml usinfg the values in entityengine.xml if there are any Allows for upgrade from pre 5.0 instances
Requests that work that needs to read from and write to the database be done. If the database is already active,
the runnable will be run now in the calling thread. If not, it will be enqueued until the database configuration
is provided and the database is activated via activateDatabase()
. Then it will be done in the thread
that calls activateDatabase()
.
runnable | The work that must be done if or when the database is activated. |
---|---|
desc | A description (for logging purposes) of the work. |
Requests that work dependent on the database configuration be done. If the database is already configured, the
runnable will be run now in the calling thread. If not, it will be enqueued until the database configuration is
provided but before the database is actually activated via activateDatabase()
. Then it will be done in
the thread that calls activateDatabase()
.
runnable | The work that must be done if or when the database is configured. |
---|---|
desc | A description (for logging purposes) of the work. |
Gets the current database configuration.
Provides the DatabaseConfig
that represents the embedded JIRA database. This does not imply that this
config is current or that there is any current configuration for the JIRA database.
Returns true only if the database configuration is available.
Persists the given config as JIRA's database configuration. This must only be done once.
databaseConfig | the config to use for JIRA's database connection. |
---|