|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.samples.security.NBMediaConnector
public class NBMediaConnector
| Field Summary | |
|---|---|
protected TransportHandler |
transportHandler
|
| Constructor Summary | |
|---|---|
NBMediaConnector(String ip,
int brkPort,
int entityID)
|
|
NBMediaConnector(String ip,
int brkPort,
int entityID,
int topicNo)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
closeBrokerConnection()
|
javax.media.protocol.PushSourceStream |
getControlInputStream()
Returns an input stream to receive the RTCP data. |
javax.media.rtp.OutputDataStream |
getControlOutputStream()
Returns an output stream to send the RTCP data. |
String |
getControlTopic()
|
javax.media.protocol.PushSourceStream |
getDataInputStream()
Returns an input stream to receive the RTP data. |
javax.media.rtp.OutputDataStream |
getDataOutputStream()
Returns an output stream to send the RTP data. |
String |
getDataTopic()
|
int |
getReceiveBufferSize()
Get the receive buffer size set on the RTP data channel. |
double |
getRTCPBandwidthFraction()
Return the RTCP bandwidth fraction. |
double |
getRTCPSenderBandwidthFraction()
Return the RTCP sender bandwidth fraction. |
int |
getSendBufferSize()
Get the send buffer size set on the RTP data channel. |
void |
initializeBrokerCommunications(Properties props,
String commType)
|
void |
initializeTransmitter(String sig,
String mode,
String padding,
String _data,
SecureTopicKeyResponse dataToken,
String _control,
SecureTopicKeyResponse controlToken,
PrivateKey priv)
|
boolean |
isClient()
|
void |
onEvent(NBEvent nbEvent)
Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery |
void |
publishEvent(byte[] data,
int offset,
int length,
String tpcName)
|
void |
setEncryptedControlTopicUUID(String encryptedControlTopicUUID)
|
void |
setEncryptedDataTopicUUID(String encryptedDataTopicUUID)
|
void |
setPublishEnabled(boolean toPublish)
Enable or diable publishing of streams |
void |
setReceiveBufferSize(int size)
Set the receive buffer size of the RTP data channel. |
void |
setSendBufferSize(int size)
Set the send buffer size of the RTP data channel. |
void |
subscribe(String _data,
SecureTopicKeyResponse r2,
PublicKey rootCAPubKey)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TransportHandler transportHandler
| Constructor Detail |
|---|
public NBMediaConnector(String ip,
int brkPort,
int entityID,
int topicNo)
public NBMediaConnector(String ip,
int brkPort,
int entityID)
| Method Detail |
|---|
public void initializeBrokerCommunications(Properties props,
String commType)
throws ServiceException
ServiceExceptionpublic String getControlTopic()
public String getDataTopic()
public void subscribe(String _data,
SecureTopicKeyResponse r2,
PublicKey rootCAPubKey)
throws ServiceException
ServiceException
public void initializeTransmitter(String sig,
String mode,
String padding,
String _data,
SecureTopicKeyResponse dataToken,
String _control,
SecureTopicKeyResponse controlToken,
PrivateKey priv)
throws ServiceException
ServiceExceptionpublic void setEncryptedControlTopicUUID(String encryptedControlTopicUUID)
encryptedControlTopicUUID - The encryptedControlTopicUUID to set.public void setEncryptedDataTopicUUID(String encryptedDataTopicUUID)
encryptedDataTopicUUID - The encryptedDataTopicUUID to set.public void onEvent(NBEvent nbEvent)
NBEventListener
onEvent in interface NBEventListenerpublic void setPublishEnabled(boolean toPublish)
public void publishEvent(byte[] data,
int offset,
int length,
String tpcName)
throws ServiceException,
NBEventException
ServiceException
NBEventExceptionpublic boolean isClient()
public void close()
close in interface javax.media.rtp.RTPConnector
public void closeBrokerConnection()
throws ServiceException
ServiceExceptionpublic javax.media.protocol.PushSourceStream getDataInputStream()
getDataInputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.rtp.OutputDataStream getDataOutputStream()
getDataOutputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.protocol.PushSourceStream getControlInputStream()
getControlInputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.rtp.OutputDataStream getControlOutputStream()
getControlOutputStream in interface javax.media.rtp.RTPConnector
public void setReceiveBufferSize(int size)
throws IOException
setReceiveBufferSize in interface javax.media.rtp.RTPConnectorIOExceptionpublic int getReceiveBufferSize()
getReceiveBufferSize in interface javax.media.rtp.RTPConnector
public void setSendBufferSize(int size)
throws IOException
setSendBufferSize in interface javax.media.rtp.RTPConnectorIOExceptionpublic int getSendBufferSize()
getSendBufferSize in interface javax.media.rtp.RTPConnectorpublic double getRTCPBandwidthFraction()
getRTCPBandwidthFraction in interface javax.media.rtp.RTPConnectorpublic double getRTCPSenderBandwidthFraction()
getRTCPSenderBandwidthFraction in interface javax.media.rtp.RTPConnector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||