Class AccountingRecordType
- java.lang.Object
-
- org.jainslee.resources.diameter.base.types.AccountingRecordType
-
- All Implemented Interfaces:
Serializable,Enumerated
public class AccountingRecordType extends Object implements Serializable, Enumerated
Java class to represent the AccountingRecordType enumerated type. Documentation from the relevant specification: The Accounting-Record-Type AVP (AVP Code 480) is of type Enumerated and contains the type of accounting record being sent. The following values are currently defined for the Accounting-Record-Type AVP:- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int_EVENT_RECORDstatic int_INTERIM_RECORDstatic int_START_RECORDstatic int_STOP_RECORDstatic AccountingRecordTypeEVENT_RECORDAn Accounting Event Record is used to indicate that a one-time event has occurred (meaning that the start and end of the event are simultaneous).static AccountingRecordTypeINTERIM_RECORDAn Interim Accounting Record contains cumulative accounting information for an existing accounting session.static AccountingRecordTypeSTART_RECORDAccounting Start, Interim, and Stop Records are used to indicate that a service of a measurable length has been given.static AccountingRecordTypeSTOP_RECORDAn Accounting Stop Record is sent to terminate an accounting session and contains cumulative accounting information relevant to the existing session.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountingRecordTypefromInt(int type)intgetValue()Return the value of this instance of this enumerated type.StringtoString()
-
-
-
Field Detail
-
_EVENT_RECORD
public static final int _EVENT_RECORD
- See Also:
- Constant Field Values
-
_START_RECORD
public static final int _START_RECORD
- See Also:
- Constant Field Values
-
_INTERIM_RECORD
public static final int _INTERIM_RECORD
- See Also:
- Constant Field Values
-
_STOP_RECORD
public static final int _STOP_RECORD
- See Also:
- Constant Field Values
-
EVENT_RECORD
public static final AccountingRecordType EVENT_RECORD
An Accounting Event Record is used to indicate that a one-time event has occurred (meaning that the start and end of the event are simultaneous). This record contains all information relevant to the service, and it is the only record of the service.
-
START_RECORD
public static final AccountingRecordType START_RECORD
Accounting Start, Interim, and Stop Records are used to indicate that a service of a measurable length has been given. An Accounting Start Record is used to initiate an accounting session and contains accounting information that is relevant to the initiation of the session.
-
INTERIM_RECORD
public static final AccountingRecordType INTERIM_RECORD
An Interim Accounting Record contains cumulative accounting information for an existing accounting session. Interim Accounting Records SHOULD be sent every time a re-authentication or re-authorization occurs. Further, additional interim record triggers MAY be defined by application-specific Diameter applications. The selection of whether to use INTERIM_RECORD records is done by the Acct-Interim-Interval AVP.
-
STOP_RECORD
public static final AccountingRecordType STOP_RECORD
An Accounting Stop Record is sent to terminate an accounting session and contains cumulative accounting information relevant to the existing session.
-
-
Method Detail
-
fromInt
public static AccountingRecordType fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:EnumeratedReturn the value of this instance of this enumerated type.- Specified by:
getValuein interfaceEnumerated- Returns:
- value
-
-