Click or drag to resize

AdapterBase Class

Represents the base class for any adapter.
Inheritance Hierarchy

Namespace: GSF.TimeSeries.Adapters
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.218-beta
Syntax
public abstract class AdapterBase : IAdapter, 
	ISupportLifecycle, IDisposable, IProvideStatus
View Source

The AdapterBase type exposes the following members.

Constructors
 NameDescription
Protected methodAdapterBase Constructs a new instance of the AdapterBase.
Top
Properties
 NameDescription
Public propertyAutoStart Gets or sets flag indicating if adapter should automatically start or otherwise connect on demand.
Public propertyConnectionInfo Gets connection info for adapter, if any.
Public propertyConnectionString Gets or sets key/value pair connection information specific to this AdapterBase.
Public propertyDataSource Gets or sets DataSet based data source available to this AdapterBase.
Public propertyEnabled Gets or sets enabled state of this AdapterBase.
Public propertyID Gets or sets numeric ID associated with this AdapterBase.
Public propertyInitializationTimeout Gets or sets maximum time system will wait during Start for initialization.
Public propertyInitialized Gets or sets flag indicating if the adapter has been initialized successfully.
Public propertyInputMeasurementKeys Gets or sets primary keys of input measurements the AdapterBase expects, if any.
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
Protected propertyLog Log messages generated by an adapter.
Public propertyMeasurementReportingInterval Gets or sets the measurement reporting interval.
Public propertyName Gets or sets the name of this AdapterBase.
Public propertyOutputMeasurements Gets or sets output measurements that the AdapterBase will produce, if any.
Public propertyProcessedMeasurements Gets the total number of measurements handled thus far by the AdapterBase.
Public propertyProcessingInterval Gets or sets the desired processing interval, in milliseconds, for the adapter.
Public propertyRunTime Gets the total amount of time, in seconds, that the adapter has been active.
Public propertySettings Gets settings DictionaryTKey, TValue parsed when ConnectionString was assigned.
Public propertyStartTime Gets the UTC time this AdapterBase was started.
Public propertyStartTimeConstraint Gets the start time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
Public propertyStatus Gets the status of this AdapterBase.
Public propertyStopTime Gets the UTC time this AdapterBase was stopped.
Public propertyStopTimeConstraint Gets the stop time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
Public propertySupportsTemporalProcessing Gets the flag indicating if this adapter supports temporal processing.
Top
Methods
 NameDescription
Public methodDispose Releases all the resources used by the AdapterBase object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the AdapterBase object and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Releases the unmanaged resources before the AdapterBase object is reclaimed by GC.
(Overrides ObjectFinalize)
Public methodGetHashCode Serves as a hash function for the current AdapterBase.
(Overrides ObjectGetHashCode)
Public methodGetShortStatus Gets a short one-line status of this AdapterBase.
Public methodStatic memberGetStatusWithMessageLevelPrefix Gets status message with common time-series messaging prefix for given MessageLevel.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodIncrementProcessedMeasurements Safely increments the total processed measurements.
Public methodInitialize Initializes AdapterBase.
Public methodStatic memberLoadInputSourceIDs Loads an IOutputAdapter or IActionAdapter instance's input measurement keys from a specific set of source ID's.
Public methodStatic memberLoadOutputSourceIDs Loads an IInputAdapter or IActionAdapter instance's output measurements from a specific set of source ID's.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnConfigurationChanged Raises ConfigurationChanged event.
Protected methodOnInputMeasurementKeysUpdated Raises InputMeasurementKeysUpdated event.
Protected methodOnOutputMeasurementsUpdated Raises OutputMeasurementsUpdated event.
Protected methodOnProcessException(Exception)Obsolete.
Raises the ProcessException event.
Protected methodOnProcessException(MessageLevel, Exception, String, MessageFlags) Raises the ProcessException event.
Protected methodOnStatusMessage(String)Obsolete.
Raises the StatusMessage event.
Protected methodOnStatusMessage(String, Object)Obsolete.
Raises the StatusMessage event with a formatted status message.
Protected methodOnStatusMessage(MessageLevel, String, String, MessageFlags) Raises the StatusMessage event and sends this data to the Logger.
Public methodStatic memberParseFilterExpression Parses a standard FILTER styles expression into its constituent parts.
Public methodStatic memberParseInputMeasurementKeys Parses input measurement keys from connection string setting.
Public methodStatic memberParseOutputMeasurementKeys Parses output measurement keys from connection string setting.
Public methodStatic memberParseOutputMeasurements Parses output measurements from connection string setting.
Public methodStatic memberParseTimeTag Parses a string formatted as an absolute or relative time tag.
Public methodSetInitializedState Manually sets the initialized state of the AdapterBase.
Public methodSetTemporalConstraint Defines a temporal processing constraint for the adapter.
Public methodStart Starts the AdapterBase or restarts it if it is already running.
Public methodStop Stops the AdapterBase.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventConfigurationChanged Event is raised when adapter is aware of a configuration change.
Public eventDisposed Event is raised when AdapterBase is disposed.
Public eventInputMeasurementKeysUpdated Event is raised when InputMeasurementKeys are updated.
Public eventOutputMeasurementsUpdated Event is raised when OutputMeasurements are updated.
Public eventProcessException Event is raised when there is an exception encountered while processing.
Public eventStatusMessage Provides status messages to consumer.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultInitializationTimeout Default initialization timeout.
Public fieldStatic memberDefaultMeasurementReportingInterval Default measurement reporting interval.
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)
Public Extension MethodGetMeasurementRecord Gets measurement record, creating it if needed.
(Defined by MetadataHelpers)
Public Extension MethodGetParentDevice Gets ID of parent device, creating or updating record if needed, for the current IAdapter instance.
(Defined by MetadataHelpers)
Public Extension MethodInputMeasurementKeys Returns the MeasurementKey values of the IAdapter input measurements.
(Defined by IAdapterExtensions)
Public Extension MethodLookupDevice Looks up associated device acronym and ID from provided signalID.
(Defined by MetadataHelpers)
Public Extension MethodLookupMeasurementKey Looks up or creates measurement key based on provided signalID.
(Defined by MetadataHelpers)
Public Extension MethodLookupPointTag Looks up point tag name from provided signalID.
(Defined by MetadataHelpers)
Public Extension MethodLookupSignalReference Looks up signal reference from provided signalID.
(Defined by MetadataHelpers)
Public Extension MethodOnConfigurationChanged Notifies host system of configuration changes.
(Defined by MetadataHelpers)
Public Extension MethodOutputMeasurementKeys Returns the MeasurementKey values of the IAdapter output measurements.
(Defined by IAdapterExtensions)
Public Extension MethodPointTagExists Determines if pointTag exists in local configuration.
(Defined by MetadataHelpers)
Public Extension MethodSignalIDExists Determines if signalID exists in local configuration.
(Defined by MetadataHelpers)
Public Extension MethodSignalReferenceExists Determines if signalReference exists in local configuration.
(Defined by MetadataHelpers)
Public Extension MethodTemporalConstraintIsDefined Returns true if IAdapter has a temporal constraint defined, i.e., either StartTimeConstraint or StopTimeConstraint is not set to its default value.
(Defined by IAdapterExtensions)
Public Extension MethodWaitForSignalsToLoad Waits for signalIDs to be loaded in system configuration.
(Defined by MetadataHelpers)
Top
See Also