com.sun.enterprise.ee.cms.core
Enum GroupManagementService.MemberType
java.lang.Object
java.lang.Enum<GroupManagementService.MemberType>
com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<GroupManagementService.MemberType>
- Enclosing interface:
- GroupManagementService
public static enum GroupManagementService.MemberType
- extends java.lang.Enum<GroupManagementService.MemberType>
Members joining the group should be one of the following
types. Core members are ones whose failure is a material event
to the group, Spectators are those whose failure is not a
material event to other group members. A Watchdog member of the group
can report to the group that a member of the group has failed. The failure of a Watchdog
is not a material event to the other group members. In order to lower overhead for a WATCHDOG,
Distributed State Cache management is disabled for a WATCHDOG member. Additionally, a WATCHDOG
member does not receive any GMS event notifications nor can it ever be the MASTER of a GMS
group.
Motivation for WATCHDOG member is to enable Framework Agents that control and monitor the runtime status of
GMS members to be able to report failures to GMS when they are detected. If a Framework Agent runs on same
machine as processes it monitors, it can detect failure sooner and more reliably than heartbeat based failure
detection can. A WATCHDOG member can lessen the amount of time that GMS takes to notify a group that a member
has failed.
| 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 |
CORE
public static final GroupManagementService.MemberType CORE
SPECTATOR
public static final GroupManagementService.MemberType SPECTATOR
WATCHDOG
public static final GroupManagementService.MemberType WATCHDOG
values
public static GroupManagementService.MemberType[] 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 (GroupManagementService.MemberType c : GroupManagementService.MemberType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GroupManagementService.MemberType 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
Copyright © 2010. All Rights Reserved.