public abstract class GerritEventLifecycle extends Object
| Constructor and Description |
|---|
GerritEventLifecycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(GerritEventLifecycleListener listener)
Adds the listener to the list of listeners.
|
void |
fireAllBuildsCompleted()
Fires the event
GerritEventLifecycleListener.allBuildsCompleted(PatchsetCreated). |
void |
fireBuildCompleted(hudson.model.AbstractBuild build)
|
void |
fireBuildStarted(hudson.model.AbstractBuild build)
|
void |
fireProjectTriggered(hudson.model.AbstractProject project)
|
void |
fireTriggerScanDone()
Fires the event
GerritEventLifecycleListener.triggerScanDone(PatchsetCreated). |
void |
fireTriggerScanStarting()
Fires the event
GerritEventLifecycleListener.triggerScanStarting(PatchsetCreated). |
protected List<GerritEventLifecycleListener> |
getListeners()
Gets a copy of the internal transient list of listeners.
|
boolean |
removeListener(GerritEventLifecycleListener listener)
Removes the listener from the list of listeners.
|
public void addListener(GerritEventLifecycleListener listener)
listener - the listener to add.public boolean removeListener(GerritEventLifecycleListener listener)
listener - the listener to remove.List.remove(java.lang.Object)public void fireTriggerScanStarting()
GerritEventLifecycleListener.triggerScanStarting(PatchsetCreated).public void fireTriggerScanDone()
GerritEventLifecycleListener.triggerScanDone(PatchsetCreated).public void fireProjectTriggered(hudson.model.AbstractProject project)
project - the project that is triggered.public void fireBuildStarted(hudson.model.AbstractBuild build)
build - the build that has started.public void fireBuildCompleted(hudson.model.AbstractBuild build)
build - the build that is completed.public void fireAllBuildsCompleted()
GerritEventLifecycleListener.allBuildsCompleted(PatchsetCreated).protected List<GerritEventLifecycleListener> getListeners()
Copyright © 2004-2015 Hudson. All Rights Reserved.