Class TriggerMonitor.EventState
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.manual.TriggerMonitor.EventState
- Enclosing class:
- TriggerMonitor
State information about an event.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the appropriate ball color for the current status of this event and its builds.Gets the builds that has started for this event.getEvent()The event.booleanIf all builds started by this event has completed.booleanGoes through the list of builds and checks if anyone is still building.booleanIf all the active triggers in the system has been notified about this event.booleanIf the active triggers in the system has started to be notified.booleanIf no active triggers where interested in this event.
- 
Method Details- 
getBallColorReturns the appropriate ball color for the current status of this event and its builds.- Returns:
- the path to the image of the ball.
- See Also:
 
- 
isUnTriggeredpublic boolean isUnTriggered()If no active triggers where interested in this event. Determined by:isTriggerScanDone()andgetBuilds().size() <= 0 unless notisTriggerScanStarted().- Returns:
- true if so.
 
- 
getEventThe event.- Returns:
- the event.
 
- 
isTriggerScanStartedpublic boolean isTriggerScanStarted()If the active triggers in the system has started to be notified.- Returns:
- true if so.
 
- 
isTriggerScanDonepublic boolean isTriggerScanDone()If all the active triggers in the system has been notified about this event.- Returns:
- true if so.
 
- 
isAllBuildsCompletedpublic boolean isAllBuildsCompleted()If all builds started by this event has completed.- Returns:
- true if so.
 
- 
getBuildsGets the builds that has started for this event.- Returns:
- the builds.
 
- 
isReallyAllBuildsCompletedpublic boolean isReallyAllBuildsCompleted()Goes through the list of builds and checks if anyone is still building. Even though the eventTriggerMonitor.allBuildsCompleted(GerritEvent)has been called that only applies to non silent builds, an extra check is needed.- Returns:
- true if all builds has completed.
 
 
-