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. Prefer AdministrationConfigurationAccessor AdministrationConfigurationPersister or PlanManager
  • Method Details

    • 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()
      Reload 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: