|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.connection.BaseConnection
org.mobicents.media.server.connection.RtpConnectionImpl
public class RtpConnectionImpl
| Field Summary | |
|---|---|
protected RTPFormats |
audioFormats
|
protected String |
descriptor
|
protected SdpTemplate |
template
|
protected RTPFormats |
videoFormats
|
| Fields inherited from class org.mobicents.media.server.connection.BaseConnection |
|---|
audioChannel, connections, videoChannel |
| Constructor Summary | |
|---|---|
RtpConnectionImpl(String id,
Connections connections,
Boolean isLocalToRemote)
|
|
| Method Summary | |
|---|---|
long |
getBytesReceived()
|
long |
getBytesReceived(MediaType media)
|
long |
getBytesTransmitted()
(Non Java-doc). |
long |
getBytesTransmitted(MediaType media)
(Non Java-doc). |
String |
getDescriptor()
(Non Java-doc). |
boolean |
getIsLocal()
Gets whether connection should be bound to local or remote interface , supported only for rtp connections. |
double |
getJitter()
(Non Java-doc). |
double |
getJitter(MediaType media)
|
long |
getPacketsReceived(MediaType media)
|
long |
getPacketsTransmitted(MediaType media)
(Non Java-doc). |
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 |
onRtpFailure()
|
void |
setConnectionFailureListener(ConnectionFailureListener connectionFailureListener)
Sets connection failure listener. |
void |
setIsLocal(boolean isLocal)
Gets whether connection should be bound to local or remote interface , supported only for rtp connections. |
void |
setMode(ConnectionMode mode)
(Non Java-doc). |
void |
setOtherParty(byte[] descriptor)
|
void |
setOtherParty(Connection other)
|
void |
setOtherParty(Text descriptor)
|
String |
toString()
|
| Methods inherited from class org.mobicents.media.server.connection.BaseConnection |
|---|
addListener, bind, close, getCheckPoint, getCheckPoint, getEndpoint, getId, getMode, getState, join, removeListener, setDtmfClamp, setGain, setMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected RTPFormats audioFormats
protected RTPFormats videoFormats
protected SdpTemplate template
protected String descriptor
| Constructor Detail |
|---|
public RtpConnectionImpl(String id,
Connections connections,
Boolean isLocalToRemote)
throws Exception
Exception| Method Detail |
|---|
public boolean getIsLocal()
getIsLocal in interface ConnectiongetIsLocal in class BaseConnectionpublic void setIsLocal(boolean isLocal)
setIsLocal in interface ConnectionsetIsLocal in class BaseConnection
public void setOtherParty(Connection other)
throws IOException
setOtherParty in interface ConnectionIOException
public void setMode(ConnectionMode mode)
throws ModeNotSupportedException
BaseConnection
setMode in interface ConnectionsetMode in class BaseConnectionModeNotSupportedExceptionConnection.setMode(org.mobicents.media.server.spi.ConnectionMode)
public void setOtherParty(byte[] descriptor)
throws IOException
setOtherParty in interface ConnectionIOException
public void setOtherParty(Text descriptor)
throws IOException
setOtherParty in interface ConnectionIOExceptionpublic String getDescriptor()
getDescriptor in interface ConnectiongetDescriptor in class BaseConnectionConnection.getDescriptor()public long getPacketsReceived(MediaType media)
getPacketsReceived in interface Connectionpublic long getBytesReceived(MediaType media)
getBytesReceived in interface Connectionpublic long getBytesReceived()
getBytesReceived in interface Connectionpublic long getPacketsTransmitted(MediaType media)
getPacketsTransmitted in interface ConnectionConnection.getPacketsTransmitted(org.mobicents.media.server.spi.MediaType)public long getBytesTransmitted(MediaType media)
getBytesTransmitted in interface ConnectionConnection.getBytesTransmitted(org.mobicents.media.server.spi.MediaType)public long getBytesTransmitted()
getBytesTransmitted in interface ConnectionConnection.getBytesTransmitted()public double getJitter(MediaType media)
getJitter in interface Connectionpublic double getJitter()
getJitter in interface ConnectionConnection.getJitter()public String toString()
toString in class Objectpublic void onRtpFailure()
onRtpFailure in interface RTPChannelListenerpublic void setConnectionFailureListener(ConnectionFailureListener connectionFailureListener)
BaseConnection
setConnectionFailureListener in interface ConnectionsetConnectionFailureListener in class BaseConnection
protected void onCreated()
throws Exception
BaseConnection
onCreated in class BaseConnectionExceptionprotected void onFailed()
BaseConnection
onFailed in class BaseConnection
protected void onOpened()
throws Exception
BaseConnection
onOpened in class BaseConnectionExceptionprotected void onClosed()
BaseConnection
onClosed in class BaseConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||