|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.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. |
String |
getHealthy()
Returns the healthy threshold, i.e. |
int |
getHealthyAnnotations()
Returns the healthy threshold for annotations, i.e. |
int |
getLowerBoundOfThresholds()
Returns a lower bound of warnings that will guarantee that a build neither is unstable or failed. |
Priority |
getMinimumPriority()
Returns the minimum priority that should be considered when computing build health. |
Thresholds |
getThresholds()
Returns the threshold of all annotations to be reached if a build should be considered as unstable or failed, resp. |
String |
getUnHealthy()
Returns the unhealthy threshold, i.e. |
int |
getUnHealthyAnnotations()
Returns the unhealthy threshold of annotations, i.e. |
boolean |
isEnabled()
Returns whether this health report build is enabled, i.e. |
boolean |
isHealthyReportEnabled()
Determines whether a health report should be created. |
boolean |
isThresholdEnabled()
Determines whether a threshold has been defined. |
protected Object |
readResolve()
Initializes new fields that are not serialized yet. |
| 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 String getHealthy()
getHealthy in interface HealthDescriptorpublic String getUnHealthy()
getUnHealthy in interface HealthDescriptorpublic Thresholds getThresholds()
getThresholds in interface HealthDescriptorpublic boolean isEnabled()
true if health or failed thresholds are provided,
false otherwiseprotected 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 getLowerBoundOfThresholds()
public boolean isHealthyReportEnabled()
true if a health report should be createdpublic int getHealthyAnnotations()
IllegalArgumentException - if the healthy values are not validisHealthyReportEnabled()public int getUnHealthyAnnotations()
IllegalArgumentException - if the healthy values are not validisHealthyReportEnabled()protected Object readResolve()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||