|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model.BuildMemory.MemoryImprint
public static class BuildMemory.MemoryImprint
A holder for all builds triggered by one event.
Nested Class Summary | |
---|---|
static class |
BuildMemory.MemoryImprint.Entry
A project-build entry in the list of a MemoryImprint. |
Constructor Summary | |
---|---|
BuildMemory.MemoryImprint(PatchsetCreated event)
Constructor. |
|
BuildMemory.MemoryImprint(PatchsetCreated event,
hudson.model.AbstractProject project)
Constructor. |
Method Summary | |
---|---|
BuildsStartedStats |
getBuildsStartedStats()
Gets the statistics about builds started. |
BuildMemory.MemoryImprint.Entry[] |
getEntries()
A list of Project-Build tuple entries. |
PatchsetCreated |
getEvent()
The event. |
java.lang.String |
getStatusReport()
Returns a string describing the projects and builds status in this memory. |
boolean |
isAllBuildsCompleted()
Tells if all builds have Completed. |
boolean |
isAllBuildsSet()
Tells if all builds have a value (not null). |
protected void |
reset(hudson.model.AbstractProject project)
Resets the build info for the project. |
protected void |
set(hudson.model.AbstractProject project)
Adds the project to the list. |
protected void |
set(hudson.model.AbstractProject project,
hudson.model.AbstractBuild build)
Sets the build to a project or adds the project to the list. |
boolean |
whereAllBuildsSuccessful()
Tells if all builds in the memory were successful. |
boolean |
whereAnyBuildsFailed()
Returns if any started and completed build has the result Result.FAILURE . |
boolean |
whereAnyBuildsUnstable()
Returns if any started and completed build has the result Result.UNSTABLE . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildMemory.MemoryImprint(PatchsetCreated event)
event
- the event.public BuildMemory.MemoryImprint(PatchsetCreated event, hudson.model.AbstractProject project)
event
- the event.project
- the first project.Method Detail |
---|
public PatchsetCreated getEvent()
public BuildMemory.MemoryImprint.Entry[] getEntries()
protected void set(hudson.model.AbstractProject project, hudson.model.AbstractBuild build)
project
- the project.build
- the build.protected void set(hudson.model.AbstractProject project)
project
- the project.protected void reset(hudson.model.AbstractProject project)
set(hudson.model.AbstractProject)
.
project
- the project to reset.public boolean isAllBuildsSet()
public boolean isAllBuildsCompleted()
public java.lang.String getStatusReport()
public BuildsStartedStats getBuildsStartedStats()
public boolean whereAllBuildsSuccessful()
Result.SUCCESS
.public boolean whereAnyBuildsFailed()
Result.FAILURE
.
public boolean whereAnyBuildsUnstable()
Result.UNSTABLE
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |