com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model
Class BuildsStartedStats

java.lang.Object
  extended by 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
BuildsStartedStats(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, int totalBuildsToStart, int startedBuilds)
          The Constructor.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2014. All Rights Reserved.