GridGain™ 3.6.0e
Enterprise Edition

org.gridgain.grid
Enum GridLifecycleEventType

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

public enum GridLifecycleEventType
extends Enum<GridLifecycleEventType>

Grid lifecycle event types. These events are used to notify lifecycle beans about changes in grid lifecycle state.

For more information and detailed examples refer to GridLifecycleBean documentation.

Wiki & Forum:


Wiki
Forum

 

Enum Constant Summary
AFTER_GRID_START
          Invoked after grid startup is complete.
AFTER_GRID_STOP
          Invoked after grid had stopped.
BEFORE_GRID_START
          Invoked before grid startup routine.
BEFORE_GRID_STOP
          Invoked before grid stopping routine.
 
Method Summary
static GridLifecycleEventType fromOrdinal(byte ord)
          Efficiently gets enumerated value from its ordinal.
static GridLifecycleEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GridLifecycleEventType[] 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

BEFORE_GRID_START

public static final GridLifecycleEventType BEFORE_GRID_START
Invoked before grid startup routine. Grid is not initialized and cannot be used.


AFTER_GRID_START

public static final GridLifecycleEventType AFTER_GRID_START
Invoked after grid startup is complete. Grid is fully initialized and fully functional.


BEFORE_GRID_STOP

public static final GridLifecycleEventType BEFORE_GRID_STOP
Invoked before grid stopping routine. Grid is fully functional at this point.


AFTER_GRID_STOP

public static final GridLifecycleEventType AFTER_GRID_STOP
Invoked after grid had stopped. Grid is stopped and cannot be used.

Method Detail

values

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

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

valueOf

public static GridLifecycleEventType 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
NullPointerException - if the argument is null
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

fromOrdinal

@Nullable
public static GridLifecycleEventType fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.

Parameters:
ord - Ordinal value.
Returns:
Enumerated value.

GridGain™ 3.6.0e
Enterprise Edition

GridGain - Real Time Big Data
Enterprise Edition, ver. 3.6.0e.13012012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Follow GridGain on Facebook Join GridGain User Group Follow GridGain on Twitter Follow GridGain on YouTube