|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IpDataSessionControlManagerConnection
This interface is the 'SCF manager' interface for Data Session Control. This interface shall be implemented by a Data Session Control SCF. As a minimum requirement, the createNotifications() and destroyNotification(), or the enableNotifications() and disableNotifications() methods shall be implemented.
| Method Summary | |
|---|---|
void |
changeNotification(int assignmentID,
TpDataSessionEventCriteria eventCriteria)
This method is used by the application to change the event criteria introduced with the createNotification method. |
int |
createNotification(TpDataSessionEventCriteria eventCriteria)
Deprecated. This method is deprecated and will be removed in a later release. It is replaced with createNotifications(). This method is used to enable data session notifications so that events can be sent to the application. This is the first step an application has to do to get initial notifications of data session happening in the network. When such an event happens, the application will be informed by reportNotification(). In case the application is interested in other events during the context of a particular data session it has to use the connectReq() method on the data session object. The application will get access to the data session object when it receives the reportNotification(). The createNotification method is purely intended for applications to indicate their interest to be notified when certain data session events take place. It is possible to subscribe to a certain event for a whole range of addresses, e.g. the application can indicate it wishes to be informed when a data session is setup to any number starting with 800. If some application already requested notifications with criteria that overlap the specified criteria or the specified criteria overlap with criteria already present in the network (when provisioned from within the network), the request is refused with P_INVALID_CRITERIA. The criteria are said to overlap if both originating and terminating ranges overlap and the same number plan is used. If a notification is requested by an application with monitor mode set to notify, then there is no need to check the rest of the criteria for overlapping with any existing request as the notify mode does not give control of a data session. Only one application can place an interrupt request if the criteria overlaps. If the same application requests two notifications with exactly the same criteria but different callback references, the second callback will be treated as an additional callback. Both notifications will share the same assignmentID. The gateway will always use the most recent callback. In case this most recent callback fails the second most recent is used. In case the createNotification contains no callback, at the moment the application needs to be informed the gateway will use as callback the callback that has been registered by setCallback(). |
int |
createNotifications(TpDataSessionEventCriteria eventCriteria)
This method is deprecated and will be removed in a later release. |
void |
destroyNotification(int assignmentID)
This method is used by the application to disable data session notifications. |
void |
disableNotifications()
This method is used to indicate that the application is not able to receive notifications for which the provisioning has been done from within the network. |
int |
enableNotifications()
This method is used to indicate that the application is able to receive which are provisioned from within the network (i.e. |
IpDataSessionConnection |
getIpDataSessionConnection(TpDataSessionIdentifier dataSessionIdentifier)
Obtains Access To a IpDataSession interface |
TpDataSessionEventCriteria |
getNotification()
Deprecated. This method is deprecated and its use is discouraged. It will be removed in a later release. It is replaced with getNotifications. This method is used by the application to query the event criteria set with createNotification or changeNotification. |
TpDataSessionEventCriteriaResult[] |
getNotifications()
This method replaces getNotification(). |
| Methods inherited from interface org.mobicents.csapi.jr.slee.IpServiceConnection |
|---|
closeConnection |
| Method Detail |
|---|
IpDataSessionConnection getIpDataSessionConnection(TpDataSessionIdentifier dataSessionIdentifier)
throws javax.slee.resource.ResourceException
ResourceException - If it is not possible to create the connection
int createNotification(TpDataSessionEventCriteria eventCriteria)
throws TpCommonExceptions,
P_INVALID_NETWORK_STATE,
P_INVALID_CRITERIA,
P_INVALID_EVENT_TYPE,
javax.slee.resource.ResourceException
eventCriteria - Specifies the event specific criteria used by the application to define the event required. Individual addresses or address ranges may be specified for destination and/or origination. Examples of events are "Data Session set up".
TpCommonExceptions
P_INVALID_NETWORK_STATE
P_INVALID_CRITERIA
P_INVALID_EVENT_TYPE
javax.slee.resource.ResourceException
void destroyNotification(int assignmentID)
throws TpCommonExceptions,
P_INVALID_NETWORK_STATE,
P_INVALID_ASSIGNMENT_ID,
javax.slee.resource.ResourceException
assignmentID - Specifies the assignment ID given by the data session manager object when the previous createNotification() was done.
TpCommonExceptions
P_INVALID_NETWORK_STATE
P_INVALID_ASSIGNMENT_ID
javax.slee.resource.ResourceException
void changeNotification(int assignmentID,
TpDataSessionEventCriteria eventCriteria)
throws TpCommonExceptions,
P_INVALID_NETWORK_STATE,
P_INVALID_ASSIGNMENT_ID,
P_INVALID_CRITERIA,
P_INVALID_EVENT_TYPE,
javax.slee.resource.ResourceException
assignmentID - Specifies the ID assigned by the manager interface for the event notification.eventCriteria - Specifies the new set of event criteria used by the application to define the event required. Only events that meet these criteria are reported.
TpCommonExceptions
P_INVALID_NETWORK_STATE
P_INVALID_ASSIGNMENT_ID
P_INVALID_CRITERIA
P_INVALID_EVENT_TYPE
javax.slee.resource.ResourceException
TpDataSessionEventCriteria getNotification()
throws TpCommonExceptions,
P_INVALID_NETWORK_STATE,
javax.slee.resource.ResourceException
TpCommonExceptions
P_INVALID_NETWORK_STATE
javax.slee.resource.ResourceException
int enableNotifications()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
void disableNotifications()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
TpDataSessionEventCriteriaResult[] getNotifications()
throws TpCommonExceptions,
P_INVALID_NETWORK_STATE,
javax.slee.resource.ResourceException
TpCommonExceptions
P_INVALID_NETWORK_STATE
javax.slee.resource.ResourceException
int createNotifications(TpDataSessionEventCriteria eventCriteria)
throws TpCommonExceptions,
P_INVALID_NETWORK_STATE,
P_INVALID_CRITERIA,
P_INVALID_EVENT_TYPE,
javax.slee.resource.ResourceException
eventCriteria - Specifies the event specific criteria used by the application to define the event required. Individual addresses or address ranges may be specified for destination and/or origination. Examples of events are "Data Session set up".
TpCommonExceptions
P_INVALID_NETWORK_STATE
P_INVALID_CRITERIA
P_INVALID_EVENT_TYPE
javax.slee.resource.ResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||