|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.transport.rtp.RTPLink
public class RTPLink
An RTP implementation of the Link interface. To deal with raw RTP clients we need to establish two underlying communication paths. One is for the rtp data packets and the other is for rtcp control packets. This RTPLink class is used for unicast UDP communications. This link can subscribe to one or more topics. It publishes the received data on one topic pair. It publishes the rtp data on the given even numbered topic and rtcp data on the following odd numbered topic.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
RTPLink(InetAddress remoteAddress,
int remotePort,
int localPort,
int publicationTopic,
RTPLinkFactory rtpLinkFactory)
create an RTPLink with the given parameters. |
|
| Method Summary | |
|---|---|
void |
closeLink()
Garbage collect resources associated with this link. |
LinkPerformanceData[] |
getAllPerformanceData()
Returns the complete set of performance factors measured and their corresponding values |
String |
getLinkId()
Retrieves the String based id of the link |
String |
getLinkType()
Returns the type of the communication link |
Object |
getNaradaBrokeringId()
Returns the NaradaBrokeringId associated with this link |
String |
getPerformanceData(String factorName)
Returns the value of a performance factor as a string |
String[] |
getPerformanceFactorsMeasured()
Returns the list of performance factors that are measured on this communication link |
String |
getSecurityInformation()
Information pertaining to the security strategy adopted for this communication link |
TransportHandler |
getTransportHandler()
|
boolean |
isSecure()
Indicates weather communication is encrypted on this link |
boolean |
performanceGatheringEnabled()
Used to test weather performing gathering is enabled for a given communication link |
void |
processLossOfSocketConnection(boolean senderNotification)
If the senderNotification is false, it implies that the detection of connection loss has been reported by the receiver thread. |
void |
sendData(byte[] data)
The method used to send data over a communication link |
void |
sendData(byte[] data,
String dataType)
The method used to send data over a communication link, this method also includes information regarding the type (audio/video/xml-attachments etc.) of the data encapsulated within the data stream. |
void |
setKeepAliveTime(long keepAliveTime)
Set the amount of time after which resources associated with this link need to be garbage collected. |
void |
setLinkId(String stringId)
Sets the Id of the communication link |
void |
setLinkMigrationConstraint(String constraint,
String linkType)
Sets the conditions under which communication protocols need to be switched and the transport link that it should be switched to under the condition. |
void |
setLinkStatusInterval(long interval)
Check the status of the communication link at intervals specified in the argument of this method |
void |
setNaradaBrokeringId(Object brokeringId)
The Naradabrokering Id of the node this link interacts with |
void |
setPerformanceGathering(boolean gather)
Used to enable or disable performance gathering on a communication link |
String |
subscribe(int topicNumber)
the topicNumber to subscribe. |
String |
unsubscribe(int topicNumber)
the topicNumber to unsubscribe. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RTPLink(InetAddress remoteAddress,
int remotePort,
int localPort,
int publicationTopic,
RTPLinkFactory rtpLinkFactory)
throws Exception
Exception| Method Detail |
|---|
public void sendData(byte[] data)
throws TransportException
sendData in interface LinkTransportException
public void sendData(byte[] data,
String dataType)
throws TransportException
sendData in interface LinkTransportExceptionpublic void setLinkId(String stringId)
setLinkId in interface Linkpublic String getLinkId()
getLinkId in interface Linkpublic void setNaradaBrokeringId(Object brokeringId)
setNaradaBrokeringId in interface Linkpublic Object getNaradaBrokeringId()
getNaradaBrokeringId in interface Linkpublic String getLinkType()
getLinkType in interface Link
public void setLinkMigrationConstraint(String constraint,
String linkType)
setLinkMigrationConstraint in interface Linkpublic void setLinkStatusInterval(long interval)
setLinkStatusInterval in interface Linkpublic void setPerformanceGathering(boolean gather)
setPerformanceGathering in interface Linkpublic boolean performanceGatheringEnabled()
performanceGatheringEnabled in interface Linkpublic String[] getPerformanceFactorsMeasured()
getPerformanceFactorsMeasured in interface Linkpublic LinkPerformanceData[] getAllPerformanceData()
getAllPerformanceData in interface Linkpublic String getPerformanceData(String factorName)
getPerformanceData in interface Linkpublic void setKeepAliveTime(long keepAliveTime)
setKeepAliveTime in interface Linkpublic void closeLink()
closeLink in interface Linkpublic boolean isSecure()
isSecure in interface Linkpublic String getSecurityInformation()
getSecurityInformation in interface Linkpublic void processLossOfSocketConnection(boolean senderNotification)
public TransportHandler getTransportHandler()
public String subscribe(int topicNumber)
public String unsubscribe(int topicNumber)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||