hudson.plugins.view.dashboard.stats
Enum StatJobs.HealthStatus

java.lang.Object
  extended by java.lang.Enum<StatJobs.HealthStatus>
      extended by hudson.plugins.view.dashboard.stats.StatJobs.HealthStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StatJobs.HealthStatus>
Enclosing class:
StatJobs

public static enum StatJobs.HealthStatus
extends java.lang.Enum<StatJobs.HealthStatus>

Heath status of the builds (use enum not class for it)


Enum Constant Summary
HEALTH_0_TO_19
           
HEALTH_20_TO_39
           
HEALTH_40_TO_59
           
HEALTH_60_TO_79
           
HEALTH_OVER_80
           
HEALTH_UNKNOWN
           
 
Method Summary
 java.lang.String getDescription()
           
static StatJobs.HealthStatus getHealthStatus(hudson.model.Job job)
           
 java.lang.String getIconUrl()
           
 java.lang.String getIconUrl(java.lang.String size)
           
static StatJobs.HealthStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StatJobs.HealthStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HEALTH_OVER_80

public static final StatJobs.HealthStatus HEALTH_OVER_80

HEALTH_60_TO_79

public static final StatJobs.HealthStatus HEALTH_60_TO_79

HEALTH_40_TO_59

public static final StatJobs.HealthStatus HEALTH_40_TO_59

HEALTH_20_TO_39

public static final StatJobs.HealthStatus HEALTH_20_TO_39

HEALTH_0_TO_19

public static final StatJobs.HealthStatus HEALTH_0_TO_19

HEALTH_UNKNOWN

public static final StatJobs.HealthStatus HEALTH_UNKNOWN
Method Detail

values

public static StatJobs.HealthStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StatJobs.HealthStatus c : StatJobs.HealthStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StatJobs.HealthStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getHealthStatus

public static StatJobs.HealthStatus getHealthStatus(hudson.model.Job job)

getIconUrl

public java.lang.String getIconUrl()

getIconUrl

public java.lang.String getIconUrl(java.lang.String size)

getDescription

public java.lang.String getDescription()


Copyright © 2010. All Rights Reserved.