Class TriggerMonitor

    • Constructor Detail

      • TriggerMonitor

        public TriggerMonitor()
    • Method Detail

      • add

        public void add​(GerritEventLifecycle gerritEventLifecycle)
        Adds the event and a holder for its state to the list of triggered events. And adds this TriggerMonitor as a listener to the event. Unless it doesn't already exists in the list of events.
        Parameters:
        gerritEventLifecycle - the event.
      • contains

        public boolean contains​(GerritEventLifecycle gerritEventLifecycle)
        Checks to see if the list of triggered events and their states contains the given event.
        Parameters:
        gerritEventLifecycle - the event to check.
        Returns:
        true if it exests in the list.
        See Also:
        getEvents()
      • projectTriggered

        public void projectTriggered​(com.sonymobile.tools.gerrit.gerritevents.dto.GerritEvent event,
                                     Job project)
        Description copied from interface: GerritEventLifecycleListener
        Called when the trigger of a project has decided to trigger on the event.
        Specified by:
        projectTriggered in interface GerritEventLifecycleListener
        Parameters:
        event - the event.
        project - the project that was triggered.