com.ace.moab.api.jobs
Enum SLAViolationType

java.lang.Object
  extended by java.lang.Enum<SLAViolationType>
      extended by com.ace.moab.api.jobs.SLAViolationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SLAViolationType>

public enum SLAViolationType
extends java.lang.Enum<SLAViolationType>


Enum Constant Summary
NO_VIOLATION
          There is not SLA violation occurring.
OVER
          The SLA violation is over by a percentage between 10% and infinity.
SLIGHTLY_OVER
          The SLA violation is over by a percentage between 0% and 10%.
SLIGHTLY_UNDER
          The SLA violation is under by a percentage between 0% and 10%.
UNDER
          The SLA violation is under by a percentage between 10% and infinity.
 
Method Summary
static SLAViolationType getType(double slaViolationValue)
          Looks at a percentage value and determines what SLAViolationType it is.
 java.lang.String toString()
           
static SLAViolationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SLAViolationType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDER

public static final SLAViolationType UNDER
The SLA violation is under by a percentage between 10% and infinity.


SLIGHTLY_UNDER

public static final SLAViolationType SLIGHTLY_UNDER
The SLA violation is under by a percentage between 0% and 10%.


NO_VIOLATION

public static final SLAViolationType NO_VIOLATION
There is not SLA violation occurring.


SLIGHTLY_OVER

public static final SLAViolationType SLIGHTLY_OVER
The SLA violation is over by a percentage between 0% and 10%.


OVER

public static final SLAViolationType OVER
The SLA violation is over by a percentage between 10% and infinity.

Method Detail

values

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

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

valueOf

public static SLAViolationType 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<SLAViolationType>

getType

public static SLAViolationType getType(double slaViolationValue)
Looks at a percentage value and determines what SLAViolationType it is.

Parameters:
slaViolationValue - the value to look at.
Returns:
the SLAViolationType enum value that corresponds to the percentage.


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.