@Internal public interface Persister extends Startable
AdministrationConfigurationAccessor
AdministrationConfigurationPersister
or PlanManager
Modifier and Type | Method and Description |
---|---|
void |
addBuildResults(PlanKey planKey,
BuildResults buildResults)
Associate the given buildResults with the given build.
|
void |
clear()
Clears all interal caches the persister may have
|
void |
deleteBuildResults(PlanKey planKey,
long buildNumber)
Remove a specific build result MXL
|
AdministrationConfiguration |
getAdministrationConfiguration()
Deprecated.
since 5.0 use
getAdministrationConfiguration(com.atlassian.bamboo.FeatureManager) instead |
AdministrationConfiguration |
getAdministrationConfiguration(FeatureManager featureManager)
Reload the persisted admin configuration data
|
BuildResults |
getBuildResults(Key planKey,
int buildNumber)
Get the Nth build for a given build.
|
File |
getConfigurationDirectoryFile()
Return the directory containing the administration.xml file.
|
File |
getDataDirectoryFile() |
boolean |
isInitialised()
Has the persistent data already been initialised.
|
void |
reload()
Restart with the latest configurations...
|
void |
reloadAdministrationConfiguration()
Reloads the administration configuration from the xml.
|
void |
saveAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)
Persist the given administration information
|
void |
setPersisterOptions(PersisterOptions persisterOptions)
Let the UI update the persister
|
void deleteBuildResults(PlanKey planKey, long buildNumber)
planKey
- buildNumber
- The build to removevoid addBuildResults(PlanKey planKey, BuildResults buildResults)
planKey
- buildResults
- The build results we are adding@Nullable BuildResults getBuildResults(Key planKey, int buildNumber)
planKey
- buildNumber
- The build's build numbervoid saveAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)
administrationConfiguration
- The data to persist@Deprecated AdministrationConfiguration getAdministrationConfiguration()
getAdministrationConfiguration(com.atlassian.bamboo.FeatureManager)
insteadAdministrationConfiguration getAdministrationConfiguration(@Nullable FeatureManager featureManager)
void reloadAdministrationConfiguration()
boolean isInitialised()
void reload()
void clear()
void setPersisterOptions(PersisterOptions persisterOptions)
persisterOptions
- File getDataDirectoryFile()
File getConfigurationDirectoryFile()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.