Click or drag to resize
Grid Solutions Framework

CsvExportAdapter Class

Represents an output adapter that exports measurements in to a given directory in CSV format.
Inheritance Hierarchy
SystemObject
  GSF.TimeSeries.AdaptersAdapterBase
    GSF.TimeSeries.AdaptersOutputAdapterBase
      CsvAdaptersCsvExportAdapter

Namespace: CsvAdapters
Assembly: CsvAdapters (in CsvAdapters.dll) Version: 2.4.207-beta
Syntax
public class CsvExportAdapter : OutputAdapterBase
View Source

The CsvExportAdapter type exposes the following members.

Constructors
 NameDescription
Public methodCsvExportAdapter Creates a new instance of the CsvExportAdapter class.
Top
Properties
 NameDescription
Public propertyAutoStart Gets or sets flag indicating if adapter should automatically start or otherwise connect on demand.
(Inherited from AdapterBase)
Protected propertyConnectionAttemptInterval Gets or sets the connection attempt interval, in milliseconds, for the data output adapter.
(Inherited from OutputAdapterBase)
Public propertyConnectionInfo Gets connection info for adapter, if any.
(Inherited from AdapterBase)
Public propertyConnectionString Gets or sets key/value pair connection information specific to this AdapterBase.
(Inherited from AdapterBase)
Public propertyDataSource Gets or sets DataSet based data source available to this OutputAdapterBase.
(Inherited from OutputAdapterBase)
Public propertyDownsampleInterval Gets or sets the downsampling interval, in seconds, set to zero for no downsampling.
Public propertyEnabled Gets or sets enabled state of this AdapterBase.
(Inherited from AdapterBase)
Public propertyEnableTimeReasonabilityValidation Gets or sets the flag that determines if timestamps should be validated against local clock for reasonability.
Public propertyExportPath Gets or sets the path to the directory where CSV exports are written.
Public propertyFileNameTemplate Gets or sets the CSV export filename template. String format parameter 0 is current UTC time.
Public propertyFramesPerSecond Gets or sets the number of frames per second for incoming data used to align timestamps when downsampling interval is greater than 0.0, set to zero to skip time alignment.
Public propertyHeaderLine Gets or sets the default header line for the CSV exports, set to empty string for no header. Column order is fixed as timestamp, ID, and value.
Public propertyID Gets or sets numeric ID associated with this AdapterBase.
(Inherited from AdapterBase)
Public propertyInitializationTimeout Gets or sets maximum time system will wait during Start for initialization.
(Inherited from AdapterBase)
Public propertyInitialized Gets or sets flag indicating if the adapter has been initialized successfully.
(Inherited from AdapterBase)
Public propertyInputMeasurementKeys Gets or sets primary keys of input measurements the AdapterBase expects, if any.
(Inherited from AdapterBase)
Public propertyInputSourceIDs Gets or sets Source values used to filter input measurements.
(Inherited from OutputAdapterBase)
Protected propertyInternalProcessQueue Allows derived class access to internal processing queue.
(Inherited from OutputAdapterBase)
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
(Inherited from AdapterBase)
Public propertyLagTime Gets or sets the allowed past time deviation tolerance against local clock for time reasonability validation, in seconds (can be sub-second).
Public propertyLeadTime Gets or sets the allowed future time deviation tolerance against local clock for time reasonability validation, in seconds (can be sub-second).
Protected propertyLog Log messages generated by an adapter.
(Inherited from AdapterBase)
Public propertyMeasurementReportingInterval Gets or sets the measurement reporting interval.
(Inherited from AdapterBase)
Protected propertyMetadataRefreshOperation Gets the operation that calls ExecuteMetadataRefresh.
(Inherited from OutputAdapterBase)
Public propertyName Gets or sets the name of this AdapterBase.
(Inherited from AdapterBase)
Public propertyOffloadPath Gets or sets the path to the directory where CSV exports are moved after a rollover.
Public propertyOutputIsForArchive Gets the flag that determines if measurements sent to this CsvExportAdapter are destined for archival.
(Overrides OutputAdapterBaseOutputIsForArchive)
Public propertyOutputMeasurements Gets or sets output measurements that the AdapterBase will produce, if any.
(Inherited from OutputAdapterBase)
Public propertyProcessedMeasurements Gets the total number of measurements handled thus far by the AdapterBase.
(Inherited from AdapterBase)
Public propertyProcessingInterval Gets or sets the desired processing interval, in milliseconds, for the output adapter.
(Inherited from OutputAdapterBase)
Public propertyRequestedInputMeasurementKeys Gets or sets input measurement keys that are requested by other adapters based on what adapter says it can provide.
(Inherited from OutputAdapterBase)
Public propertyRequeueOnException Gets or sets whether or not to automatically place measurements back into the processing queue if an exception occurs while processing. Defaults to false.
(Inherited from OutputAdapterBase)
Public propertyRolloverSchedule Gets or sets the schedule, defined by cron syntax, to determine how often to roll over CSV files.
Public propertyRunTime Gets the total amount of time, in seconds, that the adapter has been active.
(Inherited from AdapterBase)
Public propertySettings Gets settings DictionaryTKey, TValue parsed when ConnectionString was assigned.
(Inherited from AdapterBase)
Public propertyStartTime Gets the UTC time this AdapterBase was started.
(Inherited from AdapterBase)
Public propertyStartTimeConstraint Gets the start time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
(Inherited from AdapterBase)
Public propertyStatus Gets the status of this CsvExportAdapter.
(Overrides OutputAdapterBaseStatus)
Public propertyStopTime Gets the UTC time this AdapterBase was stopped.
(Inherited from AdapterBase)
Public propertyStopTimeConstraint Gets the stop time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
(Inherited from AdapterBase)
Public propertySupportsTemporalProcessing Gets the flag indicating if this OutputAdapterBase implementation supports temporal processing.
(Inherited from OutputAdapterBase)
Public propertyTimestampFormat Gets or sets the format of timestamps in the CSV exports.
Protected propertyUseAsyncConnect Gets flag that determines if the data output stream connects asynchronously.
(Overrides OutputAdapterBaseUseAsyncConnect)
Top
Methods
 NameDescription
