|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.checkstyle.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. when health is reported as 100%. |
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. when health is reported as 0%. |
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 HealthDescriptorpublic int getMinimumAnnotations()
getMinimumAnnotations in interface HealthDescriptorpublic int getUnHealthyAnnotations()
getUnHealthyAnnotations in interface HealthDescriptorpublic boolean isHealthyReportEnabled()
isHealthyReportEnabled in interface HealthDescriptortrue if a health report should be createdpublic boolean isThresholdEnabled()
isThresholdEnabled in interface HealthDescriptortrue if a threshold has been definedpublic Priority getMinimumPriority()
Priority.NORMAL is
returned, then annotations with priority Priority.LOW are
ignored.
getMinimumPriority in interface HealthDescriptorprotected 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 | |||||||||