net.java.slee.resource.diameter.cca.events.avp
Enum CcSessionFailoverType

java.lang.Object
  extended by java.lang.Enum<CcSessionFailoverType>
      extended by net.java.slee.resource.diameter.cca.events.avp.CcSessionFailoverType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CcSessionFailoverType>, net.java.slee.resource.diameter.base.events.avp.Enumerated

public enum CcSessionFailoverType
extends java.lang.Enum<CcSessionFailoverType>
implements net.java.slee.resource.diameter.base.events.avp.Enumerated

 8.4. CC-Session-Failover AVP


   The CC-Session-Failover AVP (AVP Code 418) is type of Enumerated and
   contains information as to whether moving the credit-control message
   stream to a backup server during an ongoing credit-control session is
   supported.  In communication failures, the credit-control message
   streams can be moved to an alternative destination if the credit-
   control server supports failover to an alternative server.  The
   secondary credit-control server name, if received from the home
   Diameter AAA server, can be used as an address of the backup server.
   An implementation is not required to support moving a credit-control
   message stream to an alternative server, as this also requires moving
   information related to the credit-control session to backup server.

   The following values are defined for the CC-Session-Failover AVP:

   FAILOVER_NOT_SUPPORTED          0
      When the CC-Session-Failover AVP is set to FAILOVER_NOT_SUPPORTED,
      the credit-control message stream MUST NOT to be moved to an
      alternative destination in the case of communication failure.

      This is the default behavior if the AVP isn't included in the
      reply from the authorization or credit-control server.

   FAILOVER_SUPPORTED              1
      When the CC-Session-Failover AVP is set to FAILOVER_SUPPORTED, the
      credit-control message stream SHOULD be moved to an alternative
      destination in the case of communication failure.  Moving the
      credit-control message stream to a backup server MAY require that
      information related to the credit-control session should also be
      forwarded to alternative server.

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
FAILOVER_NOT_SUPPORTED
           
FAILOVER_SUPPORTED
           
 
Method Summary
static CcSessionFailoverType fromInt(int type)
           
 int getValue()
           
static CcSessionFailoverType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CcSessionFailoverType[] 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_NOT_SUPPORTED

public static final CcSessionFailoverType FAILOVER_NOT_SUPPORTED

FAILOVER_SUPPORTED

public static final CcSessionFailoverType FAILOVER_SUPPORTED
Method Detail

values

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

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

valueOf

public static CcSessionFailoverType 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

getValue

public int getValue()
Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated

fromInt

public static CcSessionFailoverType fromInt(int type)
                                     throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException


Copyright © 2011. All Rights Reserved.