org.mobicents.media.server
Class RtpConnectionImpl

java.lang.Object
  extended by org.mobicents.media.server.ConnectionImpl
      extended by org.mobicents.media.server.RtpConnectionImpl
All Implemented Interfaces:
java.io.Serializable, RtpSocketListener, org.mobicents.media.server.spi.clock.Task, org.mobicents.media.server.spi.Connection

public class RtpConnectionImpl
extends ConnectionImpl
implements RtpSocketListener

Author:
kulikov, amit bhayani
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.media.server.ConnectionImpl
connectionListeners, mode, rxChannels, stream, txChannels
 
Fields inherited from interface org.mobicents.media.server.spi.Connection
CHANNEL_RX, CHANNEL_TX
 
Constructor Summary
RtpConnectionImpl(EndpointImpl endpoint)
           
 
Method Summary
protected  void bind()
           
protected  void bind(org.mobicents.media.server.spi.MediaType mediaType)
           
 void close()
           
 void close(org.mobicents.media.server.spi.MediaType mediaType)
           
 void error(java.lang.Exception e)
          This method is call when some exceptions detected.
 long getBytesReceived()
          (Non Java-doc).
 long getBytesReceived(org.mobicents.media.server.spi.MediaType media)
          (Non Java-doc).
 long getBytesTransmitted()
          (Non Java-doc).
 long getBytesTransmitted(org.mobicents.media.server.spi.MediaType media)
          (Non Java-doc).
 double getJitter()
          (Non Java-doc).
 double getJitter(org.mobicents.media.server.spi.MediaType media)
          (Non Java-doc).
 java.lang.String getLocalDescriptor()
           
 long getPacketsReceived(org.mobicents.media.server.spi.MediaType media)
          (Non Java-doc).
 long getPacketsTransmitted(org.mobicents.media.server.spi.MediaType media)
          (Non Java-doc).
 java.lang.String getRemoteDescriptor()
           
protected  void join()
          Joins channels with sources and sinks.
protected  void join(org.mobicents.media.server.spi.MediaType mediaType)
           
 void setOtherParty(org.mobicents.media.server.spi.Connection other)
           
 void setOtherParty(org.mobicents.media.server.spi.Connection other, org.mobicents.media.server.spi.MediaType mediaType)
           
 void setOtherParty(java.lang.String media, java.net.InetSocketAddress address)
           
 void setRemoteDescriptor(java.lang.String descriptor)
           
 java.lang.String toString()
           
 
Methods inherited from class org.mobicents.media.server.ConnectionImpl
addListener, addNotificationListener, cancel, getComponent, getComponent, getEndpoint, getId, getIndex, getLifeTime, getMode, getStartTime, getState, isActive, perform, removeListener, removeNotificationListener, setIndex, setLifeTime, setMode, setMode, setStartTime, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RtpConnectionImpl

public RtpConnectionImpl(EndpointImpl endpoint)
                  throws org.mobicents.media.server.spi.ResourceUnavailableException
Throws:
org.mobicents.media.server.spi.ResourceUnavailableException
Method Detail

join

protected void join(org.mobicents.media.server.spi.MediaType mediaType)
Overrides:
join in class ConnectionImpl

join

protected void join()
Description copied from class: ConnectionImpl
Joins channels with sources and sinks.

Overrides:
join in class ConnectionImpl

bind

protected void bind(org.mobicents.media.server.spi.MediaType mediaType)
             throws org.mobicents.media.server.spi.ResourceUnavailableException
Overrides:
bind in class ConnectionImpl
Throws:
org.mobicents.media.server.spi.ResourceUnavailableException

bind

protected void bind()
             throws org.mobicents.media.server.spi.ResourceUnavailableException
Throws:
org.mobicents.media.server.spi.ResourceUnavailableException

getLocalDescriptor

public java.lang.String getLocalDescriptor()
Specified by:
getLocalDescriptor in interface org.mobicents.media.server.spi.Connection

getRemoteDescriptor

public java.lang.String getRemoteDescriptor()
Specified by:
getRemoteDescriptor in interface org.mobicents.media.server.spi.Connection

setRemoteDescriptor

public void setRemoteDescriptor(java.lang.String descriptor)
                         throws java.io.IOException,
                                org.mobicents.media.server.spi.ResourceUnavailableException
Specified by:
setRemoteDescriptor in interface org.mobicents.media.server.spi.Connection
Throws:
java.io.IOException
org.mobicents.media.server.spi.ResourceUnavailableException

setOtherParty

public void setOtherParty(org.mobicents.media.server.spi.Connection other)
                   throws java.io.IOException
Specified by:
setOtherParty in interface org.mobicents.media.server.spi.Connection
Throws:
java.io.IOException

setOtherParty

public void setOtherParty(org.mobicents.media.server.spi.Connection other,
                          org.mobicents.media.server.spi.MediaType mediaType)
                   throws java.io.IOException
Specified by:
setOtherParty in interface org.mobicents.media.server.spi.Connection
Throws:
java.io.IOException

close

public void close(org.mobicents.media.server.spi.MediaType mediaType)
Overrides:
close in class ConnectionImpl

close

public void close()
Overrides:
close in class ConnectionImpl

error

public void error(java.lang.Exception e)
Description copied from interface: RtpSocketListener
This method is call when some exceptions detected.

Specified by:
error in interface RtpSocketListener
Parameters:
e - the exception detected by RtpSocketAdaptor.

getPacketsReceived

public long getPacketsReceived(org.mobicents.media.server.spi.MediaType media)
(Non Java-doc).

Specified by:
getPacketsReceived in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getPacketsReceived(org.mobicents.media.server.spi.MediaType)

getBytesReceived

public long getBytesReceived(org.mobicents.media.server.spi.MediaType media)
(Non Java-doc).

Specified by:
getBytesReceived in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getBytesReceived(org.mobicents.media.server.spi.MediaType)

getBytesReceived

public long getBytesReceived()
(Non Java-doc).

Specified by:
getBytesReceived in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getBytesReceived()

getPacketsTransmitted

public long getPacketsTransmitted(org.mobicents.media.server.spi.MediaType media)
(Non Java-doc).

Specified by:
getPacketsTransmitted in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getPacketsTransmitted(org.mobicents.media.server.spi.MediaType)

getBytesTransmitted

public long getBytesTransmitted(org.mobicents.media.server.spi.MediaType media)
(Non Java-doc).

Specified by:
getBytesTransmitted in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getBytesTransmitted(org.mobicents.media.server.spi.MediaType)

getBytesTransmitted

public long getBytesTransmitted()
(Non Java-doc).

Specified by:
getBytesTransmitted in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getBytesTransmitted()

getJitter

public double getJitter(org.mobicents.media.server.spi.MediaType media)
(Non Java-doc).

Specified by:
getJitter in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getJitter(org.mobicents.media.server.spi.MediaType)

getJitter

public double getJitter()
(Non Java-doc).

Specified by:
getJitter in interface org.mobicents.media.server.spi.Connection
See Also:
Connection.getJitter()

setOtherParty

public void setOtherParty(java.lang.String media,
                          java.net.InetSocketAddress address)
                   throws java.io.IOException
Specified by:
setOtherParty in interface org.mobicents.media.server.spi.Connection
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.