org.mobicents.media.server.connection
Class LocalConnectionImpl

java.lang.Object
  extended by org.mobicents.media.server.connection.BaseConnection
      extended by org.mobicents.media.server.connection.LocalConnectionImpl
All Implemented Interfaces:
Connection

public class LocalConnectionImpl
extends BaseConnection

Author:
kulikov

Field Summary
 
Fields inherited from class org.mobicents.media.server.connection.BaseConnection
audioChannel, connections, videoChannel
 
Constructor Summary
LocalConnectionImpl(String id, Connections connections, Boolean isLocalToRemote)
           
 
Method Summary
 long getBytesReceived()
           
 long getBytesReceived(MediaType media)
           
 long getBytesTransmitted()
           
 long getBytesTransmitted(MediaType media)
           
 double getJitter()
           
 double getJitter(MediaType media)
           
 long getPacketsReceived(MediaType media)
           
 long getPacketsTransmitted(MediaType media)
           
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 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, getDescriptor, getEndpoint, getId, getIsLocal, getMode, getState, join, removeListener, setDtmfClamp, setGain, setIsLocal, setMode, setMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalConnectionImpl

public LocalConnectionImpl(String id,
                           Connections connections,
                           Boolean isLocalToRemote)
                    throws Exception
Throws:
Exception
Method Detail

setOtherParty

public void setOtherParty(Connection other)
                   throws IOException
Throws:
IOException

setOtherParty

public void setOtherParty(Text descriptor)
                   throws IOException
Throws:
IOException

setOtherParty

public void setOtherParty(byte[] descriptor)
                   throws IOException
Throws:
IOException

getPacketsReceived

public long getPacketsReceived(MediaType media)

getBytesReceived

public long getBytesReceived(MediaType media)

getBytesReceived

public long getBytesReceived()

getPacketsTransmitted

public long getPacketsTransmitted(MediaType media)

getBytesTransmitted

public long getBytesTransmitted(MediaType media)

getBytesTransmitted

public long getBytesTransmitted()

toString

public String toString()
Overrides:
toString in class Object

getJitter

public double getJitter(MediaType media)

getJitter

public double getJitter()

setConnectionFailureListener

public void setConnectionFailureListener(ConnectionFailureListener connectionListener)
Description copied from class: BaseConnection
Sets connection failure listener.

Specified by:
setConnectionFailureListener in interface Connection
Specified by:
setConnectionFailureListener in class BaseConnection

onCreated

protected void onCreated()
                  throws Exception
Description copied from class: BaseConnection
Called when connection created.

Specified by:
onCreated in class BaseConnection
Throws:
Exception

onFailed

protected void onFailed()
Description copied from class: BaseConnection
Called if failure has bean detected during transition.

Specified by:
onFailed in class BaseConnection

onOpened

protected void onOpened()
                 throws Exception
Description copied from class: BaseConnection
Called when connected moved to OPEN state.

Specified by:
onOpened in class BaseConnection
Throws:
Exception

onClosed

protected void onClosed()
Description copied from class: BaseConnection
Called when connection is moving from OPEN state to NULL state.

Specified by:
onClosed in class BaseConnection


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.