com.sonyericsson.jenkins.plugins.bfa.statistics
Class Statistics

java.lang.Object
  extended by com.sonyericsson.jenkins.plugins.bfa.statistics.Statistics

public class Statistics
extends Object

The statistics object which will be logged.

Author:
Tomas Westling <tomas.westling@sonymobile.com>

Nested Class Summary
static class Statistics.UpstreamCause
          Upstream cause.
 
Constructor Summary
Statistics(String projectName, int buildNumber, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, List<FailureCauseStatistics> failureCauseStatistics)
          Deprecated. 
Statistics(String projectName, int buildNumber, Date startingTime, long duration, List<String> triggerCauses, String nodeName, String master, int timeZoneOffset, String result, Statistics.UpstreamCause upstreamCause, List<FailureCauseStatistics> failureCauseStatistics)
          Standard/JSON constructor.
 
Method Summary
 int getBuildNumber()
          Getter for the build number.
 long getDuration()
          Getter for the duration.
 List<FailureCauseStatistics> getFailureCauseStatisticsList()
          Getter for the List of statistics for FailureCauses.
 String getMaster()
          Getter for the Jenkins master.
 String getProjectName()
          Getter for the project name.
 String getResult()
          Getter for the result of the build.
 String getSlaveHostName()
          Getter for the host name of the slave.
 Date getStartingTime()
          Getter for the starting time.
 int getTimeZoneOffset()
          Getter for the time zone offset in milliseconds.
 List<String> getTriggerCauses()
          Getter for the build cause that triggered the build.
 Statistics.UpstreamCause getUpstreamCause()
          Getter for the upstream cause description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistics

public Statistics(String projectName,
                  int buildNumber,
                  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.
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. 

Deprecated, kept for backwards compatibility.

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 Detail

getProjectName

public String getProjectName()
Getter for the project name.

Returns:
the project name.

getBuildNumber

public int getBuildNumber()
Getter for the build number.

Returns:
the build number.

getStartingTime

public Date getStartingTime()
Getter for the starting time.

Returns:
the starting time.

getDuration

public long getDuration()
Getter for the duration.

Returns:
the duration.

getTriggerCauses

public List<String> getTriggerCauses()
Getter for the build cause that triggered the build.

Returns:
the causes as a list.

getSlaveHostName

public String getSlaveHostName()
Getter for the host name of the slave.

Returns:
the host name of the slave.

getMaster

public String 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

public String getResult()
Getter for the result of the build.

Returns:
the result.

getUpstreamCause

public Statistics.UpstreamCause getUpstreamCause()
Getter for the upstream cause description.

Returns:
the upstream cause description.

getFailureCauseStatisticsList

public List<FailureCauseStatistics> getFailureCauseStatisticsList()
Getter for the List of statistics for FailureCauses.

Returns:
the list.


Copyright © 2004-2014. All Rights Reserved.