com.ibm.diameter.rf.util
Class ACAResults

java.lang.Object
  extended by com.ibm.diameter.rf.util.ACAResults

public class ACAResults
extends java.lang.Object

Gets used to return ACA responses from an Accounting server back to the IMS Application.


Constructor Summary
ACAResults()
           
 
Method Summary
 Accounting getAAct()
          Obtains the object containing fields received in the response from the Accounting server.
 int getAcctInterimInterval()
          Obtains the value of acctInterimInterval.
 long getEventTimestamp()
          Obtains the value of eventTimeStamp.
 int getOriginStateID()
          Obtains the value of originStateId.
 int getResultCode()
          Obtains the resultCode.
 void setAAct(Accounting act)
          Sets the object containing values received in the response from the Accounting server.
 void setAcctInterimInterval(int acctInterimInterval)
          Sets the acct interim interval value.
 void setEventTimestamp(long eventTimestamp)
          Sets the event time stamp value.
 void setOriginStateID(int originStateID)
          Sets the origin state id value.
 void setResultCode(int resultCode)
          Sets the result code value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACAResults

public ACAResults()
Method Detail

getAAct

public Accounting getAAct()
Obtains the object containing fields received in the response from the Accounting server.

Returns:
aAct

setAAct

public void setAAct(Accounting act)
Sets the object containing values received in the response from the Accounting server.

Parameters:
act - The aAct to set.

getAcctInterimInterval

public int getAcctInterimInterval()
Obtains the value of acctInterimInterval. The omission of this value or its inclusion with Value field set to 0 means that EVENT_RECORD, START_RECORD,and STOP_RECORD are produced, as appropriate for the service. The inclusion of the Value set to a non-zero value means that INTERIM_RECORD records MUST be produced between the START_RECORD and STOP_RECORD records. [Acct-Interim-Interval]

Returns:
acctInterimInterval

setAcctInterimInterval

public void setAcctInterimInterval(int acctInterimInterval)
Sets the acct interim interval value.

Parameters:
acctInterimInterval - The acctInterimInterval to set.

getEventTimestamp

public long getEventTimestamp()
Obtains the value of eventTimeStamp. The event time stamp is defined as the number of seconds since January 1, 1900 00:00 UTC [Event-Timestamp]

Returns:
eventTimestamp

setEventTimestamp

public void setEventTimestamp(long eventTimestamp)
Sets the event time stamp value.

Parameters:
eventTimestamp - The eventTimestamp to set.

getOriginStateID

public int getOriginStateID()
Obtains the value of originStateId. This is a monotonically increasing value that is advanced whenever a Diameter entity restarts with loss of previous state, for example upon reboot. A Diameter entity issuing it MUST create a higher value each time its state is reset. A Diameter entity MAY set it to the time of startup, or it MAY use an incrementing counter retained in non-volatile memory across restarts. [Origin-State-Id]

Returns:
originStateID

setOriginStateID

public void setOriginStateID(int originStateID)
Sets the origin state id value.

Parameters:
originStateID - The originStateID to set.

getResultCode

public int getResultCode()
Obtains the resultCode. It holds either 2001 (DIAMETER_SUCCESS) or 2002 (DIAMETER_LIMITED_SUCCESS). Error conditions will be reported via Exceptions. {Result-Code}

Returns:
resultCode

setResultCode

public void setResultCode(int resultCode)
Sets the result code value.

Parameters:
resultCode - The resultCode to set.


Copyright © 2006 IBM Corp. All Rights Reserved.