com.sonyericsson.hudson.plugins.gerrit.trigger
Class GerritHandlerLifecycle

java.lang.Object
  extended by com.sonymobile.tools.gerrit.gerritevents.GerritHandler
      extended by com.sonyericsson.hudson.plugins.gerrit.trigger.GerritHandlerLifecycle
All Implemented Interfaces:
com.sonymobile.tools.gerrit.gerritevents.Handler, com.sonymobile.tools.gerrit.gerritevents.workers.Coordinator

public class GerritHandlerLifecycle
extends com.sonymobile.tools.gerrit.gerritevents.GerritHandler

Specialization of GerritHandler that supports gerrit event's lifecycle.

Author:
Hugo Arès <hugo.ares@ericsson.com>

Constructor Summary
GerritHandlerLifecycle(int numberOfWorkerThreads)
          Standard Constructor.
 
Method Summary
 void notifyListeners(com.sonymobile.tools.gerrit.gerritevents.dto.GerritEvent event)
           
 
Methods inherited from class com.sonymobile.tools.gerrit.gerritevents.GerritHandler
addEventListeners, addEventListeners, addListener, getEventListenersCount, getIgnoreEMail, getNumberOfWorkerThreads, getWorkQueue, post, post, post, post, post, removeAllEventListeners, removeListener, setIgnoreEMail, setNumberOfWorkerThreads, shutdown, triggerEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritHandlerLifecycle

public GerritHandlerLifecycle(int numberOfWorkerThreads)
Standard Constructor.

Parameters:
numberOfWorkerThreads - the number of event threads.
Method Detail

notifyListeners

public void notifyListeners(com.sonymobile.tools.gerrit.gerritevents.dto.GerritEvent event)
Specified by:
notifyListeners in interface com.sonymobile.tools.gerrit.gerritevents.workers.Coordinator
Overrides:
notifyListeners in class com.sonymobile.tools.gerrit.gerritevents.GerritHandler


Copyright © 2004-2014. All Rights Reserved.