com.sonyericsson.hudson.plugins.gerrit.trigger.events.lifecycle
Interface GerritEventLifecycle

All Known Implementing Classes:
ManualPatchsetCreated

public interface GerritEventLifecycle

Interface representing a class handling event listeners for the lifecycle of a GerritEvent.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>, Hugo Arès <hugo.ares@ericsson.com>

Method Summary
 void addListener(GerritEventLifecycleListener listener)
          Adds the listener to the list of listeners.
 void fireAllBuildsCompleted()
          Fires the event GerritEventLifecycleListener.allBuildsCompleted(GerritEvent).
 void fireBuildCompleted(hudson.model.AbstractBuild<?,?> build)
          Fires the event GerritEventLifecycleListener.buildCompleted(GerritEvent, AbstractBuild).
 void fireBuildStarted(hudson.model.AbstractBuild<?,?> build)
          Fires the event GerritEventLifecycleListener.buildStarted(GerritEvent, AbstractBuild).
 void fireProjectTriggered(hudson.model.AbstractProject<?,?> project)
          Fires the event GerritEventLifecycleListener.projectTriggered(GerritEvent, AbstractProject).
 void fireTriggerScanDone()
          Fires the event GerritEventLifecycleListener.triggerScanDone(GerritEvent).
 void fireTriggerScanStarting()
          Fires the event GerritEventLifecycleListener.triggerScanStarting(GerritEvent).
 com.sonymobile.tools.gerrit.gerritevents.dto.GerritEvent getEvent()
          The event associated with the lifecycle.
 boolean removeListener(GerritEventLifecycleListener listener)
          Removes the listener from the list of listeners.
 

Method Detail

getEvent

com.sonymobile.tools.gerrit.gerritevents.dto.GerritEvent getEvent()
The event associated with the lifecycle.

Returns:
The event

addListener

void addListener(GerritEventLifecycleListener listener)
Adds the listener to the list of listeners.

Parameters:
listener - the listener to add.

removeListener

boolean removeListener(GerritEventLifecycleListener listener)
Removes the listener from the list of listeners.

Parameters:
listener - the listener to remove.
Returns:
true if it was removed.
See Also:
List#remove(java.lang.Object)

fireTriggerScanStarting

void fireTriggerScanStarting()
Fires the event GerritEventLifecycleListener.triggerScanStarting(GerritEvent).


fireTriggerScanDone

void fireTriggerScanDone()
Fires the event GerritEventLifecycleListener.triggerScanDone(GerritEvent).


fireProjectTriggered

void fireProjectTriggered(hudson.model.AbstractProject<?,?> project)
Fires the event GerritEventLifecycleListener.projectTriggered(GerritEvent, AbstractProject).

Parameters:
project - the project that is triggered.

fireBuildStarted

void fireBuildStarted(hudson.model.AbstractBuild<?,?> build)
Fires the event GerritEventLifecycleListener.buildStarted(GerritEvent, AbstractBuild).

Parameters:
build - the build that has started.

fireBuildCompleted

void fireBuildCompleted(hudson.model.AbstractBuild<?,?> build)
Fires the event GerritEventLifecycleListener.buildCompleted(GerritEvent, AbstractBuild).

Parameters:
build - the build that is completed.

fireAllBuildsCompleted

void fireAllBuildsCompleted()
Fires the event GerritEventLifecycleListener.allBuildsCompleted(GerritEvent).



Copyright © 2004-2014. All Rights Reserved.