Class BuildsStartedStats
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent
getEvent()
The event that started the build(s).int
getStartedBuilds()
The amount of builds that have been started so far.int
getTotalBuildsToStart()
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).String
toString()
-
-
-
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.
-
-