Class ReplicationQueueTaskDispatcher
- java.lang.Object
-
- hudson.model.queue.QueueTaskDispatcher
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationQueueTaskDispatcher
-
- All Implemented Interfaces:
com.sonymobile.tools.gerrit.gerritevents.GerritEventListener
,ExtensionPoint
@Extension public class ReplicationQueueTaskDispatcher extends QueueTaskDispatcher implements com.sonymobile.tools.gerrit.gerritevents.GerritEventListener
Block builds until replication is completed if configured to wait for replication.- Author:
- Hugo Arès <hugo.ares@ericsson.com>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ReplicationQueueTaskDispatcher()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CauseOfBlockage
canRun(Queue.Item item)
void
gerritEvent(com.sonymobile.tools.gerrit.gerritevents.dto.events.RefReplicated refReplicated)
Process RefReplicated events.void
gerritEvent(com.sonymobile.tools.gerrit.gerritevents.dto.GerritEvent event)
-
Methods inherited from class hudson.model.queue.QueueTaskDispatcher
all, canTake, canTake
-
-
-
-
Method Detail
-
canRun
public CauseOfBlockage canRun(Queue.Item item)
- Overrides:
canRun
in classQueueTaskDispatcher
-
gerritEvent
public void gerritEvent(com.sonymobile.tools.gerrit.gerritevents.dto.GerritEvent event)
- Specified by:
gerritEvent
in interfacecom.sonymobile.tools.gerrit.gerritevents.GerritEventListener
-
gerritEvent
public void gerritEvent(com.sonymobile.tools.gerrit.gerritevents.dto.events.RefReplicated refReplicated)
Process RefReplicated events.- Parameters:
refReplicated
- the event
-
-