org.rhq.domain.correlation
Enum NormalizationOperator

java.lang.Object
  extended by java.lang.Enum<NormalizationOperator>
      extended by org.rhq.domain.correlation.NormalizationOperator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NormalizationOperator>

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

Comparator operator for RuleItems

Author:
Heiko W. Rupp

Enum Constant Summary
CONTAINS
          contains(reference) (for trait metrics)
ENDS_WITH
          endsWith(reference) (for trait metrics)
EQUALS
          == (for numeric metrics)
FAILURE
          OperationResult.isSuccess() == FALSE
GREATER_EQUALS
          => (for numeric metrics)
GREATER_THEN
          > (for numeric metrics)
IN_CLOSED
          Usage: IN_CLOSED a:b same as ( a <= value <=b ) (for numeric metrics)
IN_OPEN
          IN_OPEN a:b same as (a < value < b) (for numeric metrics)
IS_DOWN
          value == AvailabilityType.DOWN
IS_NAN
          isNan() (for numeric metrics)
IS_UP
          value == AvailabilityType.UP
LESS_EQUALS
          >= (for numeric metrics)
LESS_THEN
          < (for numeric metrics)
MATCHES
          matches(reference regexp (for trait metrics)
NOT_CONTAINS
          !
NOT_EQUALS
          !
NOT_MATCHES
          !
OUTSIDE
          OUTSIDE a:b same as (value b) (for numeric metrics)
STARTS_WITH
          startsWith(reference) (for trait metrics)
SUCCESS
          OperationResult.isSuccess() == TRUE
 
Method Summary
static NormalizationOperator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NormalizationOperator[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LESS_THEN

public static final NormalizationOperator LESS_THEN
< (for numeric metrics)


LESS_EQUALS

public static final NormalizationOperator LESS_EQUALS
>= (for numeric metrics)


EQUALS

public static final NormalizationOperator EQUALS
== (for numeric metrics)


GREATER_EQUALS

public static final NormalizationOperator GREATER_EQUALS
=> (for numeric metrics)


GREATER_THEN

public static final NormalizationOperator GREATER_THEN
> (for numeric metrics)


NOT_EQUALS

public static final NormalizationOperator NOT_EQUALS
!= (for numeric metrics)


IN_CLOSED

public static final NormalizationOperator IN_CLOSED
Usage: IN_CLOSED a:b same as ( a <= value <=b ) (for numeric metrics)


IN_OPEN

public static final NormalizationOperator IN_OPEN
IN_OPEN a:b same as (a < value < b) (for numeric metrics)


OUTSIDE

public static final NormalizationOperator OUTSIDE
OUTSIDE a:b same as (value b) (for numeric metrics)


IS_NAN

public static final NormalizationOperator IS_NAN
isNan() (for numeric metrics)


CONTAINS

public static final NormalizationOperator CONTAINS
contains(reference) (for trait metrics)


NOT_CONTAINS

public static final NormalizationOperator NOT_CONTAINS
!contains(reference) (for trait metrics)


MATCHES

public static final NormalizationOperator MATCHES
matches(reference regexp (for trait metrics)


NOT_MATCHES

public static final NormalizationOperator NOT_MATCHES
!matches(reference regexp (for trait metrics)


STARTS_WITH

public static final NormalizationOperator STARTS_WITH
startsWith(reference) (for trait metrics)


ENDS_WITH

public static final NormalizationOperator ENDS_WITH
endsWith(reference) (for trait metrics)


IS_UP

public static final NormalizationOperator IS_UP
value == AvailabilityType.UP


IS_DOWN

public static final NormalizationOperator IS_DOWN
value == AvailabilityType.DOWN


SUCCESS

public static final NormalizationOperator SUCCESS
OperationResult.isSuccess() == TRUE


FAILURE

public static final NormalizationOperator FAILURE
OperationResult.isSuccess() == FALSE

Method Detail

values

public static final NormalizationOperator[] 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(NormalizationOperator c : NormalizationOperator.values())
        System.out.println(c);

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

valueOf

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