com.atlassian.bamboo.persister
Interface Persister

All Superinterfaces:
Startable
All Known Implementing Classes:
FileBasedPersister

Deprecated. since 2.0 This is an old interface. Prefer AdministrationConfigurationManager or PlanManager

@Deprecated
public interface Persister
extends Startable

This interface defines how Bamboo build data can be persisted.


Method Summary
 void addBuildResults(Buildable buildable, BuildResults buildResults)
          Deprecated. since 2.7
 void clear()
          Deprecated. Clears all interal caches the persister may have
 void deleteBuildResults(Buildable buildable, long buildNumber)
          Deprecated. since 2.7
 AdministrationConfiguration getAdministrationConfiguration()
          Deprecated. Reload the persisted admin configuration data
 BuildResults getBuildResults(java.lang.String planKey, java.lang.Integer buildNumber)
          Deprecated. Get the Nth build for a given build.
 java.io.File getConfigurationDirectoryFile()
          Deprecated. Return the directory containing the administration.xml file.
 java.io.File getDataDirectoryFile()
          Deprecated.  
 boolean isInitialised()
          Deprecated. Has the persistent data already been initialised.
 void reload()
          Deprecated. Restart with the latest configurations...
 void reloadAdministrationConfiguration()
          Deprecated. Reloads the administration configuration from the xml.
 void saveAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)
          Deprecated. Perist the given administration information
 void setPersisterOptions(PersisterOptions persisterOptions)
          Deprecated. Let the UI update the persister
 void updateBuildResults(Build build, BuildResults buildResults)
          Deprecated.  
 
Methods inherited from interface com.atlassian.bamboo.container.Startable
isActive, start, stop
 

Method Detail

updateBuildResults

void updateBuildResults(Build build,
                        BuildResults buildResults)
Deprecated. 

deleteBuildResults

@Deprecated
void deleteBuildResults(Buildable buildable,
                                   long buildNumber)
Deprecated. since 2.7

Remove a specific build result MXL

Parameters:
buildable -
buildNumber - The build to remove

addBuildResults

@Deprecated
void addBuildResults(Buildable buildable,
                                BuildResults buildResults)
Deprecated. since 2.7

Associate the given buildResults with the given build.

Parameters:
buildable -
buildResults - The build results we are adding

getBuildResults

@Nullable
BuildResults getBuildResults(java.lang.String planKey,
                                      java.lang.Integer buildNumber)
Deprecated. 
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)
Deprecated. 
Perist the given administration information

Parameters:
administrationConfiguration - The data to persist

getAdministrationConfiguration

AdministrationConfiguration getAdministrationConfiguration()
Deprecated. 
Reload the persisted admin configuration data

Returns:
The data

reloadAdministrationConfiguration

void reloadAdministrationConfiguration()
Deprecated. 
Reloads the administration configuration from the xml.


isInitialised

boolean isInitialised()
Deprecated. 
Has the persistent data already been initialised.

Returns:
true if the persister has been initialed with valid configuration data

reload

void reload()
Deprecated. 
Restart with the latest configurations...


clear

void clear()
Deprecated. 
Clears all interal caches the persister may have


setPersisterOptions

void setPersisterOptions(PersisterOptions persisterOptions)
Deprecated. 
Let the UI update the persister

Parameters:
persisterOptions -

getDataDirectoryFile

java.io.File getDataDirectoryFile()
Deprecated. 

getConfigurationDirectoryFile

java.io.File getConfigurationDirectoryFile()
Deprecated. 
Return the directory containing the administration.xml file.

Returns:


Copyright © 2011 Atlassian. All Rights Reserved.