Oracle Server E10293-02 ユーザーズマニュアル

ページ / 108
Diameter Application Example
Oracle Diameter Java APIs
A-19
Figure A–5
Rf Provider Creation
3.
Create my Rf Provider, an instance of DiameterRfProvider, using the following 
method: myStack.createDiameterRfProvider(). The instantiation is done with the 
application name matching the one configured in the xml dictionary, and attach it 
to a listener so that it receives all incoming messages. Among the parameters 
passed during the provider creation, properties is a set of accounting options 
previously defined at the section [3.2.6] and refFSM is the reference to the FSM to 
execute.
The 3GPP Rf Interface dictionary is returned by getRfDictionary() and must be 
extended by the Diameter stack.
For increased flexibility in a real accounting application, we can extend the 
dictionary with application specific AVP and command codes. The using method 
is myStack.extendGrammar(myDictionnary).
The Rf Listener is created and registered as follows:
Figure A–6
Rf Listener Creation and Registration
4.
DiameterRfListenerImpl is an implementation of DiameterRfListener interface and 
may be implemented by the application programmer. myRfListener is an instance 
of DiameterRfListenerImpl.
5.
Attach myRfProvider to the created listener myRfListener using the following 
method: setDiameterRfListener().
Transport configuration  
The Accounting Application has to create one or several 
instances of the DiameterListeningPoint interface to listen for incoming connections on 
one or several transport addresses. As soon as the listening point has been created, the 
Diameter stack is ready to accept incoming connection from remote peers which can 
be declared by using the createDiameterRoute() method.