C# Класс GSF.TimeSeries.Adapters.IaonSession

Represents a new Input, Action, Output interface session.
Наследование: IProvideStatus, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ConfigurationChangedHandler ( object sender, EventArgs e ) : void

Event handler for adapter notifications about configuration changes.

Dispose ( ) : void

Releases all the resources used by the IaonSession object.

DisposedHandler ( object sender, EventArgs e ) : void

Event handler for disposed events from all adapters.

GetDerivedName ( object sender ) : string

Gets derived name of specified object.

IaonSession ( ) : System

Creates a new IaonSession.

Initialize ( bool autoStart = true ) : void

Initialize and start adapters.

InputMeasurementKeysUpdatedHandler ( object sender, EventArgs e ) : void

Event handler for updates to adapter input measurement key definitions.

OutputMeasurementsUpdatedHandler ( object sender, EventArgs e ) : void

Event handler for updates to adapter output measurement definitions.

ProcessExceptionHandler ( object sender, EventArgs e ) : void

Event handler for processing reported exceptions.

ProcessingCompleteHandler ( object sender, EventArgs e ) : void

Event handler for processing complete notifications from input adapters.

RecalculateRoutingTables ( ) : void

Recalculates routing tables as long as all adapters have been initialized.

RequestTemporalSupportHandler ( object sender, EventArgs e ) : void

Event handler for requesting temporal support.

Action adapter collections use this handler to make sure temporal support is initialized before setting up temporal sessions.

StatusMessageHandler ( object sender, EventArgs e ) : void

Event handler for reporting status messages.

TemporalProcessingSupportExists ( string collection = null ) : bool

Gets flag that determines if temporal processing is supported in this IaonSession.

UnprocessedMeasurementsHandler ( object sender, EventArgs e ) : void

Event handler for monitoring unprocessed measurements.

Time-series framework uses this handler to monitor the number of unprocessed measurements in output adapters.
This method is typically called once every five seconds.

UnpublishedSamplesHandler ( object sender, EventArgs e ) : void

Event handler for monitoring unpublished samples.

Time-series framework uses this handler to monitor the number of unpublished samples, in seconds of data, in action adapters.
This method is typically called once every five seconds.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

OnConfigurationChanged ( object sender ) : void

Raises ConfigurationChanged event.

OnDisposed ( object sender ) : void

Raises the Disposed event.

OnInputMeasurementKeysUpdated ( object sender ) : void

Raises InputMeasurementKeysUpdated event.

OnOutputMeasurementsUpdated ( object sender ) : void

Raises OutputMeasurementsUpdated event.

OnProcessException ( object sender, Exception ex ) : void

Raises ProcessException event.

OnProcessingComplete ( object sender, EventArgs e = null ) : void

Raises the ProcessingComplete event.

OnStatusMessage ( object sender, string status, UpdateType type = UpdateType.Information ) : void

Raises the StatusMessage event.

OnUnprocessedMeasurements ( object sender, int unprocessedMeasurements ) : void

Raises the UnprocessedMeasurements event.

OnUnpublishedSamples ( object sender, int seconds ) : void

Raises the UnpublishedSamples event.

Приватные методы

Метод Описание
ExtractTemporalConfiguration ( DataSet realtimeConfiguration ) : DataSet
m_routingTables_ProcessException ( object sender, EventArgs e ) : void
m_routingTables_StatusMessage ( object sender, EventArgs e ) : void

Описание методов

ConfigurationChangedHandler() публичный Метод

Event handler for adapter notifications about configuration changes.
public ConfigurationChangedHandler ( object sender, EventArgs e ) : void
sender object Sending object.
e System.EventArgs Event arguments, if any.
Результат void

Dispose() публичный Метод

Releases all the resources used by the IaonSession object.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases the unmanaged resources used by the IaonSession 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.
Результат void

DisposedHandler() публичный Метод

Event handler for disposed events from all adapters.
public DisposedHandler ( object sender, EventArgs e ) : void
sender object Sending object.
e System.EventArgs Event arguments, if any.
Результат void

GetDerivedName() публичный Метод

Gets derived name of specified object.
public GetDerivedName ( object sender ) : string
sender object Sending object from which to derive name.
Результат string

IaonSession() публичный Метод

Creates a new IaonSession.
public IaonSession ( ) : System
Результат System

Initialize() публичный Метод

Initialize and start adapters.
public Initialize ( bool autoStart = true ) : void
autoStart bool Sets flag that determines if adapters should be automatically started.
Результат void

InputMeasurementKeysUpdatedHandler() публичный Метод

Event handler for updates to adapter input measurement key definitions.
public InputMeasurementKeysUpdatedHandler ( object sender, EventArgs e ) : void
sender object Sending object.
e System.EventArgs Event arguments, if any.
Результат void

OnConfigurationChanged() защищенный Метод

