Package com.opencloud.sentinel.common
Class EtcAriCorrelationHelper
- java.lang.Object
-
- com.opencloud.sentinel.common.EtcAriCorrelationHelper
-
public class EtcAriCorrelationHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EtcAriCorrelationHelper(com.opencloud.slee.resources.correlation.CorrelationProvider provider, com.opencloud.rhino.facilities.ExtendedTracer tracer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConvergenceNameForCorrelationID(java.lang.String correlationId)Get the Convergence Name associated with the SBB entity that sent the ETC that corresponds to the received ARI.javax.slee.InitialEventSelectorinitialEventSelector(javax.slee.InitialEventSelector ies, com.opencloud.slee.resources.cgin.DialogOpenRequestEvent openRequest)A IES helper method for dialogs with one of anCCInitialDPRequestEventorCCAssistRequestInstructionsRequestEventcomponent.javax.slee.InitialEventSelectorinitialEventSelectorForARI(javax.slee.InitialEventSelector ies, com.opencloud.slee.resources.cgin.DialogOpenRequestEvent openRequest)A IES helper method for correlatingCCAssistRequestInstructionsRequestEventdialogs with the service which sent theCCEstablishTemporaryConnectionRequestEventIf there is noCCAssistRequestInstructionsRequestEventcomponent event, the IES will not be changed.javax.slee.InitialEventSelectorinitialEventSelectorForIDP(javax.slee.InitialEventSelector ies, com.opencloud.slee.resources.cgin.DialogOpenRequestEvent openRequest)A IES helper method for dialogs withCCInitialDPRequestEventevents used to set a custom convergence which is used for correlation with subsequentCCAssistRequestInstructionsRequestEventrequests on assisting dialogs.java.lang.StringnewCorrelationID(com.opencloud.slee.resources.cgin.callcontrol.CCDialog dialog)It ask for a new CorrelationId value to be used in a ETC operation that won't be used in another session until the corresponding ARI will be received.voidreleaseCorrelationId(java.lang.String correlationID)It frees the previously reserved correlationId in order it could be used in another call.
-
-
-
Method Detail
-
newCorrelationID
public java.lang.String newCorrelationID(com.opencloud.slee.resources.cgin.callcontrol.CCDialog dialog) throws com.opencloud.slee.resources.correlation.exceptions.NoAvailableEntriesException, java.lang.IllegalArgumentExceptionIt ask for a new CorrelationId value to be used in a ETC operation that won't be used in another session until the corresponding ARI will be received.- Parameters:
dialog-CCDialog- Returns:
- a new correlationID that is not being used in any other session
- Throws:
NoAvailableEntries- all possible CorrelationIds are being used so no more ETC messages could be managed at this momentjava.lang.IllegalArgumentException- if dialog is nullcom.opencloud.slee.resources.correlation.exceptions.NoAvailableEntriesException
-
getConvergenceNameForCorrelationID
public java.lang.String getConvergenceNameForCorrelationID(java.lang.String correlationId) throws com.opencloud.slee.resources.correlation.exceptions.NoAvailableEntriesException, com.opencloud.slee.resources.correlation.exceptions.CorrelationRequestExceptionGet the Convergence Name associated with the SBB entity that sent the ETC that corresponds to the received ARI. The convergence name is used by in an IES method so the ARI will be processed by the same SB entity that sent the ETC.- Parameters:
correlationId- the correlationID received in the ARI- Returns:
- the custom convergence name used in the corresponding ETC
- Throws:
com.opencloud.slee.resources.correlation.exceptions.CorrelationRequestExceptionNoAvailableEntries- the requested Correlation Id wasn't used by any registered ETC message.com.opencloud.slee.resources.correlation.exceptions.NoAvailableEntriesException
-
releaseCorrelationId
public void releaseCorrelationId(java.lang.String correlationID)
It frees the previously reserved correlationId in order it could be used in another call.- Parameters:
correlationID- the correlationID received in the ARI
-
initialEventSelector
public javax.slee.InitialEventSelector initialEventSelector(javax.slee.InitialEventSelector ies, com.opencloud.slee.resources.cgin.DialogOpenRequestEvent openRequest)A IES helper method for dialogs with one of anCCInitialDPRequestEventorCCAssistRequestInstructionsRequestEventcomponent. event in theDialogOpenRequestEvent.- Parameters:
ies-InitialEventSelectoropenRequest-DialogOpenRequestEvent- Returns:
InitialEventSelector
-
initialEventSelectorForIDP
public javax.slee.InitialEventSelector initialEventSelectorForIDP(javax.slee.InitialEventSelector ies, com.opencloud.slee.resources.cgin.DialogOpenRequestEvent openRequest)A IES helper method for dialogs withCCInitialDPRequestEventevents used to set a custom convergence which is used for correlation with subsequentCCAssistRequestInstructionsRequestEventrequests on assisting dialogs. If there is noCCInitialDPRequestEventcomponent event, the IES will not be changed.- Parameters:
ies-InitialEventSelectoropenRequest-DialogOpenRequestEvent- Returns:
InitialEventSelector
-
initialEventSelectorForARI
public javax.slee.InitialEventSelector initialEventSelectorForARI(javax.slee.InitialEventSelector ies, com.opencloud.slee.resources.cgin.DialogOpenRequestEvent openRequest)A IES helper method for correlatingCCAssistRequestInstructionsRequestEventdialogs with the service which sent theCCEstablishTemporaryConnectionRequestEventIf there is noCCAssistRequestInstructionsRequestEventcomponent event, the IES will not be changed.- Parameters:
ies-InitialEventSelectoropenRequest-DialogOpenRequestEvent- Returns:
InitialEventSelector
-
-