java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model.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 Summary

    Constructors
    Constructor
    Description
    BuildsStartedStats(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, int totalBuildsToStart, int startedBuilds)
    The Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent
    The event that started the build(s).
    int
    The amount of builds that have been started so far.
    int
    The total amount of builds that have been triggered.
    void
    setEvent(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
    The event that started the build(s).
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object