org.mobicents.servlet.sip.notification
Enum SessionActivationNotificationCause

java.lang.Object
  extended by java.lang.Enum<SessionActivationNotificationCause>
      extended by org.mobicents.servlet.sip.notification.SessionActivationNotificationCause
All Implemented Interfaces:
Serializable, Comparable<SessionActivationNotificationCause>

public enum SessionActivationNotificationCause
extends Enum<SessionActivationNotificationCause>

Reasons why an activation spec notification for a clustered session is being generated.

Since:
1.6
Author:
jean.deruelle@gmail.com

Enum Constant Summary
ACTIVATION
          The session is being activated.
FAILAWAY
          Session has failed over and is no longer active on the local node.
FAILOVER
          Session has failed over and is now in use on the local node.
PASSIVATION
          The session is being passivated.
REPLICATION
          The session is being replicated.
 
Method Summary
static SessionActivationNotificationCause valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SessionActivationNotificationCause[] 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

FAILOVER

public static final SessionActivationNotificationCause FAILOVER
Session has failed over and is now in use on the local node.


FAILAWAY

public static final SessionActivationNotificationCause FAILAWAY
Session has failed over and is no longer active on the local node.


PASSIVATION

public static final SessionActivationNotificationCause PASSIVATION
The session is being passivated.


ACTIVATION

public static final SessionActivationNotificationCause ACTIVATION
The session is being activated.


REPLICATION

public static final SessionActivationNotificationCause REPLICATION
The session is being replicated.

Method Detail

values

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

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

valueOf

public static SessionActivationNotificationCause 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 © 2011. All Rights Reserved.