C# Class GSF.TimeSeries.Adapters.IaonSession

Represents a new Input, Action, Output interface session.
Inheritance: IProvideStatus, IDisposable
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode Description
ExtractTemporalConfiguration ( DataSet realtimeConfiguration ) : DataSet
m_routingTables_ProcessException ( object sender, EventArgs e ) : void
m_routingTables_StatusMessage ( object sender, EventArgs e ) : void

Method Details

ConfigurationChangedHandler() public méthode

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

Dispose() public méthode

Releases all the resources used by the IaonSession object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

DisposedHandler() public méthode

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

GetDerivedName() public méthode

Gets derived name of specified object.
public GetDerivedName ( object sender ) : string
sender object Sending object from which to derive name.
Résultat string

IaonSession() public méthode

Creates a new IaonSession.
public IaonSession ( ) : System
Résultat System

Initialize() public méthode

Initialize and start adapters.
public Initialize ( bool autoStart = true ) : void
autoStart bool Sets flag that determines if adapters should be automatically started.
Résultat void

InputMeasurementKeysUpdatedHandler() public méthode

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

OnConfigurationChanged() protected méthode

Raises ConfigurationChanged event.
protected OnConfigurationChanged ( object sender ) : void
sender object Object source raising the event.
Résultat void

OnDisposed() protected méthode

Raises the Disposed event.
protected OnDisposed ( object sender ) : void
sender object Object source raising the event.
Résultat void

OnInputMeasurementKeysUpdated() protected méthode

Raises InputMeasurementKeysUpdated event.
protected OnInputMeasurementKeysUpdated ( object sender ) : void
sender object Object source raising the event.
Résultat void

OnOutputMeasurementsUpdated() protected méthode

Raises OutputMeasurementsUpdated event.
protected OnOutputMeasurementsUpdated ( object sender ) : void
sender object Object source raising the event.
Résultat void

OnProcessException() protected méthode

Raises ProcessException event.
protected OnProcessException ( object sender, Exception ex ) : void
sender object Object source raising the event.
ex System.Exception Processing .
Résultat void

OnProcessingComplete() protected méthode

Raises the ProcessingComplete event.
protected OnProcessingComplete ( object sender, EventArgs e = null ) : void
sender object Object source raising the event.
e System.EventArgs , if any.
Résultat void

OnStatusMessage() protected méthode

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

OnUnprocessedMeasurements() protected méthode

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

OnUnpublishedSamples() protected méthode

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

OutputMeasurementsUpdatedHandler() public méthode

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

ProcessExceptionHandler() public méthode

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

ProcessingCompleteHandler() public méthode

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

RecalculateRoutingTables() public méthode

Recalculates routing tables as long as all adapters have been initialized.
public RecalculateRoutingTables ( ) : void
Résultat void

RequestTemporalSupportHandler() public méthode

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

StatusMessageHandler() public méthode

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

TemporalProcessingSupportExists() public méthode

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

UnprocessedMeasurementsHandler() public méthode

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

UnpublishedSamplesHandler() public méthode

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