|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.jcc.inap.AbstractConnection
public abstract class AbstractConnection
| Field Summary | |
|---|---|
protected javax.csapi.cc.jcc.JccAddress |
address
|
static int |
ADDRESS_ANALYZE_TIMEOUT
|
static int |
ALERTING_TIMEOUT
|
static int |
AUTH_TIMEOUT
|
protected JccCallImpl |
call
|
static int |
CALL_DELIVERY_TIMEOUT
|
protected int |
cause
|
static int |
CONNECTED_TIMEOUT
|
protected ConnectionID |
connectionID
|
static int |
IDLE_TIMEOUT
|
protected boolean |
isBlocked
|
protected EDU.oswego.cs.dl.util.concurrent.Semaphore |
semaphore
|
protected int |
state
|
protected org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog |
tcapDialog
|
protected org.mobicents.protocols.ss7.tcap.api.TCAPProvider |
tcapProvider
|
protected LocalTimer |
timer
|
| Fields inherited from interface javax.csapi.cc.jcc.JccConnection |
|---|
ADDRESS_ANALYZE, ADDRESS_COLLECT, ALERTING, AUTHORIZE_CALL_ATTEMPT, CALL_DELIVERY, CONNECTED, DISCONNECTED, FAILED, IDLE |
| Constructor Summary | |
|---|---|
AbstractConnection(ConnectionID connectionID,
JccCallImpl call,
javax.csapi.cc.jcc.JccAddress address,
org.mobicents.protocols.ss7.tcap.api.TCAPProvider provider,
org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog tcapDialog)
Creates a new instance of AbstractConnection |
|
| Method Summary | |
|---|---|
protected void |
block()
|
protected void |
close()
|
void |
continueProcessing()
(Non Java-doc). |
protected void |
fireConnectionEvent(javax.csapi.cc.jcc.JccConnectionEvent event)
|
protected void |
forceDisconnect()
|
javax.csapi.cc.jcc.JccAddress |
getAddress()
(Non Java-doc). |
javax.csapi.cc.jcc.JccCall |
getCall()
(Non Java-doc). |
static java.lang.String |
getCauseName(int cause)
|
ConnectionID |
getID()
|
int |
getState()
(Non Java-doc). |
static java.lang.String |
getStateName(int state)
|
boolean |
isBlocked()
(Non Java-doc). |
protected void |
notifyDisconnectImmediately(java.util.ArrayList listeners,
javax.csapi.cc.jcc.JccConnectionEvent event)
|
abstract void |
onAddressAnalyze(JccConnectionEventImpl evt)
|
abstract void |
onAddressCollect()
|
abstract void |
onAlerting()
|
abstract void |
onAuthorizeCallAttempt()
|
abstract void |
onCallDelivery()
|
abstract void |
onConnected()
|
void |
onConnectionCreated()
Handle InitialDP detection point. |
void |
onDisconnected()
|
void |
onFailed()
Handle tc_abort event |
void |
queueEvent(javax.csapi.cc.jcc.JccEvent event)
|
void |
release(int causeCode)
(Non Java-doc). |
protected void |
resume()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.csapi.cc.jcc.JccConnection |
|---|
answer, attachMedia, detachMedia, getDestinationAddress, getLastAddress, getMidCallData, getOriginalAddress, getOriginatingAddress, getRedirectedAddress, routeConnection, selectRoute |
| Field Detail |
|---|
public static final int IDLE_TIMEOUT
public static final int AUTH_TIMEOUT
public static final int ADDRESS_ANALYZE_TIMEOUT
public static final int CALL_DELIVERY_TIMEOUT
public static final int ALERTING_TIMEOUT
public static final int CONNECTED_TIMEOUT
protected ConnectionID connectionID
protected volatile boolean isBlocked
protected javax.csapi.cc.jcc.JccAddress address
protected JccCallImpl call
protected volatile int state
protected volatile int cause
protected LocalTimer timer
protected EDU.oswego.cs.dl.util.concurrent.Semaphore semaphore
protected org.mobicents.protocols.ss7.tcap.api.TCAPProvider tcapProvider
protected org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog tcapDialog
| Constructor Detail |
|---|
public AbstractConnection(ConnectionID connectionID,
JccCallImpl call,
javax.csapi.cc.jcc.JccAddress address,
org.mobicents.protocols.ss7.tcap.api.TCAPProvider provider,
org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog tcapDialog)
| Method Detail |
|---|
public ConnectionID getID()
public javax.csapi.cc.jcc.JccAddress getAddress()
getAddress in interface javax.csapi.cc.jcc.JccConnectionJccConnection.getAddress().public javax.csapi.cc.jcc.JccCall getCall()
getCall in interface javax.csapi.cc.jcc.JccConnectionJccConnection.getCall().public int getState()
getState in interface javax.csapi.cc.jcc.JccConnectionJccConnection.getState().public boolean isBlocked()
isBlocked in interface javax.csapi.cc.jcc.JccConnectionJccConnection.isBlocked().
public void release(int causeCode)
throws javax.csapi.cc.jcc.PrivilegeViolationException,
javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidStateException,
javax.csapi.cc.jcc.InvalidArgumentException
release in interface javax.csapi.cc.jcc.JccConnectionjavax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.InvalidArgumentExceptionjavax.csapi.cc.jcc.JccConnection#release().
public void continueProcessing()
throws javax.csapi.cc.jcc.PrivilegeViolationException,
javax.csapi.cc.jcc.ResourceUnavailableException,
javax.csapi.cc.jcc.InvalidStateException
continueProcessing in interface javax.csapi.cc.jcc.JccConnectionjavax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidStateExceptionJccConnection.continueProcessing().public void queueEvent(javax.csapi.cc.jcc.JccEvent event)
protected void block()
protected void resume()
public void onConnectionCreated()
public abstract void onAuthorizeCallAttempt()
public abstract void onAddressCollect()
public abstract void onAddressAnalyze(JccConnectionEventImpl evt)
public abstract void onCallDelivery()
public abstract void onAlerting()
public abstract void onConnected()
public void onFailed()
public void onDisconnected()
protected void notifyDisconnectImmediately(java.util.ArrayList listeners,
javax.csapi.cc.jcc.JccConnectionEvent event)
protected void forceDisconnect()
protected void close()
protected void fireConnectionEvent(javax.csapi.cc.jcc.JccConnectionEvent event)
public static java.lang.String getStateName(int state)
public static java.lang.String getCauseName(int cause)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||