org.rhq.core.domain.resource.flyweight
Enum MembersAvailabilityHint

java.lang.Object
  extended by java.lang.Enum<MembersAvailabilityHint>
      extended by org.rhq.core.domain.resource.flyweight.MembersAvailabilityHint
All Implemented Interfaces:
Serializable, Comparable<MembersAvailabilityHint>

public enum MembersAvailabilityHint
extends Enum<MembersAvailabilityHint>

Hints about the availability of resources in an AutoGroupCompositeFlyweight.


Enum Constant Summary
DOWN
          Some member resources are down.
UNKNOWN
          Some member resources don't have a known availability state.
UP
          All member resources are up.
 
Method Summary
static MembersAvailabilityHint fromAvailabilityType(AvailabilityType availType)
           
 String toString()
           
static MembersAvailabilityHint valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MembersAvailabilityHint[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UP

public static final MembersAvailabilityHint UP
All member resources are up.


DOWN

public static final MembersAvailabilityHint DOWN
Some member resources are down.


UNKNOWN

public static final MembersAvailabilityHint UNKNOWN
Some member resources don't have a known availability state.

Method Detail

values

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

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

valueOf

public static MembersAvailabilityHint valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromAvailabilityType

public static MembersAvailabilityHint fromAvailabilityType(AvailabilityType availType)

toString

public String toString()
Overrides:
toString in class Enum<MembersAvailabilityHint>


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.