Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.resultsummary
Class LegacyBuildResultsSummaryImpl

    java.lang.Object
      EntityObject
          com.atlassian.bamboo.core.BambooEntityObject
              com.atlassian.bamboo.resultsummary.AbstractBuildResultsSummary
                  com.atlassian.bamboo.resultsummary.LegacyBuildResultsSummaryImpl

All Implemented Interfaces:
  BambooObject, BuildResultsSummary, ResultStatisticsProvider, Comparable

    public class LegacyBuildResultsSummaryImpl

extends AbstractBuildResultsSummary

This POJO provides a simple summary for presenting in the GUI. Subset if the full `BuildResultsImpl` as we don't want to load all of the build results into memory at once.

Field Summary

Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
`id`

Constructor Summary
`LegacyBuildResultsSummaryImpl()` Simple constructor for BuildResultsSummary
`LegacyBuildResultsSummaryImpl(BuildResults buildResults)` Create a summary from an existing build results
`LegacyBuildResultsSummaryImpl(BuildState buildState, int buildNumber, long failedTestCount, long successfulTestCount, Date buildTimeStamp, long duration, ReasonForBuild reasonForBuild, Collection changeList)` Initialise the summary with the desired state and build number.

Method Summary
`int` | `compareTo(Object obj)`
`boolean` | `equals(Object object)`
`Date` | `getBuildCompletedDate()`
`Date` | `getBuildDate()` When was the build?
`String` | `getBuildKey()`
`int` | `getBuildNumber()` Which build number was this?
`BuildState` | `getBuildState()` What was the success status of the build?
`String` | `getChangedByAuthors()`
`String` | `getChangesListSummary()`
`String` | `getChangesListSummaryAsJs()`
`List` | `getComments()`
`Map` | `getCustomBuildData()`
`DeltaState` | `getDeltaState()`
`long` | `getDuration()` Get the duration of the build
`double` | `getDurationInSeconds()`
`long` | `getFailedBuildCount()` How many of the build's tests failed?
`Set` | `getJiraIssueKeys()`
`List` | `getLabellings()`
`List` | `getLabelNames()`
`ReasonForBuild` | `getReasonForBuild()`
`long` | `getSuccessfulBuildCount()` How many of the build's tests passed?
`Long` | `getTimeToFix()`
`int` | `hashCode()`
`void` | `setBuildState(BuildState buildState)`
`void` | `setDuration(long duration)`
`void` | `setReasonForBuild(ReasonForBuild reasonForBuild)`
`void` | `setSourceChangeList(Collection sourceChangeList)` Convert the change log into a smaller (when persisted to xml) and more convenient format

Methods inherited from class com.atlassian.bamboo.resultsummary.AbstractBuildResultsSummary
`createChangedByAuthors, getBuildResultKey, getBuildTime, getDurationDescription, getReasonSummary, getRelativeBuildDate, getRelativeBuildDate, getTestSummary, isFailed, isSuccessful`

Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
`getId, setId`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.atlassian.bamboo.resultsummary.BuildResultsSummary
`getId`

Constructor Detail

### LegacyBuildResultsSummaryImpl

    public LegacyBuildResultsSummaryImpl()

  Simple constructor for BuildResultsSummary

### LegacyBuildResultsSummaryImpl

    public LegacyBuildResultsSummaryImpl(BuildResults buildResults)

  Create a summary from an existing build results

  Parameters:
    `buildResults` -

### LegacyBuildResultsSummaryImpl

    public LegacyBuildResultsSummaryImpl(BuildState buildState,
                                         int buildNumber,
                                         long failedTestCount,
                                         long successfulTestCount,
                                         Date buildTimeStamp,
                                         long duration,
                                         ReasonForBuild reasonForBuild,
                                         Collection changeList)

  Initialise the summary with the desired state and build number.

  Parameters:
    `buildState` - The state of the build
    `buildNumber` - The number of the build
    `failedTestCount` - The number of failed tests in this build
    `successfulTestCount` - The number of successful tests in this build
    `buildTimeStamp` - The time of the build
    `duration` - How long the build took
    `reasonForBuild` - The reason for the build
    `changeList` - The collection of `ChangeLogEntry`s that triggered the build

Method Detail

### getBuildKey

    public String getBuildKey()

### getBuildState

    public BuildState getBuildState()

  What was the success status of the build?

  Returns:
    The build state

### getBuildNumber

    public int getBuildNumber()

  Which build number was this?

  Returns:
    The build number

### getFailedBuildCount

    public long getFailedBuildCount()

  How many of the build's tests failed?

  Returns:
    The number of failed tests

### getSuccessfulBuildCount

    public long getSuccessfulBuildCount()

  How many of the build's tests passed?

  Returns:
    The number of successful tests

### setDuration

    public void setDuration(long duration)

### setBuildState

    public void setBuildState(BuildState buildState)

### getBuildDate

    public Date getBuildDate()

  When was the build?

  Returns:
    The date and time of the build.

### getCustomBuildData

    public Map getCustomBuildData()

### getLabellings

    public List getLabellings()

### getLabelNames

    public List getLabelNames()

### getJiraIssueKeys

    public Set getJiraIssueKeys()

### getTimeToFix

    public Long getTimeToFix()

### getComments

    public List getComments()

### getBuildCompletedDate

    public Date getBuildCompletedDate()

### getDuration

    public long getDuration()

  Get the duration of the build

  Returns:
    The duration in milliseconds

### getDurationInSeconds

    public double getDurationInSeconds()

### getReasonForBuild

    public ReasonForBuild getReasonForBuild()

### setReasonForBuild

    public void setReasonForBuild(ReasonForBuild reasonForBuild)

### setSourceChangeList

    public void setSourceChangeList(Collection sourceChangeList)

  Convert the change log into a smaller (when persisted to xml) and more convenient format

  Parameters:
    `sourceChangeList` - The original change log entry

### getChangedByAuthors

    public String getChangedByAuthors()

### getChangesListSummary

    public String getChangesListSummary()

### getChangesListSummaryAsJs

    public String getChangesListSummaryAsJs()

### getDeltaState

    public DeltaState getDeltaState()

### compareTo

    public int compareTo(Object obj)

### equals

    public boolean equals(Object object)

### hashCode

    public int hashCode()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.