com.atlassian.bamboo.results
Class BuildResultsImpl

java.lang.Object
  extended by com.atlassian.bamboo.results.BuildResultsImpl
All Implemented Interfaces:
BuildResults

Deprecated. since 2.6 use BuildResultsSummary instead. Only use if test results are required.

@Deprecated
public class BuildResultsImpl
extends java.lang.Object
implements BuildResults

This contains a build's build results.


Constructor Summary
BuildResultsImpl()
          Deprecated.  
BuildResultsImpl(java.lang.String buildKey, BuildState state, java.util.List<java.lang.String> buildErrors, java.util.Collection<Commit> commits, ReasonForBuild reasonForBuild)
          Deprecated. Create the build results
 
Method Summary
 void addBuildErrors(java.util.List<java.lang.String> errorMessages)
          Deprecated. Obtain the changes that triggered the build
 void clearBuildErrors()
          Deprecated.  
 BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
          Deprecated.  
 boolean equals(java.lang.Object o)
          Deprecated.  
 Build getBuild()
          Deprecated.  
 BuildChanges getBuildChanges()
          Deprecated.  
 java.util.Date getBuildCompletedTimeStamp()
          Deprecated.  
 long getBuildDurationInMilliseconds()
          Deprecated. How long did the build take?
 java.util.List<java.lang.String> getBuildErrors()
          Deprecated. What build errors do we have?
 java.lang.String getBuildKey()
          Deprecated. Which build are these results for?
 BuildManager getBuildManager()
          Deprecated.  
 int getBuildNumber()
          Deprecated. Which build generated these results
 java.lang.String getBuildResultsKey()
          Deprecated.  
 ExtendedBuildResultsSummary getBuildResultsSummary()
          Deprecated. Find the Build Results Summary object related to this build result summary
 BuildResultsSummaryManager getBuildResultsSummaryManager()
          Deprecated.  
 int getBuildReturnCode()
          Deprecated.  
 BuildState getBuildState()
          Deprecated. What was the status of the build?
 long getBuildTime()
          Deprecated.  
 java.util.Set<Commit> getCommits()
          Deprecated.  
 java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
          Deprecated. Returns a map of string keyed strings for storing arbitrary data
 java.util.List<TestResults> getFailedTestResults()
          Deprecated.  
 java.lang.String getFullKey()
          Deprecated.  
 java.util.Map<java.lang.String,Artifact> getMyArtifacts()
          Deprecated. 
 BuildResults getNextBuildResults()
          Deprecated.  
 java.lang.String getPrettyBuildTime()
          Deprecated.  
 BuildResults getPreviousBuildResults()
          Deprecated.  
 ReasonForBuild getReasonForBuild()
          Deprecated.  
static ReasonForBuild getReasonForBuild(BuildContext buildContext)
          Deprecated.  
 java.util.Date getStartTime()
          Deprecated. What was the date and time of the build?
 org.apache.commons.lang.time.StopWatch getStopWatch()
          Deprecated.  
 java.util.List<TestResults> getSuccessfulTestResults()
          Deprecated.  
 TestResultsSummary getTestResults()
          Deprecated. 
 java.util.Set<Author> getUniqueAuthors()
          Deprecated. Gets a the unique ChangeAuthors from the getCommits().
 int hashCode()
          Deprecated.  
 boolean isCurrentlyQueuedOnly()
          Deprecated.  
 void setBuildChanges(BuildChanges buildChanges)
          Deprecated.  
 void setBuildErrors(java.util.List<java.lang.String> buildErrors)
          Deprecated.  
 void setBuildKey(java.lang.String buildKey)
          Deprecated.  
 void setBuildManager(BuildManager buildManager)
          Deprecated.  
 void setBuildNumber(int buildNumber)
          Deprecated. Set the build number associated with these results
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
          Deprecated.  
 void setBuildReturnCode(int buildReturnCode)
          Deprecated.  
 void setBuildState(BuildState buildState)
          Deprecated. Set the build state
 void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
          Deprecated.  
 void setDurationInMilliseconds(long buildDuration)
          Deprecated.  
 void setFailedTestResults(java.util.List<TestResults> myFailedTestResults)
          Deprecated. 
 void setMyArtifacts(java.util.Map<java.lang.String,Artifact> myArtifacts)
          Deprecated. 
 void setReasonForBuild(ReasonForBuild reasonForBuild)
          Deprecated.  
 void setStartTime(java.util.Date date)
          Deprecated. Specify when the build occurred.
 void setSuccessfulTestResults(java.util.List<TestResults> mySuccessfulTestResults)
          Deprecated.  
 void startTimer()
          Deprecated.  
 void stopTimer()
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildResultsImpl

