Class Statistics
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.statistics.Statistics
The statistics object which will be logged.
- Author:
- Tomas Westling <tomas.westling@sonymobile.com>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionStatistics
(String projectName, int buildNumber, String displayName, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, Statistics.UpstreamCause upstreamCause, List<FailureCauseStatistics> failureCauseStatistics) Standard/JSON constructor.Statistics
(String projectName, int buildNumber, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, List<FailureCauseStatistics> failureCauseStatistics) Deprecated., kept for backwards compatibility. -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the build number.Getter for the build display name.long
Getter for the duration.Getter for the List of statistics for FailureCauses.Getter for the Jenkins master.Getter for the project name.Getter for the result of the build.Getter for the host name of the slave.Getter for the starting time.int
Getter for the time zone offset in milliseconds.Getter for the build cause that triggered the build.Getter for the upstream cause description.
-
Constructor Details
-
Statistics
public Statistics(String projectName, int buildNumber, String displayName, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, Statistics.UpstreamCause upstreamCause, List<FailureCauseStatistics> failureCauseStatistics) Standard/JSON constructor.- Parameters:
projectName
- the project name.buildNumber
- the build number.displayName
- the build display name.startingTime
- the starting time.duration
- the duration.triggerCauses
- the causes that triggered this build.nodeName
- the name of the node this build ran on.master
- the master this build ran on.timeZoneOffset
- the time zone offset.result
- the result of the build.upstreamCause
- the upstream cause of the current build, if any.failureCauseStatistics
- the statistics for the FailureCauses.
-
Statistics
@Deprecated public Statistics(String projectName, int buildNumber, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, List<FailureCauseStatistics> failureCauseStatistics) Deprecated., kept for backwards compatibility.Deprecated statistics constructor.- Parameters:
projectName
- the project name.buildNumber
- the build number.startingTime
- the starting time.duration
- the duration.triggerCauses
- the causes that triggered this build.nodeName
- the name of the node this build ran on.master
- the master this build ran on.timeZoneOffset
- the time zone offset.result
- the result of the build.failureCauseStatistics
- the statistics for the FailureCauses.
-
-
Method Details
-
getProjectName
Getter for the project name.- Returns:
- the project name.
-
getBuildNumber
public int getBuildNumber()Getter for the build number.- Returns:
- the build number.
-
getDisplayName
Getter for the build display name.- Returns:
- the build display name.
-
getStartingTime
Getter for the starting time.- Returns:
- the starting time.
-
getDuration
public long getDuration()Getter for the duration.- Returns:
- the duration.
-
getTriggerCauses
Getter for the build cause that triggered the build.- Returns:
- the causes as a list.
-
getSlaveHostName
Getter for the host name of the slave.- Returns:
- the host name of the slave.
-
getMaster
Getter for the Jenkins master.- Returns:
- the master.
-
getTimeZoneOffset
public int getTimeZoneOffset()Getter for the time zone offset in milliseconds.- Returns:
- the time zone offset.
-
getResult
Getter for the result of the build.- Returns:
- the result.
-
getUpstreamCause
Getter for the upstream cause description.- Returns:
- the upstream cause description.
-
getFailureCauseStatisticsList
Getter for the List of statistics for FailureCauses.- Returns:
- the list.
-