org.rhq.core.domain.cloud
Enum PartitionEventType

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

public enum PartitionEventType
extends Enum<PartitionEventType>


Enum Constant Summary
ADMIN_INITIATED_PARTITION
           
AFFINITY_GROUP_CHANGE
           
AFFINITY_GROUP_DELETE
           
AGENT_AFFINITY_GROUP_ASSIGN
           
AGENT_AFFINITY_GROUP_REMOVE
           
AGENT_CONNECT
           
AGENT_LEAVE
           
AGENT_REGISTRATION
           
AGENT_SHUTDOWN
           
OPERATION_MODE_CHANGE
           
SERVER_AFFINITY_GROUP_ASSIGN
           
SERVER_AFFINITY_GROUP_REMOVE
           
SERVER_COMPUTE_POWER_CHANGE
           
SERVER_DELETION
           
SYSTEM_INITIATED_PARTITION
           
 
Method Summary
 boolean isCloudPartitionEvent()
           
static PartitionEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PartitionEventType[] 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

AGENT_REGISTRATION

public static final PartitionEventType AGENT_REGISTRATION

AGENT_CONNECT

public static final PartitionEventType AGENT_CONNECT

AGENT_SHUTDOWN

public static final PartitionEventType AGENT_SHUTDOWN

AGENT_LEAVE

public static final PartitionEventType AGENT_LEAVE

SERVER_DELETION

public static final PartitionEventType SERVER_DELETION

SERVER_COMPUTE_POWER_CHANGE

public static final PartitionEventType SERVER_COMPUTE_POWER_CHANGE

OPERATION_MODE_CHANGE

public static final PartitionEventType OPERATION_MODE_CHANGE

AGENT_AFFINITY_GROUP_ASSIGN

public static final PartitionEventType AGENT_AFFINITY_GROUP_ASSIGN

AGENT_AFFINITY_GROUP_REMOVE

public static final PartitionEventType AGENT_AFFINITY_GROUP_REMOVE

SERVER_AFFINITY_GROUP_ASSIGN

public static final PartitionEventType SERVER_AFFINITY_GROUP_ASSIGN

SERVER_AFFINITY_GROUP_REMOVE

public static final PartitionEventType SERVER_AFFINITY_GROUP_REMOVE

AFFINITY_GROUP_CHANGE

public static final PartitionEventType AFFINITY_GROUP_CHANGE

AFFINITY_GROUP_DELETE

public static final PartitionEventType AFFINITY_GROUP_DELETE

ADMIN_INITIATED_PARTITION

public static final PartitionEventType ADMIN_INITIATED_PARTITION

SYSTEM_INITIATED_PARTITION

public static final PartitionEventType SYSTEM_INITIATED_PARTITION
Method Detail

values

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

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

valueOf

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

isCloudPartitionEvent

public boolean isCloudPartitionEvent()
Returns:
true if this event type forces a partition of all agents. false if this is a single agent event.


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