public BuildResultsImpl()
Deprecated. 

BuildResultsImpl

public BuildResultsImpl(java.lang.String buildKey,
                        BuildState state,
                        java.util.List<java.lang.String> buildErrors,
                        java.util.Collection<Commit> commits,
                        ReasonForBuild reasonForBuild)
Deprecated. 
Create the build results

Parameters:
buildKey - The unique key of the build
state - Was thebuild successful?
buildErrors - Errors generated by the builder
commits - The changes that triggered the build
reasonForBuild - Why are we building the build?
Method Detail

getBuild

public Build getBuild()
Deprecated. 
Specified by:
getBuild in interface BuildResults

getBuildChanges

public BuildChanges getBuildChanges()
Deprecated. 
Specified by:
getBuildChanges in interface BuildResults

setBuildChanges

public void setBuildChanges(BuildChanges buildChanges)
Deprecated. 
Specified by:
setBuildChanges in interface BuildResults

getBuildKey

public java.lang.String getBuildKey()
Deprecated. 
Which build are these results for?

Specified by:
getBuildKey in interface BuildResults
Returns:
The unique key of the build

getFullKey

public java.lang.String getFullKey()
Deprecated. 
Specified by:
getFullKey in interface BuildResults

getBuildResultsSummary

public ExtendedBuildResultsSummary getBuildResultsSummary()
Deprecated. 
Find the Build Results Summary object related to this build result summary

Specified by:
getBuildResultsSummary in interface BuildResults
Returns:

getBuildResultsSummaryManager

public BuildResultsSummaryManager getBuildResultsSummaryManager()
Deprecated. 

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
Deprecated. 

setStartTime

public void setStartTime(java.util.Date date)
Deprecated. 
Specify when the build occurred.

Specified by:
setStartTime in interface BuildResults
Parameters:
date - The date and time of the build

getStartTime

public java.util.Date getStartTime()
Deprecated. 
What was the date and time of the build?

Specified by:
getStartTime in interface BuildResults
Returns:
The build time stamp

getBuildCompletedTimeStamp

public java.util.Date getBuildCompletedTimeStamp()
Deprecated. 
Specified by:
getBuildCompletedTimeStamp in interface BuildResults

setDurationInMilliseconds

public void setDurationInMilliseconds(long buildDuration)
Deprecated. 
Specified by:
setDurationInMilliseconds in interface BuildResults

getBuildDurationInMilliseconds

public long getBuildDurationInMilliseconds()
Deprecated. 
How long did the build take?

Specified by:
getBuildDurationInMilliseconds in interface BuildResults
Returns:
The time in milliseconds

getBuildState

public BuildState getBuildState()
Deprecated. 
What was the status of the build?

Specified by:
getBuildState in interface BuildResults
Returns:
Build status

setBuildState

public void setBuildState(@NotNull
                          BuildState buildState)
Deprecated. 
Set the build state

Specified by:
setBuildState in interface BuildResults
Parameters:
buildState - The pass/fail state of the build

addBuildErrors

public void addBuildErrors(java.util.List<java.lang.String> errorMessages)
Deprecated. 
Obtain the changes that triggered the build

Specified by:
addBuildErrors in interface BuildResults

getBuildErrors

public java.util.List<java.lang.String> getBuildErrors()
Deprecated. 
What build errors do we have?

Specified by:
getBuildErrors in interface BuildResults
Returns:
The errors.

setBuildErrors

public void setBuildErrors(java.util.List<java.lang.String> buildErrors)
Deprecated. 

cloneAsBuildResults

public BuildResults cloneAsBuildResults(BuildContext buildContext,
                                        ReasonForBuild reasonForBuild)
Deprecated. 
Specified by:
cloneAsBuildResults in interface BuildResults

setBuildNumber

public void setBuildNumber(int buildNumber)
Deprecated. 
Set the build number associated with these results

Specified by:
setBuildNumber in interface BuildResults
Parameters:
buildNumber - The build number

getBuildNumber

public int getBuildNumber()
Deprecated. 
Which build generated these results

Specified by:
getBuildNumber in interface BuildResults
Returns:
The build number

getReasonForBuild

public ReasonForBuild getReasonForBuild()
Deprecated. 
Specified by:
getReasonForBuild in interface BuildResults

