com.atlassian.bamboo.persister
Interface Persister

All Superinterfaces:
Startable
All Known Implementing Classes:
FileBasedPersister

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

@Deprecated
public interface Persister
extends Startable

This interface defines how Bamboo build data can be persisted.


Method Summary
 void addBuildResults(ImmutableBuildable buildable, BuildResults buildResults)
          Deprecated. since 2.7
 void clear()
          Deprecated. Clears all interal caches the persister may have
 void deleteBuildResults(ImmutableBuildable buildable, long buildNumber)
          Deprecated. since 2.7
 AdministrationConfiguration getAdministrationConfiguration()
          Deprecated. since 5.0 use $getAdministrationConfiguration(com.atlassian.bamboo.FeatureManager) instead
 AdministrationConfiguration getAdministrationConfiguration(FeatureManager featureManager)
          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
 
Methods inherited from interface com.atlassian.bamboo.container.Startable
isActive, start, stop
 

Method Detail

deleteBuildResults

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

Remove a specific build result MXL

Parameters:
buildable -
buildNumber - The build to remove

addBuildResults

@Deprecated
void addBuildResults(ImmutableBuildable 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

@Deprecated
AdministrationConfiguration getAdministrationConfiguration()
Deprecated. since 5.0 use $getAdministrationConfiguration(com.atlassian.bamboo.FeatureManager) instead

Reload the persisted admin configuration data

Returns:
The data

getAdministrationConfiguration

AdministrationConfiguration getAdministrationConfiguration(@Nullable
                                                           FeatureManager featureManager)
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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.