C# Class GSF.TimeSeries.Transport.UnsynchronizedClientSubscription

Represents an unsynchronized client subscription to the DataPublisher.
Inheritance: GSF.TimeSeries.Adapters.FacileActionAdapterBase, IClientSubscription
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

Méthode 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 méthode

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.
Résultat void

Dispose() protected méthode

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.
Résultat void

GetShortStatus() public méthode

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

IClientSubscription() public méthode

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

IClientSubscription() public méthode

public IClientSubscription ( MessageLevel level, string status, string eventName, MessageFlags flags ) : void
level MessageLevel
status string
eventName string
flags MessageFlags
Résultat void

IClientSubscription() public méthode

public IClientSubscription ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Initialize() public méthode

Initializes UnsynchronizedClientSubscription.
public Initialize ( ) : void
Résultat void

QueueMeasurementsForProcessing() public méthode

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.
Résultat void

Start() public méthode

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

Stop() public méthode

Stops the UnsynchronizedClientSubscription.
public Stop ( ) : void
Résultat void

UnsynchronizedClientSubscription() public méthode

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.
Résultat System