C# Class GSF.TimeSeries.Transport.UnsynchronizedClientSubscription

Represents an unsynchronized client subscription to the DataPublisher.
Inheritance: GSF.TimeSeries.Adapters.FacileActionAdapterBase, IClientSubscription
显示文件 Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
ConfirmBufferBlock ( uint sequenceNumber ) : void

Handles the confirmation message received from the subscriber to indicate that a buffer block was received.

GetShortStatus ( int maxLength ) : string

Gets a short one-line status of this UnsynchronizedClientSubscription.

IClientSubscription ( MessageLevel level, Exception ex, string eventName, MessageFlags flags ) : void
IClientSubscription ( MessageLevel level, string status, string eventName, MessageFlags flags ) : void
IClientSubscription ( object sender, EventArgs e ) : void
Initialize ( ) : void

Initializes UnsynchronizedClientSubscription.

QueueMeasurementsForProcessing ( IEnumerable measurements ) : void

Queues a collection of measurements for processing.

Measurements are filtered against the defined InputMeasurementKeys so we override method so that dynamic updates to keys will be synchronized with filtering to prevent interference.

Start ( ) : void

Starts the UnsynchronizedClientSubscription or restarts it if it is already running.

Stop ( ) : void

Stops the UnsynchronizedClientSubscription.

UnsynchronizedClientSubscription ( DataPublisher parent, System.Guid clientID, System.Guid subscriberID, CompressionModes compressionModes ) : System

Creates a new UnsynchronizedClientSubscription.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the UnsynchronizedClientSubscription object and optionally releases the managed resources.

Private Methods

Method Description
BaseTimeRotationTimer_Elapsed ( object sender, EventArgs e ) : void
BufferBlockRetransmissionTimer_Elapsed ( object sender, EventArgs e ) : void
OnBufferBlockRetransmission ( ) : void
ProcessBinaryMeasurements ( IEnumerable measurements, bool useCompactMeasurementFormat, bool usePayloadCompression ) : void
ProcessMeasurements ( IEnumerable measurements ) : void
ProcessTSSCMeasurements ( IEnumerable measurements ) : void
RotateBaseTimes ( ) : void
SendTSSCPayload ( int count ) : void

Method Details

ConfirmBufferBlock() public method

Handles the confirmation message received from the subscriber to indicate that a buffer block was received.
public ConfirmBufferBlock ( uint sequenceNumber ) : void
sequenceNumber uint The sequence number of the buffer block.
return void

Dispose() protected method

Releases the unmanaged resources used by the UnsynchronizedClientSubscription object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

GetShortStatus() public method

Gets a short one-line status of this UnsynchronizedClientSubscription.
public GetShortStatus ( int maxLength ) : string
maxLength int Maximum number of available characters for display.
return string

IClientSubscription() public method

public IClientSubscription ( MessageLevel level, Exception ex, string eventName, MessageFlags flags ) : void
level MessageLevel
ex System.Exception
eventName string
flags MessageFlags
return void

IClientSubscription() public method

public IClientSubscription ( MessageLevel level, string status, string eventName, MessageFlags flags ) : void
level MessageLevel
status string
eventName string
flags MessageFlags
return void

IClientSubscription() public method

public IClientSubscription ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Initialize() public method

Initializes UnsynchronizedClientSubscription.
public Initialize ( ) : void
return void

QueueMeasurementsForProcessing() public method

Queues a collection of measurements for processing.
Measurements are filtered against the defined InputMeasurementKeys so we override method so that dynamic updates to keys will be synchronized with filtering to prevent interference.
public QueueMeasurementsForProcessing ( IEnumerable measurements ) : void
measurements IEnumerable Collection of measurements to queue for processing.
return void

Start() public method

Starts the UnsynchronizedClientSubscription or restarts it if it is already running.
public Start ( ) : void
return void

Stop() public method

Stops the UnsynchronizedClientSubscription.
public Stop ( ) : void
return void

UnsynchronizedClientSubscription() public method

Creates a new UnsynchronizedClientSubscription.
public UnsynchronizedClientSubscription ( DataPublisher parent, System.Guid clientID, System.Guid subscriberID, CompressionModes compressionModes ) : System
parent DataPublisher Reference to parent.
clientID System.Guid based client connection ID.
subscriberID System.Guid based subscriber ID.
compressionModes CompressionModes requested by client.
return System