com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class UnreviewedPatchesListener

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.UnreviewedPatchesListener
All Implemented Interfaces:
ConnectionListener

public class UnreviewedPatchesListener
extends Object
implements ConnectionListener

Checks changes from Gerrit server, when ssh connection is created. Runs Jenkins jobs to unreviewed Gerrit patches. TODO: Support to all types of events.


Constructor Summary
UnreviewedPatchesListener(String name)
          Class constructor.
 
Method Summary
 void connectionDown()
           
 void connectionEstablished()
           
 void shutdown()
          Shutdown the listener.
 void triggerUnreviewedPatches(GerritTrigger trigger)
          Triggers all patches in events-list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnreviewedPatchesListener

public UnreviewedPatchesListener(String name)
Class constructor.

Parameters:
name - the name of the GerritServer
Method Detail

connectionEstablished

public void connectionEstablished()
Specified by:
connectionEstablished in interface ConnectionListener

connectionDown

public void connectionDown()
Specified by:
connectionDown in interface ConnectionListener

shutdown

public void shutdown()
Shutdown the listener.


triggerUnreviewedPatches

public void triggerUnreviewedPatches(GerritTrigger trigger)
Triggers all patches in events-list.

Parameters:
trigger - the GerritTrigger


Copyright © 2004-2013. All Rights Reserved.