public interface CGINProvider
Modifier and Type | Method and Description |
---|---|
boolean |
isApplicationContextSupported(TcapApplicationContext appContext)
Test if a given application context is supported by this provider.
|
Dialog |
issueOpenRequest(TcapApplicationContext appContext,
ObjectID appContextName,
SccpAddress origAddress,
SccpAddress destAddress,
long timeout,
Object... userInformation)
Attempt to open a new dialog.
|
Dialog |
issueOpenRequest(TcapApplicationContext appContext,
SccpAddress destAddress)
Attempt to open a new dialog.
|
Dialog |
issueStatelessOpenRequest(TcapApplicationContext appContext,
ObjectID appContextName,
byte[] origTransactionID,
SccpAddress origAddress,
SccpAddress destAddress,
Object... userInformation)
Attempt to open a new stateless dialog.
|
Dialog |
relayStatelessOpenRequest(DialogOpenRequestEvent openRequest,
SccpAddress destAddress)
Create a stateless dialog suitable for relaying the given open request.
|
Dialog issueOpenRequest(TcapApplicationContext appContext, SccpAddress destAddress) throws ProtocolException
Dialog
is allocated in the local Provider stack but the open request
does not actually get delivered to the remote Provider until a dialog component primitive (such as a delimiter)
is subsequently sent on the dialog. The originating SCCP address set for the open request is the default local
SCCP address for the resource adaptor. No user information is included in the request.appContext
- the application context for the dialogdestAddress
- the SCCP address of the remote Provider to receive the open requestNullPointerException
- if appContext
or destAddress
is null
.ProtocolException
- if the open request could not be passed down to the local Provider stack.Dialog issueOpenRequest(TcapApplicationContext appContext, ObjectID appContextName, SccpAddress origAddress, SccpAddress destAddress, long timeout, Object... userInformation) throws ProtocolException
Dialog
is allocated in the local Provider stack but the open request
does not actually get delivered to the remote Provider until a dialog component primitive (such as a delimiter)
is subsequently sent on the dialog.appContext
- the application context for the dialogappContextName
- the OID to use on the external network; null causes use of what's configured for appContextorigAddress
- the SCCP address of the local Provider; if null
, the default local address is useddestAddress
- the SCCP address of the remote Provider to receive the open requesttimeout
- how long, in milliseconds, to wait for a response on this dialog before aborting; 0 disables the timeoutuserInformation
- the user information to include in the TC-BEGINNullPointerException
- if appContext
or destAddress
is null
ProtocolException
- if the open request could not be passed down to the local Provider stack.Dialog issueStatelessOpenRequest(TcapApplicationContext appContext, ObjectID appContextName, byte[] origTransactionID, SccpAddress origAddress, SccpAddress destAddress, Object... userInformation) throws ProtocolException
Dialog
is allocated in the local Provider stack but the open request
does not actually get delivered to the remote Provider until a dialog component primitive (such as a delimiter)
is subsequently sent on the dialog.
Stateless dialogs provide support for "SCCP relay mode", where a TC-BEGIN is relayed to a new destination, but the node performing the relaying does not participate in subsequent messages on that dialog. They differ from normal (stateful) dialogs in several ways:
In general, to implement relay mode, an incoming stateful dialog causes creation of an outgoing stateless dialog, with the outgoing dialog using the same Originating Transaction ID and Originating Address as the incoming dialog. Invokes received on the incoming dialog are forwarded to the outgoing dialog, with modifications if necessary. When an incoming Delimiter is received, it is forwarded to the outgoing dialog (causing the SLEE activity for the outgoing dialog to end), and the incoming dialog is ended with a prearranged-end Close (causing the SLEE activity for the incoming dialog to end without a response being sent)
appContext
- the application context for the dialogappContextName
- the OID to use on the external network; null causes use of what's configured for appContextorigTransactionID
- the originating TCAP transaction ID to include; 1-4 bytes; mandatoryorigAddress
- the SCCP address of the local Provider; mandatorydestAddress
- the SCCP address of the remote Provider to receive the open requestuserInformation
- the user information to include in the TC-BEGINNullPointerException
- if appContext
, origTransactionID
, origAddress
, or destAddress
is null
ProtocolException
- if the open request could not be passed down to the local Provider stack.Dialog relayStatelessOpenRequest(DialogOpenRequestEvent openRequest, SccpAddress destAddress) throws ProtocolException
issueStatelessOpenRequest
with
originating transaction ID, originating address, application context, and user information
taken from the provided open request event.
Additionally, the new dialog's SCCP parameters (SCCP class and return option)
and external network ACN are set from those of the existing dialog.openRequest
- the received open request to relaydestAddress
- the SCCP address of the remote provider to relay toNullPointerException
- if openRequest
or destAddress
are null
ProtocolException
- if the open request could not be passed down to the local Provider stack.boolean isApplicationContextSupported(TcapApplicationContext appContext)
appContext
- the application context to query