net.java.slee.resource.diameter.base.events.avp
Class AccountingRecordType

java.lang.Object
  extended by net.java.slee.resource.diameter.base.events.avp.AccountingRecordType
All Implemented Interfaces:
java.io.Serializable, Enumerated

public class AccountingRecordType
extends java.lang.Object
implements java.io.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
static int _EVENT_RECORD
           
static int _INTERIM_RECORD
           
static int _START_RECORD
           
static int _STOP_RECORD
           
static 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).
static AccountingRecordType INTERIM_RECORD
          An Interim Accounting Record contains cumulative accounting information for an existing accounting session.
static AccountingRecordType START_RECORD
          An Accounting Start, Interim, and Stop Records are used to indicate that a service of a measurable length has been given.
static 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 Summary
static AccountingRecordType fromInt(int type)
           
 int getValue()
          Return the value of this instance of this enumerated type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 is the only record of the service.


START_RECORD

public static final AccountingRecordType START_RECORD
An 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: Enumerated
Return the value of this instance of this enumerated type.

Specified by:
getValue in interface Enumerated
Returns:
value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.