|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.manual.TriggerMonitor
public class TriggerMonitor
Keeps track of the lifecycle of a GerritEvent.
Nested Class Summary | |
---|---|
static class |
TriggerMonitor.EventState
State information about an event. |
Constructor Summary | |
---|---|
TriggerMonitor()
|
Method Summary | |
---|---|
void |
add(PatchsetCreated event)
Adds the event and a holder for its state to the list of triggered events. |
void |
allBuildsCompleted(PatchsetCreated event)
|
void |
buildCompleted(PatchsetCreated event,
hudson.model.AbstractBuild build)
|
void |
buildStarted(PatchsetCreated event,
hudson.model.AbstractBuild build)
|
boolean |
contains(PatchsetCreated event)
Checks to see if the list of triggered events and their states contains the given event. |
List<TriggerMonitor.EventState> |
getEvents()
The list of events and their states. |
Iterator<TriggerMonitor.EventState> |
getEventsIterator()
An iterator of the list of events and their states. |
void |
projectTriggered(PatchsetCreated event,
hudson.model.AbstractProject project)
|
void |
triggerScanDone(PatchsetCreated event)
|
void |
triggerScanStarting(PatchsetCreated event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TriggerMonitor()
Method Detail |
---|
public void add(PatchsetCreated event)
event
- the event.public boolean contains(PatchsetCreated event)
event
- the event to check.
getEvents()
public void triggerScanStarting(PatchsetCreated event)
triggerScanStarting
in interface GerritEventLifecycleListener
public void triggerScanDone(PatchsetCreated event)
triggerScanDone
in interface GerritEventLifecycleListener
public void projectTriggered(PatchsetCreated event, hudson.model.AbstractProject project)
projectTriggered
in interface GerritEventLifecycleListener
public void buildStarted(PatchsetCreated event, hudson.model.AbstractBuild build)
buildStarted
in interface GerritEventLifecycleListener
public void buildCompleted(PatchsetCreated event, hudson.model.AbstractBuild build)
buildCompleted
in interface GerritEventLifecycleListener
public void allBuildsCompleted(PatchsetCreated event)
allBuildsCompleted
in interface GerritEventLifecycleListener
public List<TriggerMonitor.EventState> getEvents()
public Iterator<TriggerMonitor.EventState> getEventsIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |