com.sonyericsson.hudson.plugins.gerrit.trigger.extensions
Class GerritTriggeredBuildListener

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.extensions.GerritTriggeredBuildListener
All Implemented Interfaces:
hudson.ExtensionPoint

public abstract class GerritTriggeredBuildListener
extends Object
implements hudson.ExtensionPoint

A abstract class for listening Gerrit triggered build result.

Author:
rinrinne <rinrin.ne@gmail.com>

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
GerritTriggeredBuildListener()
           
 
Method Summary
static hudson.ExtensionList<GerritTriggeredBuildListener> all()
          Gets all listeners.
static void fireOnCompleted(BuildMemory.MemoryImprint memoryImprint, String command)
          Fire onCompleted.
static void fireOnStarted(GerritTriggeredEvent event, String command)
          Fire onStarted.
abstract  void onCompleted(hudson.model.Result result, GerritTriggeredEvent event, String command)
          Calls when all builds completed.
abstract  void onStarted(GerritTriggeredEvent event, String command)
          Calls when build started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritTriggeredBuildListener

public GerritTriggeredBuildListener()
Method Detail

onStarted

public abstract void onStarted(GerritTriggeredEvent event,
                               String command)
Calls when build started.

Parameters:
event - the event.
command - the command.

onCompleted

public abstract void onCompleted(hudson.model.Result result,
                                 GerritTriggeredEvent event,
                                 String command)
Calls when all builds completed.

Parameters:
result - the result.
event - the event.
command - the command.

fireOnStarted

public static void fireOnStarted(GerritTriggeredEvent event,
                                 String command)
Fire onStarted.

Parameters:
event - the event
command - the command.

fireOnCompleted

public static void fireOnCompleted(BuildMemory.MemoryImprint memoryImprint,
                                   String command)
Fire onCompleted.

Parameters:
memoryImprint - the memoryimprint.
command - the command.

all

public static hudson.ExtensionList<GerritTriggeredBuildListener> all()
Gets all listeners.

Returns:
the extension list.


Copyright © 2004-2013. All Rights Reserved.