|
||||||||||
| 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. |
java.lang.String |
getFailureThreshold()
Returns the annotation threshold to be reached if a build should be considered as failure. |
java.lang.String |
getHealthy()
Returns the healthy threshold, i.e. |
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. |
java.lang.String |
getNewFailureThreshold()
Returns the threshold of new annotations to be reached if a build should be considered as failure. |
java.lang.String |
getNewThreshold()
Returns the threshold for new annotations to be reached if a build should be considered as unstable. |
java.lang.String |
getThreshold()
Returns the threshold of all annotations to be reached if a build should be considered as unstable. |
java.lang.String |
getUnHealthy()
Returns the unhealthy threshold, i.e. |
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 Priority getMinimumPriority()
Priority.NORMAL is returned,
then annotations with priority Priority.LOW are ignored.
getMinimumPriority in interface HealthDescriptorpublic java.lang.String getThreshold()
getThreshold in interface HealthDescriptorpublic java.lang.String getNewThreshold()
getNewThreshold in interface HealthDescriptorpublic java.lang.String getFailureThreshold()
getFailureThreshold in interface HealthDescriptorpublic java.lang.String getNewFailureThreshold()
getNewFailureThreshold in interface HealthDescriptorpublic java.lang.String getHealthy()
getHealthy in interface HealthDescriptorpublic java.lang.String getUnHealthy()
getUnHealthy in interface HealthDescriptorprotected abstract org.jvnet.localizer.Localizable createDescription(AnnotationProvider result)
result - the result of the build
public boolean isThresholdEnabled()
true if a threshold has been definedpublic int getMinimumAnnotations()
public boolean isHealthyReportEnabled()
true if a health report should be createdpublic int getHealthyAnnotations()
java.lang.IllegalArgumentException - if the healthy values are not validisHealthyReportEnabled()public int getUnHealthyAnnotations()
java.lang.IllegalArgumentException - if the healthy values are not validisHealthyReportEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||