Class FoundFailureCause

java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.FoundFailureCause
All Implemented Interfaces:
IFailureCauseMetricData

@ExportedBean public class FoundFailureCause extends Object implements IFailureCauseMetricData
Found Failure Cause of a build.
Author:
Tomas Westling <tomas.westling@sonymobile.com>
  • Constructor Details

    • FoundFailureCause

      public FoundFailureCause(FailureCause originalCause)
      Constructor used when converting old failureCauses to foundFailureCauses.
      Parameters:
      originalCause - the original FailureCause.
    • FoundFailureCause

      public FoundFailureCause(FailureCause originalCause, List<FoundIndication> indications)
      Standard constructor.
      Parameters:
      originalCause - the original FailureCause.
      indications - the indications found that imply this cause.
  • Method Details

    • getId

      @Exported public String getId()
      Getter for the id.
      Returns:
      the id.
    • getName

      @Exported public String getName()
      Getter for the name.
      Specified by:
      getName in interface IFailureCauseMetricData
      Returns:
      the name.
    • getDescription

      @Exported public String getDescription()
      Getter for the description.
      Returns:
      the description.
    • getCategories

      @Exported public List<String> getCategories()
      Getter for the categories.
      Specified by:
      getCategories in interface IFailureCauseMetricData
      Returns:
      the categories.
    • getIndications

      @Exported public List<FoundIndication> getIndications()
      Getter for the list of found indications.
      Returns:
      the list.
    • addIndication

      @Deprecated public void addIndication(FoundIndication indication)
      Deprecated.
      Prefer adding indications via the constructor. Indication added with this method do not participate in the building of the formatted description.
      Adds a found indication to the list.
      Parameters:
      indication - the indication to add.
    • addIndications

      @Deprecated public void addIndications(List<FoundIndication> foundIndications)
      Deprecated.
      Prefer adding indications via the constructor. Indication added with this method do not participate in the building of the formatted description.
      Adds a list of FoundIndications to this cause.
      Parameters:
      foundIndications - the list of FoundIndications to add.