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 Summary
Constructors Constructor Description FoundFailureCause(FailureCause originalCause)
Constructor used when converting old failureCauses to foundFailureCauses.FoundFailureCause(FailureCause originalCause, List<FoundIndication> indications)
Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addIndication(FoundIndication indication)
Deprecated.Prefer adding indications via the constructor.void
addIndications(List<FoundIndication> foundIndications)
Deprecated.Prefer adding indications via the constructor.List<String>
getCategories()
Getter for the categories.String
getDescription()
Getter for the description.String
getId()
Getter for the id.List<FoundIndication>
getIndications()
Getter for the list of found indications.String
getName()
Getter for the name.
-
-
-
Constructor Detail
-
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 Detail
-
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 interfaceIFailureCauseMetricData
- 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 interfaceIFailureCauseMetricData
- 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.
-
-