GridGain™ 2.1.0
Java API Specification

org.gridgain.grid
Enum GridDiscoveryEventType

java.lang.Object
  extended by java.lang.Enum<GridDiscoveryEventType>
      extended by org.gridgain.grid.GridDiscoveryEventType
All Implemented Interfaces:
Serializable, Comparable<GridDiscoveryEventType>

@Apache20LicenseCompatible
public enum GridDiscoveryEventType
extends Enum<GridDiscoveryEventType>

Event types for grid node discovery events. See GridDiscoverySpi for information about how grid discovers nodes. Note that discovery events are different from general GridEventType events and are used by GridDiscoveryListener.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.1.0

See Also:
GridDiscoveryListener
 

Enum Constant Summary
FAILED
          GridGain detected that node has presumably crashed and is considered failed.
JOINED
          New node has been discovered and joined grid topology.
LEFT
          Node has normally left the grid.
METRICS_UPDATED
          Callback for when node's metrics are updated.
 
Method Summary
static GridDiscoveryEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GridDiscoveryEventType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JOINED

public static final GridDiscoveryEventType JOINED
New node has been discovered and joined grid topology. Note that even though a node has been discovered there could be a number of warnings in the log. In certain situations GridGain doesn't prevent a node from joining but prints warning messages into the log.


LEFT

public static final GridDiscoveryEventType LEFT
Node has normally left the grid.


FAILED

public static final GridDiscoveryEventType FAILED
GridGain detected that node has presumably crashed and is considered failed.


METRICS_UPDATED

public static final GridDiscoveryEventType METRICS_UPDATED
Callback for when node's metrics are updated. In most cases this callback is invoked with every heartbeat received from a node (including local node).

Method Detail

values

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

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

valueOf

public static GridDiscoveryEventType 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.)

Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

GridGain™ 2.1.0
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.1.0.19122008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.