setReasonForBuild

public void setReasonForBuild(ReasonForBuild reasonForBuild)
Deprecated. 
Specified by:
setReasonForBuild in interface BuildResults

getCustomBuildData

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
Deprecated. 
Description copied from interface: BuildResults
Returns a map of string keyed strings for storing arbitrary data

Specified by:
getCustomBuildData in interface BuildResults
Returns:

setCustomBuildData

public void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
Deprecated. 
Specified by:
setCustomBuildData in interface BuildResults

equals

public boolean equals(java.lang.Object o)
Deprecated. 
Specified by:
equals in interface BuildResults
Overrides:
equals in class java.lang.Object

getBuildReturnCode

public int getBuildReturnCode()
Deprecated. 
Specified by:
getBuildReturnCode in interface BuildResults

setBuildReturnCode

public void setBuildReturnCode(int buildReturnCode)
Deprecated. 
Specified by:
setBuildReturnCode in interface BuildResults

getUniqueAuthors

public java.util.Set<Author> getUniqueAuthors()
Deprecated. 
Gets a the unique ChangeAuthors from the getCommits().

Specified by:
getUniqueAuthors in interface BuildResults
Returns:
Set of ChangeAuthor. Empty set if no changes

getCommits

public java.util.Set<Commit> getCommits()
Deprecated. 
Specified by:
getCommits in interface BuildResults

getPreviousBuildResults

public BuildResults getPreviousBuildResults()
Deprecated. 
Specified by:
getPreviousBuildResults in interface BuildResults

getNextBuildResults

public BuildResults getNextBuildResults()
Deprecated. 
Specified by:
getNextBuildResults in interface BuildResults

setBuildKey

public void setBuildKey(java.lang.String buildKey)
Deprecated. 
Specified by:
setBuildKey in interface BuildResults

getTestResults

@Deprecated
public TestResultsSummary getTestResults()
Deprecated. 

Specified by:
getTestResults in interface BuildResults

setSuccessfulTestResults

public void setSuccessfulTestResults(java.util.List<TestResults> mySuccessfulTestResults)
Deprecated. 
Specified by:
setSuccessfulTestResults in interface BuildResults

getSuccessfulTestResults

public java.util.List<TestResults> getSuccessfulTestResults()
Deprecated. 
Specified by:
getSuccessfulTestResults in interface BuildResults

setFailedTestResults

@Deprecated
public void setFailedTestResults(java.util.List<TestResults> myFailedTestResults)
Deprecated. 

Specified by:
setFailedTestResults in interface BuildResults

getFailedTestResults

public java.util.List<TestResults> getFailedTestResults()
Deprecated. 
Specified by:
getFailedTestResults in interface BuildResults

setMyArtifacts

@Deprecated
public void setMyArtifacts(java.util.Map<java.lang.String,Artifact> myArtifacts)
Deprecated. 

Specified by:
setMyArtifacts in interface BuildResults

getMyArtifacts

@Deprecated
public java.util.Map<java.lang.String,Artifact> getMyArtifacts()
Deprecated. 


isCurrentlyQueuedOnly

public boolean isCurrentlyQueuedOnly()
Deprecated. 
Specified by:
isCurrentlyQueuedOnly in interface BuildResults

getStopWatch

public org.apache.commons.lang.time.StopWatch getStopWatch()
Deprecated. 
Specified by:
getStopWatch in interface BuildResults

startTimer

public void startTimer()
Deprecated. 

stopTimer

public void stopTimer()
Deprecated. 

clearBuildErrors

public void clearBuildErrors()
Deprecated. 
Specified by:
clearBuildErrors in interface BuildResults

getBuildTime

public long getBuildTime()
Deprecated. 
Specified by:
getBuildTime in interface BuildResults

getPrettyBuildTime

public java.lang.String getPrettyBuildTime()
Deprecated. 
Specified by:
getPrettyBuildTime in interface BuildResults

setBuildManager

public void setBuildManager(BuildManager buildManager)
Deprecated. 
Specified by:
setBuildManager in interface BuildResults

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class java.lang.Object

getBuildResultsKey

public java.lang.String getBuildResultsKey()
Deprecated. 
Specified by:
getBuildResultsKey in interface BuildResults

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

getBuildManager

public BuildManager getBuildManager()
Deprecated. 

getReasonForBuild

public static ReasonForBuild getReasonForBuild(BuildContext buildContext)
Deprecated. 


Copyright © 2010 Atlassian. All Rights Reserved.