|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.plugins.dry.util.AbstractHealthDescriptor
public abstract class AbstractHealthDescriptor
A base class for serializable health descriptors. Instances of this class are immutable.
Constructor Summary | |
---|---|
AbstractHealthDescriptor()
Creates a new instance of AbstractHealthDescriptor . |
|
AbstractHealthDescriptor(HealthDescriptor healthDescriptor)
Creates a new instance of AbstractHealthDescriptor based on the
values of the specified descriptor. |
Method Summary | |
---|---|
protected abstract org.jvnet.localizer.Localizable |
createDescription(AnnotationProvider result)
Returns a localized description of the build health. |
int |
getHealthyAnnotations()
Returns the healthy threshold for annotations, i.e. |
int |
getMinimumAnnotations()
Returns the threshold to be reached if a build should be considered as unstable. |
Priority |
getMinimumPriority()
Returns the minimum priority that should be considered when computing build health and stability. |
int |
getUnHealthyAnnotations()
Returns the unhealthy threshold of annotations, i.e. |
boolean |
isHealthyReportEnabled()
Determines whether a health report should be created. |
boolean |
isThresholdEnabled()
Determines whether a threshold has been defined. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractHealthDescriptor(HealthDescriptor healthDescriptor)
AbstractHealthDescriptor
based on the
values of the specified descriptor.
healthDescriptor
- the descriptor to copy the values frompublic AbstractHealthDescriptor()
AbstractHealthDescriptor
.
Method Detail |
---|
public int getHealthyAnnotations()
getHealthyAnnotations
in interface HealthDescriptor
public int getMinimumAnnotations()
getMinimumAnnotations
in interface HealthDescriptor
public int getUnHealthyAnnotations()
getUnHealthyAnnotations
in interface HealthDescriptor
public boolean isHealthyReportEnabled()
isHealthyReportEnabled
in interface HealthDescriptor
true
if a health report should be createdpublic boolean isThresholdEnabled()
isThresholdEnabled
in interface HealthDescriptor
true
if a threshold has been definedpublic Priority getMinimumPriority()
Priority.NORMAL
is
returned, then annotations with priority Priority.LOW
are
ignored.
getMinimumPriority
in interface HealthDescriptor
protected abstract org.jvnet.localizer.Localizable createDescription(AnnotationProvider result)
result
- the result of the build
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |