org.mobicents.jcc.inap
Class JccInapProviderImpl
java.lang.Object
org.mobicents.jcc.inap.JccInapProviderImpl
- All Implemented Interfaces:
- javax.csapi.cc.jcc.JccProvider, org.mobicents.protocols.ss7.tcap.api.TCListener
public class JccInapProviderImpl
- extends java.lang.Object
- implements javax.csapi.cc.jcc.JccProvider, org.mobicents.protocols.ss7.tcap.api.TCListener
- Author:
- Oleg Kulikov
|
Field Summary |
protected java.util.ArrayList |
callListeners
|
protected EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap |
calls
|
protected java.util.ArrayList |
connectionListeners
|
protected EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap |
connections
|
static int |
DEFAULT_POOL_SIZE
|
protected static java.lang.String |
name
|
protected org.mobicents.protocols.ss7.sccp.SccpProvider |
sccpProvider
|
protected org.mobicents.protocols.ss7.tcap.api.TCAPProvider |
tcapProvider
|
protected org.mobicents.protocols.ss7.tcap.api.TCAPStack |
tcapStack
|
| Fields inherited from interface javax.csapi.cc.jcc.JccProvider |
IN_SERVICE, OUT_OF_SERVICE, SHUTDOWN |
|
Constructor Summary |
JccInapProviderImpl(java.util.Properties properties)
Creates a new instance of JccInapProviderImpl |
|
Method Summary |
void |
addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
(Non java-doc) |
void |
addCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener listener)
(Non java-doc) |
void |
addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener,
javax.csapi.cc.jcc.EventFilter filter)
(Non java-doc) |
void |
addProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
|
protected javax.csapi.cc.jcc.JccAddress |
createAddress(CalledPartyBcdNumber cpn)
|
protected javax.csapi.cc.jcc.JccAddress |
createAddress(CalledPartyNumber cpn)
|
protected javax.csapi.cc.jcc.JccAddress |
createAddress(CallingPartyNumber cpn)
|
javax.csapi.cc.jcc.JccCall |
createCall()
(Non Java-doc). |
protected JccCallImpl |
createCall(javax.csapi.cc.jcc.JccAddress callingNumber)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterAddressRange(java.lang.String lowAddress,
java.lang.String highAddress,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterAddressRegEx(java.lang.String addressRegex,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterAnd(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterCauseCode(int causeCode,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterDestAddressRange(java.lang.String lowDestAddress,
java.lang.String highDestAddress,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterDestAddressRegEx(java.lang.String destAddressRegex,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterEventSet(int[] blockEvents,
int[] notifyEvents)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterMidCallEvent(int midCallType,
java.lang.String midCallValue,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterMinimunCollectedAddressLength(int minimumAddressLength,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterOr(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterOrigAddressRange(java.lang.String lowOrigAddress,
java.lang.String highOrigAddress,
int matchDisposition,
int nomatchDisposition)
|
javax.csapi.cc.jcc.EventFilter |
createEventFilterOrigAddressRegEx(java.lang.String origAddressRegex,
int matchDisposition,
int nomatchDisposition)
|
void |
dialogReleased(org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog d)
|
javax.csapi.cc.jcc.JccAddress |
getAddress(java.lang.String address)
|
protected JccCallImpl |
getCall(javax.csapi.cc.jcc.JccAddress callingNumber)
|
protected AbstractConnection |
getConnection(long connectionID)
|
java.lang.String |
getName()
|
int |
getState()
|
void |
onInvokeTimeout(org.mobicents.protocols.ss7.tcap.asn.comp.Invoke tcInvokeRequest)
|
void |
onTCBegin(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCBeginIndication ind)
|
void |
onTCContinue(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCContinueIndication ind)
|
void |
onTCEnd(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCEndIndication ind)
|
void |
onTCPAbort(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCPAbortIndication ind)
|
void |
onTCUni(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCUniIndication ind)
|
void |
onTCUserAbort(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCUserAbortIndication ind)
|
void |
removeCallListener(javax.csapi.cc.jcc.JccCallListener calllistener)
|
void |
removeCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener loadcontrollistener)
|
void |
removeConnectionListener(javax.csapi.cc.jcc.JccConnectionListener connectionlistener)
|
void |
removeProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
|
void |
setCallLoadControl(javax.csapi.cc.jcc.JccAddress[] address,
double duration,
double[] mechanism,
int[] treatment)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE
- See Also:
- Constant Field Values
name
protected static final java.lang.String name
- See Also:
- Constant Field Values
callListeners
protected java.util.ArrayList callListeners
connectionListeners
protected java.util.ArrayList connectionListeners
sccpProvider
protected org.mobicents.protocols.ss7.sccp.SccpProvider sccpProvider
tcapStack
protected org.mobicents.protocols.ss7.tcap.api.TCAPStack tcapStack
tcapProvider
protected org.mobicents.protocols.ss7.tcap.api.TCAPProvider tcapProvider
calls
protected EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap calls
connections
protected EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap connections
JccInapProviderImpl
public JccInapProviderImpl(java.util.Properties properties)
- Creates a new instance of JccInapProviderImpl
addCallListener
public void addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
throws javax.csapi.cc.jcc.MethodNotSupportedException,
javax.csapi.cc.jcc.ResourceUnavailableException
- (Non java-doc)
- Specified by:
addCallListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.ResourceUnavailableException- See Also:
javax.csapi.cc.jcc.JccProvier#addCallListener.
addCallLoadControlListener
public void addCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener listener)
throws javax.csapi.cc.jcc.MethodNotSupportedException,
javax.csapi.cc.jcc.ResourceUnavailableException
- (Non java-doc)
- Specified by:
addCallLoadControlListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.ResourceUnavailableException- See Also:
javax.csapi.cc.jcc.JccProvier#addCallLoadControlListener.
addConnectionListener
public void addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener,
javax.csapi.cc.jcc.EventFilter filter)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.MethodNotSupportedException
- (Non java-doc)
- Specified by:
addConnectionListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException- See Also:
javax.csapi.cc.jcc.JccProvier#addConnectionListener.
addProviderListener
public void addProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.MethodNotSupportedException
- Specified by:
addProviderListener in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException
createCall
public javax.csapi.cc.jcc.JccCall createCall()
throws javax.csapi.cc.jcc.InvalidStateException,
javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.PrivilegeViolationException,
javax.csapi.cc.jcc.MethodNotSupportedException
- (Non Java-doc).
- Specified by:
createCall in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.MethodNotSupportedException- See Also:
JccProvider.createCall().
createEventFilterAddressRange
public javax.csapi.cc.jcc.EventFilter createEventFilterAddressRange(java.lang.String lowAddress,
java.lang.String highAddress,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterAddressRange in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterAddressRegEx
public javax.csapi.cc.jcc.EventFilter createEventFilterAddressRegEx(java.lang.String addressRegex,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterAnd
public javax.csapi.cc.jcc.EventFilter createEventFilterAnd(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterAnd in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterCauseCode
public javax.csapi.cc.jcc.EventFilter createEventFilterCauseCode(int causeCode,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterCauseCode in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterDestAddressRange
public javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRange(java.lang.String lowDestAddress,
java.lang.String highDestAddress,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterDestAddressRange in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterDestAddressRegEx
public javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRegEx(java.lang.String destAddressRegex,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterDestAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterEventSet
public javax.csapi.cc.jcc.EventFilter createEventFilterEventSet(int[] blockEvents,
int[] notifyEvents)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterEventSet in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterMidCallEvent
public javax.csapi.cc.jcc.EventFilter createEventFilterMidCallEvent(int midCallType,
java.lang.String midCallValue,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterMidCallEvent in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterMinimunCollectedAddressLength
public javax.csapi.cc.jcc.EventFilter createEventFilterMinimunCollectedAddressLength(int minimumAddressLength,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterMinimunCollectedAddressLength in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterOr
public javax.csapi.cc.jcc.EventFilter createEventFilterOr(javax.csapi.cc.jcc.EventFilter[] filters,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterOr in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterOrigAddressRange
public javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRange(java.lang.String lowOrigAddress,
java.lang.String highOrigAddress,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterOrigAddressRange in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
createEventFilterOrigAddressRegEx
public javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRegEx(java.lang.String origAddressRegex,
int matchDisposition,
int nomatchDisposition)
throws javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidArgumentException
- Specified by:
createEventFilterOrigAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
getAddress
public javax.csapi.cc.jcc.JccAddress getAddress(java.lang.String address)
throws javax.csapi.cc.jcc.InvalidPartyException
- Specified by:
getAddress in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.InvalidPartyException
getName
public java.lang.String getName()
- Specified by:
getName in interface javax.csapi.cc.jcc.JccProvider
getState
public int getState()
- Specified by:
getState in interface javax.csapi.cc.jcc.JccProvider
removeCallListener
public void removeCallListener(javax.csapi.cc.jcc.JccCallListener calllistener)
- Specified by:
removeCallListener in interface javax.csapi.cc.jcc.JccProvider
removeCallLoadControlListener
public void removeCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener loadcontrollistener)
- Specified by:
removeCallLoadControlListener in interface javax.csapi.cc.jcc.JccProvider
removeConnectionListener
public void removeConnectionListener(javax.csapi.cc.jcc.JccConnectionListener connectionlistener)
- Specified by:
removeConnectionListener in interface javax.csapi.cc.jcc.JccProvider
removeProviderListener
public void removeProviderListener(javax.csapi.cc.jcc.JccProviderListener providerlistener)
- Specified by:
removeProviderListener in interface javax.csapi.cc.jcc.JccProvider
setCallLoadControl
public void setCallLoadControl(javax.csapi.cc.jcc.JccAddress[] address,
double duration,
double[] mechanism,
int[] treatment)
throws javax.csapi.cc.jcc.MethodNotSupportedException
- Specified by:
setCallLoadControl in interface javax.csapi.cc.jcc.JccProvider
- Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
shutdown
public void shutdown()
- Specified by:
shutdown in interface javax.csapi.cc.jcc.JccProvider
getCall
protected JccCallImpl getCall(javax.csapi.cc.jcc.JccAddress callingNumber)
getConnection
protected AbstractConnection getConnection(long connectionID)
createAddress
protected javax.csapi.cc.jcc.JccAddress createAddress(CalledPartyNumber cpn)
createAddress
protected javax.csapi.cc.jcc.JccAddress createAddress(CalledPartyBcdNumber cpn)
createAddress
protected javax.csapi.cc.jcc.JccAddress createAddress(CallingPartyNumber cpn)
createCall
protected JccCallImpl createCall(javax.csapi.cc.jcc.JccAddress callingNumber)
dialogReleased
public void dialogReleased(org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog d)
- Specified by:
dialogReleased in interface org.mobicents.protocols.ss7.tcap.api.TCListener
onInvokeTimeout
public void onInvokeTimeout(org.mobicents.protocols.ss7.tcap.asn.comp.Invoke tcInvokeRequest)
- Specified by:
onInvokeTimeout in interface org.mobicents.protocols.ss7.tcap.api.TCListener
onTCBegin
public void onTCBegin(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCBeginIndication ind)
- Specified by:
onTCBegin in interface org.mobicents.protocols.ss7.tcap.api.TCListener
onTCContinue
public void onTCContinue(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCContinueIndication ind)
- Specified by:
onTCContinue in interface org.mobicents.protocols.ss7.tcap.api.TCListener
onTCEnd
public void onTCEnd(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCEndIndication ind)
- Specified by:
onTCEnd in interface org.mobicents.protocols.ss7.tcap.api.TCListener
onTCUni
public void onTCUni(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCUniIndication ind)
- Specified by:
onTCUni in interface org.mobicents.protocols.ss7.tcap.api.TCListener
onTCPAbort
public void onTCPAbort(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCPAbortIndication ind)
- Specified by:
onTCPAbort in interface org.mobicents.protocols.ss7.tcap.api.TCListener
onTCUserAbort
public void onTCUserAbort(org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCUserAbortIndication ind)
- Specified by:
onTCUserAbort in interface org.mobicents.protocols.ss7.tcap.api.TCListener
Copyright © 2010. All Rights Reserved.