org.kitesdk.morphline.base
Enum Notifications.LifecycleEvent

java.lang.Object
  extended by java.lang.Enum<Notifications.LifecycleEvent>
      extended by org.kitesdk.morphline.base.Notifications.LifecycleEvent
All Implemented Interfaces:
Serializable, Comparable<Notifications.LifecycleEvent>
Enclosing class:
Notifications

public static enum Notifications.LifecycleEvent
extends Enum<Notifications.LifecycleEvent>

Enumerations of the standard lifecycle events.


Enum Constant Summary
BEGIN_TRANSACTION
          A transaction has been started.
COMMIT_TRANSACTION
          A transaction has been commited.
ROLLBACK_TRANSACTION
          A transaction has been rolled back.
SHUTDOWN
          A shutdown has been initiated.
START_SESSION
          A session has been started.
 
Method Summary
static Notifications.LifecycleEvent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Notifications.LifecycleEvent[] 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

BEGIN_TRANSACTION

public static final Notifications.LifecycleEvent BEGIN_TRANSACTION
A transaction has been started.


COMMIT_TRANSACTION

public static final Notifications.LifecycleEvent COMMIT_TRANSACTION
A transaction has been commited.


ROLLBACK_TRANSACTION

public static final Notifications.LifecycleEvent ROLLBACK_TRANSACTION
A transaction has been rolled back.


SHUTDOWN

public static final Notifications.LifecycleEvent SHUTDOWN
A shutdown has been initiated.


START_SESSION

public static final Notifications.LifecycleEvent START_SESSION
A session has been started.

Method Detail

values

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

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

valueOf

public static Notifications.LifecycleEvent 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


Copyright © 2013–2014. All rights reserved.