Click or drag to resize

DataListener Class

Represents a listener that can receive time-series data in real-time using Sockets.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      GSF.HistorianDataListener

Namespace: GSF.Historian
Assembly: GSF.Historian (in GSF.Historian.dll) Version: 2.4.181-beta
Syntax
View Source

The DataListener type exposes the following members.

Constructors
 NameDescription
Public methodDataListener Initializes a new instance of the DataListener class.
Public methodDataListener(IContainer) Initializes a new instance of the DataListener class.
Top
Properties
 NameDescription
Public propertyCacheData Gets or sets a boolean value that indicates whether the Data is to be updated with the latest time-series data.
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
Public propertyConnectToServer Gets or sets a boolean value that indicates whether the DataListener will connect to the Server for receiving the time-series data or the Server will make a connection to the DataListener on the specified Port for sending time-series data.
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Public propertyData Gets the newest time-series data received by the DataListener.
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyEnabled Gets or sets a boolean value that indicates whether the DataListener is currently enabled.
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyID Gets or sets the alpha-numeric identifier of the DataListener.
Public propertyInitializeData Gets or sets a boolean value that indicates whether the DataListener will initialize the Data from the Server on startup.
Public propertyInitializeDataTimeout Gets or sets the time (in milliseconds) to wait for the Data to be initialized from the Server on Startup.
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
Public propertyName Gets the unique identifier of the DataListener.
Public propertyParser Gets the underlying PacketParser used the DataListener for extracting the time-series data.
Public propertyPersistSettings Gets or sets a boolean value that indicates whether the settings of DataListener are to be saved to the config file.
Public propertyPort Gets or sets the network port of the Server where the DataListener will connect to get the time-series data.
Public propertyProtocol Gets or sets the TransportProtocol to be used for receiving time-series data from the Server.
Public propertyRunTime Gets the up-time (in seconds) of the DataListener.
Public propertyServer Gets or sets the DNS name or IP address of the server from where the DataListener will get the time-series data.
Public propertySettingsCategory Gets or sets the category under which the settings of DataListener are to be saved to the config file if the PersistSettings property is set to true.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyStatus Gets the descriptive status of the DataListener.
Public propertyTotalBytesReceived Gets the total number of bytes received by the DataListener since it was Started.
Public propertyTotalPacketsReceived Gets the total number of packets received by the DataListener since it was Started.
Top
Methods
 NameDescription
Public methodBeginInit Performs necessary operations before the DataListener properties are initialized.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the DataListener and optionally releases the managed resources.
(Overrides ComponentDispose(Boolean))
Public methodEndInit Performs necessary operations after the DataListener properties are initialized.
Public methodEquals Determines whether the current DataListener object is equal to obj.
(Overrides ObjectEquals(Object))
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodFindData Gets the current data for the specified historianID.
Public methodGetHashCode Returns the hash code for the current DataListener object.
(Overrides ObjectGetHashCode)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitialize Initializes the DataListener.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodLoadSettings Loads saved settings for the DataListener from the config file if the PersistSettings property is set to true.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Protected methodOnDataChanged Raises the DataChanged event.
Protected methodOnDataExtracted Raises the DataExtracted event.
Protected methodOnDataInitComplete Raises the DataInitComplete event.
Protected methodOnDataInitFailure Raises the DataInitFailure event.
Protected methodOnDataInitPartial Raises the DataInitPartial event.
Protected methodOnDataInitStart Raises the DataInitStart event.
Protected methodOnListenerStarted Raises the ListenerStarted event.
Protected methodOnListenerStarting Raises the ListenerStarting event.
Protected methodOnListenerStopped Raises the ListenerStopped event.
Protected methodOnListenerStopping Raises the ListenerStopping event.
Protected methodOnSocketConnected Raises the SocketConnected event.
Protected methodOnSocketConnecting Raises the SocketConnecting event.
Protected methodOnSocketDisconnected Raises the SocketDisconnected event.
Public methodSaveSettings Saves settings for the DataListener to the config file if the PersistSettings property is set to true.
Public methodStart Starts the DataListener synchronously.
Public methodStartAsync Starts the DataListener asynchronously.
Public methodStop Stops the DataListener.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Top
Events
 NameDescription
Public eventDataChanged Occurs when the Data has changed.
Public eventDataExtracted Occurs when time-series data is extracted from the received packets.
Public eventDataInitComplete Occurs when the Data is populated completely on Startup.
Public eventDataInitFailure Occurs when the Data cannot be populated on Startup due to the unavailability of the Server.
Public eventDataInitPartial Occurs when the Data cannot be populated completely on Startup.
Public eventDataInitStart Occurs when the Data is being populated on Startup.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventListenerStarted Occurs when the DataListener has started.
Public eventListenerStarting Occurs when the DataListener is starting up.
Public eventListenerStopped Occurs when DataListener has stopped.
Public eventListenerStopping Occurs when the DataListener is being stopped.
Public eventSocketConnected Occurs when the underlying Socket connection for receiving time-series data is established.
Public eventSocketConnecting Occurs when the underlying Socket connection for receiving time-series data is being attempted.
Public eventSocketDisconnected Occurs when the underlying Socket connection for receiving time-series data is terminated.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultCacheData Specifies the default value for the CacheData property.
Public fieldStatic memberDefaultConnectToServer Specifies the default value for the ConnectToServer property.
Public fieldStatic memberDefaultID Specifies the default value for the ID property.
Public fieldStatic memberDefaultInitializeData Specifies the default value for the InitializeData property.
Public fieldStatic memberDefaultInitializeDataTimeout Specifies the default value for the InitializeDataTimeout property.
Public fieldStatic memberDefaultPersistSettings Specifies the default value for the PersistSettings property.
Public fieldStatic memberDefaultPort Specifies the default value for the Port property.
Public fieldStatic memberDefaultProtocol Specifies the default value for the Protocol property.
Public fieldStatic memberDefaultServer Specifies the default value for the Server property.
Public fieldStatic memberDefaultSettingsCategory Specifies the default value for the SettingsCategory property.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also