Halyri - Server  0.9.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
DataTransferController Class Reference

Class for managing audio/video and measurement data distribution from mobile emergency clients to the associated call center clients. Data packets from mobile emergency clients can be relayed in a fan-out style to multiple call center connections. Data subscriptions for each call center connection are stored in the "dataSubscribers" dictionary. More...

Public Member Functions

void Disable ()
 Disables the UdpMediaRelayServerCore to release its undelying UDP socket. More...
 
void SubscribeCallCenterClientForData (CallCenterConnection callCenter, Connection mobileClient)
 Adds the call center client as a receiver for audio/video and instrument measurement data sent by the specified mobile emergency client. Also adds the call center client as the sole sender of data to the mobile emerngenct client. More...
 
void UnsubscribeCallCenterClientForData (CallCenterConnection callCenter, Connection mobileClient)
 Unsubscribes the call center client from audio/video and instrument measurement data sent by the specified mobile emergency client. More...
 
void UnsubscribeCallCenterClientForAnyData (CallCenterConnection callCenter)
 Unsubscribes the call center client from audio/video and instrument measurement data sent by any mobile emergency client. Also removes queues and mappings for publishing data from the call center client to any mobile emergency client. More...
 
void PublishMobileClientAudioVideo (string mobileGuid, MediaInformationDto mediaInformation, byte[] mediaPayload)
 Performs fan-out distribution of audio/video data received from a mobile emergency client with the specified GUID. The data is distributed to the call center clients that have subscribed for data from mobile client using the specified GUID. More...
 
bool PublishCallCenterClientAudioVideo (CallCenterConnectionDto user, MediaInformationDto mediaInfo, byte[] mediaData)
 Publishes audio and video from a call center client to its client specific queue. This data can be asynchronously read by the remote mobile emergency client over its WCF connection. More...
 
AudioVideoContainerDto MobileClientGetAudioVideoFromPublishQueue (string mobileGuid)
 Returns audio and video media published by a call center connection. If the publishing queue for the call center client associated with the calling mobile emergency client, this method returns an empty AudioVideoContainerDto. Otherwise returns the AudioVideoContainerDto from the from of the media queue. More...
 
void PublishMobileClientInstrumentData (string mobileGuid, MeasurementInstrumentDto measurementInstrument, byte[] measurementPayload)
 Performs fan-out distribution of measurement data received from a mobile emergency client with the specified GUID. The data is distributed to the call center clients that have subscribed for data from mobile client using the specified GUID. More...
 

Properties

static DataTransferController Instance [get]
 Returns the DatatransferController instance. More...
 

Detailed Description

Class for managing audio/video and measurement data distribution from mobile emergency clients to the associated call center clients. Data packets from mobile emergency clients can be relayed in a fan-out style to multiple call center connections. Data subscriptions for each call center connection are stored in the "dataSubscribers" dictionary.

<author>Veli-Mikko Puupponen</author> Data packets from call center clients to the mobile emergency clients are enqueued in a call center client specific queue from which the mobile emergency client that the call center client is currently processing is able to fetch them.

Contains an instance of UdpMediaRelayServerCore that manages the UDP based media data transfer.

Member Function Documentation

void Disable ( )

Disables the UdpMediaRelayServerCore to release its undelying UDP socket.

AudioVideoContainerDto MobileClientGetAudioVideoFromPublishQueue ( string  mobileGuid)

Returns audio and video media published by a call center connection. If the publishing queue for the call center client associated with the calling mobile emergency client, this method returns an empty AudioVideoContainerDto. Otherwise returns the AudioVideoContainerDto from the from of the media queue.

Parameters
mobileGuidGuid of an existing emergency mobile client that is connected to the server.
Returns
AudioVideoContainerDto that constains audio//video data, if available. Otherwise it is empty.
bool PublishCallCenterClientAudioVideo ( CallCenterConnectionDto  user,
MediaInformationDto  mediaInfo,
byte[]  mediaData 
)

Publishes audio and video from a call center client to its client specific queue. This data can be asynchronously read by the remote mobile emergency client over its WCF connection.

Parameters
userCallCenterConnectionDto describing the publishing call center client
mediaInfoMediaInformationDto describing the published media data
mediaDataMedia data
Returns
void PublishMobileClientAudioVideo ( string  mobileGuid,
MediaInformationDto  mediaInformation,
byte[]  mediaPayload 
)

Performs fan-out distribution of audio/video data received from a mobile emergency client with the specified GUID. The data is distributed to the call center clients that have subscribed for data from mobile client using the specified GUID.

Parameters
mobileGuidGUID of the mobile emergency client connection providing the audio/video
mediaInformationDescription of the audio/video data
mediaPayloadAudio/video payload data
void PublishMobileClientInstrumentData ( string  mobileGuid,
MeasurementInstrumentDto  measurementInstrument,
byte[]  measurementPayload 
)

Performs fan-out distribution of measurement data received from a mobile emergency client with the specified GUID. The data is distributed to the call center clients that have subscribed for data from mobile client using the specified GUID.

Parameters
mobileGuidGUID of the mobile emergency client connection providing the data
measurementInstrumentInstrument producing the measurement data
measurementPayloadMeasurement data from the instrument
void SubscribeCallCenterClientForData ( CallCenterConnection  callCenter,
Connection  mobileClient 
)

Adds the call center client as a receiver for audio/video and instrument measurement data sent by the specified mobile emergency client. Also adds the call center client as the sole sender of data to the mobile emerngenct client.

Parameters
callCenterThe subscribing call center client
mobileClientThe mobile emergency client from whon the data is subscribed from
void UnsubscribeCallCenterClientForAnyData ( CallCenterConnection  callCenter)

Unsubscribes the call center client from audio/video and instrument measurement data sent by any mobile emergency client. Also removes queues and mappings for publishing data from the call center client to any mobile emergency client.

Parameters
callCenterThe unsubscribing call center client
void UnsubscribeCallCenterClientForData ( CallCenterConnection  callCenter,
Connection  mobileClient 
)

Unsubscribes the call center client from audio/video and instrument measurement data sent by the specified mobile emergency client.

Parameters
callCenterThe unsubscribing call center client
mobileClientThe mobile emergency client from whom data is no more subscribed by the specified call center connection

Property Documentation

DataTransferController Instance
staticget

Returns the DatatransferController instance.


The documentation for this class was generated from the following file: