public class LocalConnectionImpl extends BaseConnection implements PooledObject
| Constructor and Description |
|---|
LocalConnectionImpl(int id,
org.mobicents.media.server.impl.rtp.ChannelsManager channelsManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIn() |
void |
checkOut() |
void |
generateCname() |
void |
generateOffer(boolean webrtc) |
AudioComponent |
getAudioComponent() |
long |
getBytesReceived() |
long |
getBytesTransmitted() |
String |
getCname() |
double |
getJitter() |
OOBComponent |
getOOBComponent() |
long |
getPacketsReceived() |
long |
getPacketsTransmitted() |
boolean |
isAvailable() |
protected void |
onClosed()
Called when connection is moving from OPEN state to NULL state.
|
protected void |
onCreated()
Called when connection created.
|
protected void |
onFailed()
Called if failure has bean detected during transition.
|
protected void |
onOpened()
Called when connected moved to OPEN state.
|
void |
setConnectionFailureListener(ConnectionFailureListener connectionListener)
Sets connection failure listener.
|
void |
setMode(ConnectionMode mode)
Modify mode of this connection for all known media types.
|
void |
setOtherParty(byte[] descriptor)
Joins endpoint which executes this connection with other party.
|
void |
setOtherParty(Connection other)
Joins endpoint wich executes this connection with other party.
|
void |
setOtherParty(Text descriptor)
Joins endpoint which executes this connection with other party.
|
String |
toString() |
addListener, bind, close, getDescriptor, getEndpoint, getId, getIsLocal, getLocalDescriptor, getMode, getRemoteDescriptor, getState, getTextualId, join, releaseConnection, removeListener, setEndpoint, setIsLocalpublic LocalConnectionImpl(int id,
org.mobicents.media.server.impl.rtp.ChannelsManager channelsManager)
public void generateCname()
generateCname in interface Connectionpublic String getCname()
getCname in interface Connectionpublic AudioComponent getAudioComponent()
getAudioComponent in class BaseConnectionpublic OOBComponent getOOBComponent()
getOOBComponent in class BaseConnectionpublic void generateOffer(boolean webrtc)
throws IOException
generateOffer in interface ConnectionIOExceptionpublic void setOtherParty(Connection other) throws IOException
BaseConnectionsetOtherParty in interface ConnectionsetOtherParty in class BaseConnectionother - the connection executed by other party endpoint.IOExceptionpublic void setOtherParty(Text descriptor) throws IOException
BaseConnectionsetOtherParty in interface ConnectionsetOtherParty in class BaseConnectiondescriptor - the SDP descriptor of the other party.IOExceptionpublic void setOtherParty(byte[] descriptor)
throws IOException
BaseConnectionsetOtherParty in interface ConnectionsetOtherParty in class BaseConnectiondescriptor - the SDP descriptor of the other party.IOExceptionpublic long getPacketsReceived()
getPacketsReceived in interface Connectionpublic long getBytesReceived()
getBytesReceived in interface Connectionpublic long getPacketsTransmitted()
getPacketsTransmitted in interface Connectionpublic long getBytesTransmitted()
getBytesTransmitted in interface Connectionpublic double getJitter()
getJitter in interface Connectionpublic void setConnectionFailureListener(ConnectionFailureListener connectionListener)
BaseConnectionsetConnectionFailureListener in interface ConnectionsetConnectionFailureListener in class BaseConnectionprotected void onCreated()
throws Exception
BaseConnectiononCreated in class BaseConnectionExceptionprotected void onFailed()
BaseConnectiononFailed in class BaseConnectionpublic void setMode(ConnectionMode mode) throws ModeNotSupportedException
BaseConnectionsetMode in interface ConnectionsetMode in class BaseConnectionmode - the new mode of the connection.ModeNotSupportedExceptionprotected void onOpened()
throws Exception
BaseConnectiononOpened in class BaseConnectionExceptionprotected void onClosed()
BaseConnectiononClosed in class BaseConnectionpublic boolean isAvailable()
isAvailable in interface Connectionpublic void checkIn()
checkIn in interface PooledObjectpublic void checkOut()
checkOut in interface PooledObjectCopyright © 2016 TeleStax, Inc.. All Rights Reserved.