Class CcSessionFailover
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.CcSessionFailover
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class CcSessionFailover extends Object implements Serializable, Enumerated
Java class to represent the CcSessionFailover enumerated type. Documentation from the relevant specification: 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.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_FAILOVER_NOT_SUPPORTED
static int
_FAILOVER_SUPPORTED
static CcSessionFailover
FAILOVER_NOT_SUPPORTED
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.static CcSessionFailover
FAILOVER_SUPPORTED
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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CcSessionFailover
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_FAILOVER_NOT_SUPPORTED
public static final int _FAILOVER_NOT_SUPPORTED
- See Also:
- Constant Field Values
-
_FAILOVER_SUPPORTED
public static final int _FAILOVER_SUPPORTED
- See Also:
- Constant Field Values
-
FAILOVER_NOT_SUPPORTED
public static final CcSessionFailover FAILOVER_NOT_SUPPORTED
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
public static final CcSessionFailover FAILOVER_SUPPORTED
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.
-
-
Method Detail
-
fromInt
public static CcSessionFailover fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-