Package com.atlassian.bamboo.persister
Interface Persister
-
- All Superinterfaces:
Startable
- All Known Implementing Classes:
FileBasedPersister
@Internal public interface Persister extends Startable
This interface defines how Bamboo build data can be persisted. Internal use only. PreferAdministrationConfigurationAccessor
AdministrationConfigurationPersister
orPlanManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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 MXLAdministrationConfiguration
getAdministrationConfiguration()
Deprecated.since 5.0 usegetAdministrationConfiguration(com.atlassian.bamboo.FeatureManager)
insteadAdministrationConfiguration
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.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 informationvoid
setPersisterOptions(PersisterOptions persisterOptions)
Let the UI update the persister
-
-
-
Method Detail
-
deleteBuildResults
void deleteBuildResults(PlanKey planKey, long buildNumber)
Remove a specific build result MXL- Parameters:
planKey
-buildNumber
- The build to remove
-
addBuildResults
void addBuildResults(PlanKey planKey, BuildResults buildResults)
Associate the given buildResults with the given build.- Parameters:
planKey
-buildResults
- The build results we are adding
-
getBuildResults
@Nullable @Nullable BuildResults getBuildResults(Key planKey, int buildNumber)
Get the Nth build for a given build.- Parameters:
planKey
-buildNumber
- The build's build number- Returns:
- The build result
-
saveAdministrationConfiguration
void saveAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)
Persist the given administration information- Parameters:
administrationConfiguration
- The data to persist
-
getAdministrationConfiguration
@Deprecated AdministrationConfiguration 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
void setPersisterOptions(PersisterOptions persisterOptions)
Let the UI update the persister- Parameters:
persisterOptions
-
-
getDataDirectoryFile
File getDataDirectoryFile()
-
getConfigurationDirectoryFile
File getConfigurationDirectoryFile()
Return the directory containing the administration.xml file.- Returns:
-
-