hudson.plugins.analysis.core
Class Thresholds

java.lang.Object
  extended by hudson.plugins.analysis.core.Thresholds
All Implemented Interfaces:
Serializable

public class Thresholds
extends Object
implements Serializable

Data object that simply stores the thresholds.

Author:
Ulli Hafner
See Also:
Serialized Form

Field Summary
 String failedNewAll
           
 String failedNewHigh
           
 String failedNewLow
           
 String failedNewNormal
           
 String failedTotalAll
           
 String failedTotalHigh
           
 String failedTotalLow
           
 String failedTotalNormal
           
 String unstableNewAll
           
 String unstableNewHigh
           
 String unstableNewLow
           
 String unstableNewNormal
           
 String unstableTotalAll
           
 String unstableTotalHigh
           
 String unstableTotalLow
           
 String unstableTotalNormal
           
 
Constructor Summary
Thresholds()
           
 
Method Summary
 int getLowerBound()
          Returns a lower bound of warnings that will guarantee that a build neither is unstable or failed.
 boolean isValid()
          Returns whether at least one of the thresholds is set.
static boolean isValid(String threshold)
          Returns whether the provided threshold string parameter is a valid threshold number, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unstableTotalAll

public String unstableTotalAll

unstableTotalHigh

public String unstableTotalHigh

unstableTotalNormal

public String unstableTotalNormal

unstableTotalLow

public String unstableTotalLow

unstableNewAll

public String unstableNewAll

unstableNewHigh

public String unstableNewHigh

unstableNewNormal

public String unstableNewNormal

unstableNewLow

public String unstableNewLow

failedTotalAll

public String failedTotalAll

failedTotalHigh

public String failedTotalHigh

failedTotalNormal

public String failedTotalNormal

failedTotalLow

public String failedTotalLow

failedNewAll

public String failedNewAll

failedNewHigh

public String failedNewHigh

failedNewNormal

public String failedNewNormal

failedNewLow

public String failedNewLow
Constructor Detail

Thresholds

public Thresholds()
Method Detail

isValid

public boolean isValid()
Returns whether at least one of the thresholds is set.

Returns:
true if at least one of the thresholds is set, false if no threshold is set

isValid

public static boolean isValid(String threshold)
Returns whether the provided threshold string parameter is a valid threshold number, i.e. an integer value greater or equal zero.

Parameters:
threshold - string representation of the threshold value
Returns:
true if the provided threshold string parameter is a valid number >= 0

getLowerBound

public int getLowerBound()
Returns a lower bound of warnings that will guarantee that a build neither is unstable or failed.

Returns:
the number of warnings


Copyright © 2004-2012 Hudson. All Rights Reserved.