Class BuildsStartedStats


  • public class BuildsStartedStats
    extends Object
    Bean for holding statistics of started builds for a specific event.
    Author:
    Robert Sandell <robert.sandell@sonyericsson.com>
    • Constructor Detail

      • BuildsStartedStats

        public BuildsStartedStats​(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event,
                                  int totalBuildsToStart,
                                  int startedBuilds)
        The Constructor.
        Parameters:
        event - the event that started the build(s).
        totalBuildsToStart - the total amount of builds that have been triggered.
        startedBuilds - the amount of builds that have been started so far.
    • Method Detail

      • getEvent

        public com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent getEvent()
        The event that started the build(s).
        Returns:
        the event that started the build(s)
      • setEvent

        public void setEvent​(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
        The event that started the build(s).
        Parameters:
        event - the event that started the build(s).
      • getStartedBuilds

        public int getStartedBuilds()
        The amount of builds that have been started so far.
        Returns:
        the amount of builds that have been started so far.
      • getTotalBuildsToStart

        public int getTotalBuildsToStart()
        The total amount of builds that have been triggered.
        Returns:
        the total amount of builds that have been triggered.