Protected methodAttemptConnection Attempts to connect to data output stream.
(Overrides OutputAdapterBaseAttemptConnection)
Protected methodAttemptDisconnection Attempts to disconnect from data output stream.
(Overrides OutputAdapterBaseAttemptDisconnection)
Public methodDispose Releases all the resources used by the AdapterBase object.
(Inherited from AdapterBase)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the CsvExportAdapter object and optionally releases the managed resources.
(Overrides OutputAdapterBaseDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodExecuteMetadataRefresh Executes the metadata refresh in a synchronous fashion.
(Inherited from OutputAdapterBase)
Protected methodFinalize Releases the unmanaged resources before the AdapterBase object is reclaimed by GC.
(Inherited from AdapterBase)
Public methodFlush Blocks the current thread, if the OutputAdapterBase is connected, until all items in OutputAdapterBase queue are processed, and then stops processing.
(Inherited from OutputAdapterBase)
Public methodGetHashCode Serves as a hash function for the current AdapterBase.
(Inherited from AdapterBase)
Public methodGetShortStatus Gets a short one-line status of this CsvExportAdapter.
(Overrides AdapterBaseGetShortStatus(Int32))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodIncrementProcessedMeasurements Safely increments the total processed measurements.
(Inherited from AdapterBase)
Public methodInitialize Initializes CsvExportAdapter.
(Overrides OutputAdapterBaseInitialize)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOffloadLingeringFiles Offloads lingering files which were not offloaded due to errors or system failures.
Protected methodOnConfigurationChanged Raises ConfigurationChanged event.
(Inherited from AdapterBase)
Protected methodOnConnected Called when data output source connection is established.
(Inherited from OutputAdapterBase)
Protected methodOnDisconnected Called when data input source is disconnected.
(Inherited from OutputAdapterBase)
Protected methodOnInputMeasurementKeysUpdated Raises InputMeasurementKeysUpdated event.
(Inherited from AdapterBase)
Protected methodOnOutputMeasurementsUpdated Raises OutputMeasurementsUpdated event.
(Inherited from AdapterBase)
Protected methodOnProcessException(Exception)Obsolete.
Raises the ProcessException event.
(Inherited from AdapterBase)
Protected methodOnProcessException(MessageLevel, Exception, String, MessageFlags) Raises the ProcessException event.
(Inherited from AdapterBase)
Protected methodOnStatusMessage(String)Obsolete.
Raises the StatusMessage event.
(Inherited from AdapterBase)
Protected methodOnStatusMessage(String, Object)Obsolete.
Raises the StatusMessage event with a formatted status message.
(Inherited from AdapterBase)
Protected methodOnStatusMessage(MessageLevel, String, String, MessageFlags) Raises the StatusMessage event and sends this data to the Logger.
(Inherited from AdapterBase)
Protected methodOnUnprocessedMeasurements Raises the UnprocessedMeasurements event.
(Inherited from OutputAdapterBase)
Protected methodProcessMeasurements Serializes measurements to data output stream.
(Overrides OutputAdapterBaseProcessMeasurements(IMeasurement))
Public methodQueueMeasurementForProcessing Queues a single measurement for processing. Measurement is automatically filtered to the defined InputMeasurementKeys.
(Inherited from OutputAdapterBase)
Public methodQueueMeasurementsForProcessing Queues a collection of measurements for processing. Measurements are automatically filtered to the defined InputMeasurementKeys.
(Overrides OutputAdapterBaseQueueMeasurementsForProcessing(IEnumerableIMeasurement))
Public methodRefreshMetadata Initiates request for metadata refresh for OutputAdapterBase, if implemented.
(Inherited from OutputAdapterBase)
Public methodRemoveMeasurements This removes a range of measurements from the internal measurement queue.
(Inherited from OutputAdapterBase)
Public methodSetInitializedState Manually sets the initialized state of the AdapterBase.
(Inherited from AdapterBase)
Public methodSetTemporalConstraint Defines a temporal processing constraint for the adapter.
(Inherited from AdapterBase)
Public methodStart Starts this OutputAdapterBase and initiates connection cycle to data output stream.
(Inherited from OutputAdapterBase)
Public methodStop Stops this OutputAdapterBase and disconnects from data output stream.
(Inherited from OutputAdapterBase)
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.
(Inherited from AdapterBase)
Public eventDisposed Event is raised when AdapterBase is disposed.
(Inherited from AdapterBase)
Public eventInputMeasurementKeysUpdated Event is raised when InputMeasurementKeys are updated.
(Inherited from AdapterBase)
Public eventOutputMeasurementsUpdated Event is raised when OutputMeasurements are updated.
(Inherited from AdapterBase)
Public eventProcessException Event is raised when there is an exception encountered while processing.
(Inherited from AdapterBase)
Public eventStatusMessage Provides status messages to consumer.
(Inherited from AdapterBase)
Public eventUnprocessedMeasurements Event is raised every five seconds allowing host to track total number of unprocessed measurements.
(Inherited from OutputAdapterBase)
Top
Fields
 NameDescription
Public fieldStatic memberDefaultDownsampleInterval Default value for the DownsampleInterval property.
Public fieldStatic memberDefaultEnableTimeReasonabilityValidation Default value for the EnableTimeReasonabilityValidation property.
Public fieldStatic memberDefaultFileNameTemplate Default value for the FileNameTemplate property.
Public fieldStatic memberDefaultFramesPerSecond Default value for the FramesPerSecond property.
Public fieldStatic memberDefaultHeaderLine Default value for the HeaderLine property.
Public fieldStatic memberDefaultLagTime Default value for the LagTime property.
Public fieldStatic memberDefaultLeadTime Default value for the LeadTime property.
Public fieldStatic memberDefaultRollverSchedule Default value for the RolloverSchedule property.
Public fieldStatic memberDefaultTimestampFormat Default value for the TimestampFormat property.
Top
See Also