Class BuildsStartedStats
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model.BuildsStartedStats
Bean for holding statistics of started builds for a specific event.
- Author:
- Robert Sandell <robert.sandell@sonyericsson.com>
-
Constructor Summary
ConstructorsConstructorDescriptionBuildsStartedStats(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, int totalBuildsToStart, int startedBuilds) The Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEventgetEvent()The event that started the build(s).intThe amount of builds that have been started so far.intThe total amount of builds that have been triggered.voidsetEvent(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event) The event that started the build(s).toString()
-
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
-