Raises ConfigurationChanged event.
protected OnConfigurationChanged ( object sender ) : void
sender object Object source raising the event.
Результат void

OnDisposed() защищенный Метод

Raises the Disposed event.
protected OnDisposed ( object sender ) : void
sender object Object source raising the event.
Результат void

OnInputMeasurementKeysUpdated() защищенный Метод

Raises InputMeasurementKeysUpdated event.
protected OnInputMeasurementKeysUpdated ( object sender ) : void
sender object Object source raising the event.
Результат void

OnOutputMeasurementsUpdated() защищенный Метод

Raises OutputMeasurementsUpdated event.
protected OnOutputMeasurementsUpdated ( object sender ) : void
sender object Object source raising the event.
Результат void

OnProcessException() защищенный Метод

Raises ProcessException event.
protected OnProcessException ( object sender, Exception ex ) : void
sender object Object source raising the event.
ex System.Exception Processing .
Результат void

OnProcessingComplete() защищенный Метод

Raises the ProcessingComplete event.
protected OnProcessingComplete ( object sender, EventArgs e = null ) : void
sender object Object source raising the event.
e System.EventArgs , if any.
Результат void

OnStatusMessage() защищенный Метод

Raises the StatusMessage event.
protected OnStatusMessage ( object sender, string status, UpdateType type = UpdateType.Information ) : void
sender object Object source raising the event.
status string New status message.
type UpdateType of status message.
Результат void

OnUnprocessedMeasurements() защищенный Метод

Raises the UnprocessedMeasurements event.
protected OnUnprocessedMeasurements ( object sender, int unprocessedMeasurements ) : void
sender object Object source raising the event.
unprocessedMeasurements int Total measurements in the queue that have not been processed.
Результат void

OnUnpublishedSamples() защищенный Метод

Raises the UnpublishedSamples event.
protected OnUnpublishedSamples ( object sender, int seconds ) : void
sender object Object source raising the event.
seconds int Total number of unpublished seconds of data.
Результат void

OutputMeasurementsUpdatedHandler() публичный Метод

Event handler for updates to adapter output measurement definitions.
public OutputMeasurementsUpdatedHandler ( object sender, EventArgs e ) : void
sender object Sending object.
e System.EventArgs Event arguments, if any.
Результат void

ProcessExceptionHandler() публичный Метод

Event handler for processing reported exceptions.
public ProcessExceptionHandler ( object sender, EventArgs e ) : void
sender object Event source of the exception.
e EventArgs Event arguments containing the exception to report.
Результат void

ProcessingCompleteHandler() публичный Метод

Event handler for processing complete notifications from input adapters.
public ProcessingCompleteHandler ( object sender, EventArgs e ) : void
sender object Event source reference to input adapter that is reporting processing completion.
e System.EventArgs Event arguments for event, if any; otherwise .
Результат void

RecalculateRoutingTables() публичный Метод

Recalculates routing tables as long as all adapters have been initialized.
public RecalculateRoutingTables ( ) : void
Результат void

RequestTemporalSupportHandler() публичный Метод

Event handler for requesting temporal support.
Action adapter collections use this handler to make sure temporal support is initialized before setting up temporal sessions.
public RequestTemporalSupportHandler ( object sender, EventArgs e ) : void
sender object Event source reference to adapter collection, typically an action adapter collection, that is requesting temporal support.
e System.EventArgs Event arguments are not used.
Результат void

StatusMessageHandler() публичный Метод

Event handler for reporting status messages.
public StatusMessageHandler ( object sender, EventArgs e ) : void
sender object Event source of the status message.
e EventArgs Event arguments containing the status message to report.
Результат void

TemporalProcessingSupportExists() публичный Метод

Gets flag that determines if temporal processing is supported in this IaonSession.
public TemporalProcessingSupportExists ( string collection = null ) : bool
collection string Name of collection over which to check support (e.g., "InputAdapters"); or null for all collections.
Результат bool

UnprocessedMeasurementsHandler() публичный Метод

Event handler for monitoring unprocessed measurements.
Time-series framework uses this handler to monitor the number of unprocessed measurements in output adapters.
This method is typically called once every five seconds.
public UnprocessedMeasurementsHandler ( object sender, EventArgs e ) : void
sender object Event source reference to adapter, typically an output adapter, that is reporting the number of unprocessed measurements.
e EventArgs Event arguments containing number of queued (i.e., unprocessed) measurements in the source adapter.
Результат void

UnpublishedSamplesHandler() публичный Метод

Event handler for monitoring unpublished samples.
Time-series framework uses this handler to monitor the number of unpublished samples, in seconds of data, in action adapters.
This method is typically called once every five seconds.
public UnpublishedSamplesHandler ( object sender, EventArgs e ) : void
sender object Event source reference to adapter, typically an action adapter, that is reporting the number of unpublished data samples.
e EventArgs Event arguments containing number of samples, in seconds of data, of unpublished data in the source adapter.
Результат void