Class BuildMemory.MemoryImprint
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model.BuildMemory.MemoryImprint
- Enclosing class:
- BuildMemory
A holder for all builds triggered by one event.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA project-build entry in the list of a MemoryImprint.
- 
Constructor SummaryConstructorsConstructorDescriptionMemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event) Constructor.MemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, Job project) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIf all entry's results are configured to be skipped.Gets the statistics about builds started.A list of Project-Build tuple entries.com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEventgetEvent()The event.Returns a string describing the projects and builds status in this memory.booleanTells if all builds have Completed.booleanTells if all builds have a value (not null).protected voidResets the build info for the project.protected voidAdds the project to the list.protected voidSets the build to a project or adds the project to the list.booleanTells if all builds in the memory were not built.booleanTells if all builds in the memory were successful.booleanReturns if any started and completed build has the resultResult.ABORTED.booleanReturns if any started and completed build has the resultResult.FAILURE.booleanReturns if any started and completed build has the resultResult.UNSTABLE.
- 
Constructor Details- 
MemoryImprintpublic MemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event) Constructor.- Parameters:
- event- the event.
 
- 
MemoryImprintpublic MemoryImprint(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, Job project) Constructor.- Parameters:
- event- the event.
- project- the first project.
 
 
- 
- 
Method Details- 
getEventpublic com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent getEvent()The event.- Returns:
- the event.
 
- 
getEntriesA list of Project-Build tuple entries.- Returns:
- the memory entries.
 
- 
setSets the build to a project or adds the project to the list.- Parameters:
- project- the project.
- build- the build.
 
- 
setAdds the project to the list.- Parameters:
- project- the project.
 
- 
resetResets the build info for the project. If the project doesn't exist it would be as if callingset(hudson.model.Job).- Parameters:
- project- the project to reset.
 
- 
isAllBuildsSetpublic boolean isAllBuildsSet()Tells if all builds have a value (not null).- Returns:
- true if it is so.
 
- 
isAllBuildsCompletedpublic boolean isAllBuildsCompleted()Tells if all builds have Completed.- Returns:
- true if it is so.
 
- 
getStatusReportReturns a string describing the projects and builds status in this memory. Good for logging.- Returns:
- a report.
 
- 
getBuildsStartedStatsGets the statistics about builds started.- Returns:
- the stats.
 
- 
areAllBuildResultsSkippedpublic boolean areAllBuildResultsSkipped()If all entry's results are configured to be skipped.- Returns:
- true if so.
- See Also:
 
- 
wereAllBuildsSuccessfulpublic boolean wereAllBuildsSuccessful()Tells if all builds in the memory were successful.- Returns:
- true if it is so, false if not all builds have started or not completed or have any different result
         than Result.SUCCESS.
 
- 
wereAnyBuildsFailedpublic boolean wereAnyBuildsFailed()Returns if any started and completed build has the resultResult.FAILURE.- Returns:
- true if it is so.
 
- 
wereAnyBuildsUnstablepublic boolean wereAnyBuildsUnstable()Returns if any started and completed build has the resultResult.UNSTABLE.- Returns:
- true if it is so.
 
- 
wereAllBuildsNotBuiltpublic boolean wereAllBuildsNotBuilt()Tells if all builds in the memory were not built.- Returns:
- true if it is so, false if not all builds have started or not completed or have any different result
         than Result.NOT_BUILT.
 
- 
wereAnyBuildsAbortedpublic boolean wereAnyBuildsAborted()Returns if any started and completed build has the resultResult.ABORTED.- Returns:
- true if it is so.
 
 
-