|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.testsuite.general.rtp.RtpSocketFactoryImpl
public class RtpSocketFactoryImpl
Start time:09:56:52 2009-08-03
Project: mobicents-media-server-test-suite
| Field Summary | |
|---|---|
protected java.util.HashMap<java.nio.channels.SelectionKey,RtpSocket> |
rtpSockets
|
| Constructor Summary | |
|---|---|
RtpSocketFactoryImpl()
|
|
| Method Summary | |
|---|---|
RtpSocket |
createSocket()
|
java.lang.String |
getBindAddress()
Gets the IP address to which trunk is bound. |
java.util.Vector<javax.sdp.Attribute> |
getFormatMap()
|
int |
getHighPort()
|
int |
getLowPort()
|
java.lang.String |
getPortRange()
Gets the available port range. |
java.nio.channels.SelectionKey |
registerSocket(RtpSocketImpl rtpSocketImpl)
|
void |
releaseSocket(RtpSocket rtpSocket)
|
void |
setBindAddress(java.lang.String bindAddress)
Modify the bind address. |
void |
setFormatMap(java.util.Vector<javax.sdp.Attribute> originalFormatMap)
|
void |
setHighPort(int hightPort)
|
void |
setLowPort(int lowPort)
|
void |
setPortRange(java.lang.String port)
Modify port used to create RTP stream. |
void |
start()
|
void |
stop()
Terminates execution of created sockets, this is hard stop method, which will propably break calls. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile java.util.HashMap<java.nio.channels.SelectionKey,RtpSocket> rtpSockets
| Constructor Detail |
|---|
public RtpSocketFactoryImpl()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public RtpSocket createSocket()
throws java.net.SocketException,
java.io.IOException
createSocket in interface RtpSocketFactoryjava.net.SocketException
java.io.IOExceptionpublic void releaseSocket(RtpSocket rtpSocket)
releaseSocket in interface RtpSocketFactorypublic java.util.Vector<javax.sdp.Attribute> getFormatMap()
getFormatMap in interface RtpSocketFactory
public void setBindAddress(java.lang.String bindAddress)
throws java.net.UnknownHostException
RtpSocketFactory
setBindAddress in interface RtpSocketFactorybindAddress - IP address as string or host name.
java.net.UnknownHostExceptionpublic void setFormatMap(java.util.Vector<javax.sdp.Attribute> originalFormatMap)
setFormatMap in interface RtpSocketFactorypublic void stop()
RtpSocketFactory
stop in interface RtpSocketFactorypublic java.lang.String getBindAddress()
RtpSocketFactory
getBindAddress in interface RtpSocketFactory
public void start()
throws java.net.SocketException,
java.io.IOException
start in interface RtpSocketFactoryjava.net.SocketException
java.io.IOExceptionpublic java.lang.String getPortRange()
RtpSocketFactory
getPortRange in interface RtpSocketFactorypublic void setPortRange(java.lang.String port)
RtpSocketFactory
setPortRange in interface RtpSocketFactoryport - the string in format "lowPort-highPort"public int getLowPort()
getLowPort in interface RtpSocketFactorypublic void setLowPort(int lowPort)
public int getHighPort()
getHighPort in interface RtpSocketFactorypublic void setHighPort(int hightPort)
public java.nio.channels.SelectionKey registerSocket(RtpSocketImpl rtpSocketImpl)
throws java.nio.channels.ClosedChannelException
rtpSocketImpl -
java.nio.channels.ClosedChannelException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||