Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.slee.resource.diameter.rf;
 
 
The SBB interface for the Diameter Rf Resource Adaptor. This API can be used in either an asynchronous or synchronous manner. To send messages asynchronously, create a RfClientSessionActivity using one of the createRfClientSessionActivity() methods. To send messages synchronously, use the accountingRequest(AccountingRequest) method. The Accounting-Request messages must be created using the RfMessageFactory returned from getRfMessageFactory().

Author(s):
Alexandre Mendonca
Bartosz Baranowski
public interface RfProvider {

  
Return a message factory to be used to create concrete implementations of accounting messages.

Returns:
a DiameterActivity
Return an AVP factory to be used to create concrete implementations of accounting AVPs.

Returns:
a DiameterActivity
Create a new activity to send and receive Diameter messages.

Returns:
Throws:
net.java.slee.resource.diameter.base.CreateActivityException if the RA could not create the activity for any reason
Create a new activity to send and receive Diameter messages.

Parameters:
destinationHost a destination host to automatically put in all messages
destinationRealm a destination realm to automatically put in all messages
Returns:
Throws:
net.java.slee.resource.diameter.base.CreateActivityException if the RA could not create the activity for any reason
  public RfClientSession createRfClientSessionActivity(DiameterIdentity destinationHostDiameterIdentity destinationRealmthrows CreateActivityException;

  
Send an Accounting Request.

Parameters:
accountingRequest the Accounting-Request message to send
Returns:
Throws:
java.lang.IllegalArgumentException if accountingRequest is missing any required AVPs
java.io.IOException if the message could not be sent
Return the number of peers this Diameter resource adaptor is connected to.

Returns:
connected peer count
  int getPeerCount();

  
Returns array containing identities of connected peers FIXME: baranowb; - should it be InetAddres, Port pair?

Returns:
New to GrepCode? Check out our FAQ X