Package com.atlassian.bamboo.persister
Interface Persister
- All Superinterfaces:
Startable
- All Known Implementing Classes:
FileBasedPersister
This interface defines how Bamboo build data can be persisted.
Internal use only. Prefer
AdministrationConfigurationAccessor
AdministrationConfigurationPersister
or PlanManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuildResults
(PlanKey planKey, BuildResults buildResults) Associate the given buildResults with the given build.void
clear()
Clears all interal caches the persister may havevoid
deleteBuildResults
(PlanKey planKey, long buildNumber) Remove a specific build result MXLDeprecated.getAdministrationConfiguration
(@Nullable FeatureManager featureManager) Reload the persisted admin configuration data@Nullable BuildResults
getBuildResults
(Key planKey, int buildNumber) Get the Nth build for a given build.Return the directory containing the administration.xml file.boolean
Has the persistent data already been initialised.void
reload()
Restart with the latest configurations...void
Reloads the administration configuration from the xml.void
saveAdministrationConfiguration
(AdministrationConfiguration administrationConfiguration) Persist the given administration informationvoid
setPersisterOptions
(PersisterOptions persisterOptions) Let the UI update the persister
-
Method Details
-
deleteBuildResults
Remove a specific build result MXL- Parameters:
planKey
-buildNumber
- The build to remove
-
addBuildResults
Associate the given buildResults with the given build.- Parameters:
planKey
-buildResults
- The build results we are adding
-
getBuildResults
Get the Nth build for a given build.- Parameters:
planKey
-buildNumber
- The build's build number- Returns:
- The build result
-
saveAdministrationConfiguration
Persist the given administration information- Parameters:
administrationConfiguration
- The data to persist
-
getAdministrationConfiguration
Deprecated.since 5.0 usegetAdministrationConfiguration(com.atlassian.bamboo.FeatureManager)
insteadReload the persisted admin configuration data- Returns:
- The data
-
getAdministrationConfiguration
AdministrationConfiguration getAdministrationConfiguration(@Nullable @Nullable FeatureManager featureManager) Reload the persisted admin configuration data- Returns:
- The data
-
reloadAdministrationConfiguration
void reloadAdministrationConfiguration()Reloads the administration configuration from the xml. -
isInitialised
boolean isInitialised()Has the persistent data already been initialised.- Returns:
- true if the persister has been initialed with valid configuration data
-
reload
void reload()Restart with the latest configurations... -
clear
void clear()Clears all interal caches the persister may have -
setPersisterOptions
Let the UI update the persister- Parameters:
persisterOptions
-
-
getDataDirectoryFile
File getDataDirectoryFile() -
getConfigurationDirectoryFile
File getConfigurationDirectoryFile()Return the directory containing the administration.xml file.- Returns:
-
getAdministrationConfiguration(com.atlassian.bamboo.FeatureManager)
instead