org.mobicents.media.server.connection
Class LocalConnectionImpl
java.lang.Object
org.mobicents.media.server.connection.BaseConnection
org.mobicents.media.server.connection.LocalConnectionImpl
- All Implemented Interfaces:
- Connection
public class LocalConnectionImpl
- extends BaseConnection
- Author:
- kulikov
| 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 |
LocalConnectionImpl
public LocalConnectionImpl(String id,
Connections connections,
Boolean isLocalToRemote)
throws Exception
- Throws:
Exception
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.