|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wcp.diameter.Session
com.bea.wcp.diameter.accounting.ClientSession
Client accounting session implementing the client accounting state machine described in RFC 3588 section 8.2. This session can be used to create and send new ACR accounting requests, and receive corresponding ACA answer messages. The current session state is based on the accounting record type of the previously created request. For an EVENT ACR, the session will be terminated (removed from the Diameter session map) as soon as the corresponding EVENT ACA message is received. Likewise, after STOP ACR is sent, the session will be terminated as soon as the corresponding STOP ACA message is received.
Constructor Summary | |
ClientSession(Application app)
Creates a new ClientSession for the specified application. |
Method Summary | |
ACR |
createACR(RecordType type)
Creates a new accounting request (ACR) for the specified accounting record type. |
protected void |
rcvAnswer(Answer ans)
Receives accounting answer (ACA) message for this session. |
void |
sndMessage(Message msg)
Called by container just before a new ACR or ACA message has been sent out. |
Methods inherited from class com.bea.wcp.diameter.Session |
createRequest, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvMessage, rcvRequest, removeAttribute, setAttribute, setListener, terminate, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClientSession(Application app)
Method Detail |
public ACR createACR(RecordType type)
type
- the accounting RecordType for the request
java.lang.IllegalStateException
- if the session is terminated, a request is
currently pending, or the specified RequestType is not valid for
the current session stateprotected void rcvAnswer(Answer ans) throws DiameterException, java.io.IOException
rcvAnswer
in class Session
ans
- the ACA message
DiameterException
- if a Diameter protocol error occurred
java.io.IOException
- if an I/O error occurred while processing the messagepublic void sndMessage(Message msg) throws java.io.IOException
sndMessage
in class Session
msg
- the ACR/ACA message being sent out
java.io.IOException
- if the message could not be sent
java.lang.IllegalStateException
- if the session has been terminated, a
request is already pending, or a request is out of sequence
(invalid record number)
|
Documentation is available at http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss31/ Copyright 2007 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |