public interface DiameterProvider
Modifier and Type | Method and Description |
---|---|
AccountingClientSessionActivity |
createAccountingClientSessionActivity()
Create a new activity to send accounting request messages.
|
AccountingClientSessionActivity |
createAccountingClientSessionActivity(DiameterIdentity destinationHost,
DiameterIdentity destinationRealm)
Create a new activity to send accounting request messages.
|
DiameterActivity |
createActivity()
Create a new activity to send and receive Diameter messages.
|
DiameterActivity |
createActivity(DiameterIdentity destinationHost,
DiameterIdentity destinationRealm)
Create a new activity to send and receive Diameter messages.
|
DiameterAvp |
decodeAvp(byte[] bytes)
Decodes an AVP from a byte array using standard Diameter AVP data formats.
|
byte[] |
encodeAvp(DiameterAvp avp)
Encodes an AVP to a byte array using standard Diameter AVP data formats.
|
DiameterMessageFactory |
getDiameterMessageFactory()
Return a DiameterMessageFactory implementation to be used to create
DiameterMessage objects. |
int |
getPeerCount()
Return the number of peers this Diameter resource adaptor is connected to.
|
DiameterMessage |
sendSyncRequest(DiameterMessage message)
Synchronously send a Diameter request and block until a response is received.
|
DiameterMessageFactory getDiameterMessageFactory()
DiameterMessage
objects.DiameterActivity createActivity() throws CreateActivityException
CreateActivityException
- if the RA could not create the activity for any reasonDiameterActivity createActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException
destinationHost
- a destination host to automatically put in all messagesdestinationRealm
- a destination realm to automatically put in all messagesCreateActivityException
- if the RA could not create the activity for any reasonAccountingClientSessionActivity createAccountingClientSessionActivity() throws CreateActivityException
CreateActivityException
- if the RA could not create the activity for any reasonAccountingClientSessionActivity createAccountingClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException
destinationHost
- a destination host to automatically put in all messagesdestinationRealm
- a destination realm to automatically put in all messagesCreateActivityException
- if the RA could not create the activity for any reasonDiameterMessage sendSyncRequest(DiameterMessage message) throws SendException
See the note regarding synchronous requests in the org.jainslee.resources.diameter.base
package docs.
message
- the Diameter message to sendSendException
byte[] encodeAvp(DiameterAvp avp)
DiameterAvp decodeAvp(byte[] bytes) throws DecodeException
DecodeException
int getPeerCount()