Click or drag to resize

DataPublisher Class

Represents a data publishing server that allows multiple connections for data subscriptions.
Inheritance Hierarchy

Namespace: GSF.TimeSeries.Transport
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.218-beta
Syntax
View Source

The DataPublisher type exposes the following members.

Constructors
 NameDescription
Public methodDataPublisher Creates a new DataPublisher.
Top
Properties
 NameDescription
Public propertyAllowMetadataRefresh Gets or sets flag that indicates if this publisher will allow synchronized subscriptions when requested by subscribers.
Public propertyAllowNaNValueFilter Gets or sets flag that indicates if this publisher will allow filtering of data which is not a number.
Public propertyAllowPayloadCompression Gets or sets flag that indicates if this publisher will allow payload compression when requested by subscribers.
Public propertyAllowSynchronizedSubscription Gets or sets flag that indicates if this publisher will allow synchronized subscriptions when requested by subscribers.
Protected propertyAutoInitialize Gets flag that determines if DataPublisher subscriptions are automatically initialized when they are added to the collection.
(Overrides AdapterCollectionBaseTAutoInitialize)
Public propertyAutoStart Gets or sets flag indicating if adapter collection should automatically start items when AutoInitialize is false.
(Inherited from AdapterCollectionBaseT)
Public propertyAverageMeasurementsPerSecond Gets the average value of the measurements per second calculation.
Public propertyBufferBlockRetransmissions Gets the total number of buffer block retransmissions on all subscriptions over the lifetime of the publisher.
Public propertyCacheMeasurementKeys Gets or sets the set of measurements which are cached by the data publisher to be published to subscribers immediately upon subscription.
Public propertyCipherKeyRotationPeriod Gets or sets the cipher key rotation period.
Protected propertyClientConnections Gets dictionary of connected clients.
Protected propertyCommandChannel Gets or sets reference to TcpServer command channel, attaching and/or detaching to events as needed.
Public propertyCompressionStrength Gets or sets the compression strength value to use when compressing data for subscribers.
Public propertyConnectionString Gets or sets key/value pair connection information specific to this AdapterCollectionBaseT.
(Inherited from AdapterCollectionBaseT)
Public propertyConvertReadonlyCollectionsToWritable Gets or sets flag that determines if readonly collections should be converted to writable so published measurement sets can be augmented by filter adapters.
(Inherited from ActionAdapterCollection)
Public propertyCount Gets the number of elements contained in the ICollectionT.
(Inherited from ListCollectionT)
Public propertyDataMember Gets or sets specific data member (e.g., table name) in DataSource used to Initialize this AdapterCollectionBaseT.
(Inherited from AdapterCollectionBaseT)
Public propertyDataSource Gets or sets DataSet based data source used to load each IAdapter. Updates to this property will cascade to all items in this AdapterCollectionBaseT.
(Overrides AdapterCollectionBaseTDataSource)
Public propertyEnabled Gets or sets enabled state of this AdapterCollectionBaseT.
(Inherited from AdapterCollectionBaseT)
Public propertyEncryptPayload Gets or sets flag that determines whether data sent over the data channel should be encrypted.
Public propertyForceNaNValueFilter Gets or sets flag that indicates if this publisher will force filtering of data which is not a number.
Public propertyID Gets or sets numeric ID associated with this AdapterCollectionBaseT.
(Inherited from AdapterCollectionBaseT)
Public propertyInitializationTimeout Gets or sets the default adapter time that represents the maximum time system will wait during Start for initialization.
(Inherited from AdapterCollectionBaseT)
Public propertyInitialized Gets or sets flag indicating if the adapter collection has been initialized successfully.
(Inherited from AdapterCollectionBaseT)
Public propertyInputMeasurementKeys Gets or sets primary keys of input measurements the AdapterCollectionBaseT expects, if any.
(Inherited from AdapterCollectionBaseT)
Public propertyInputSourceIDs Gets or sets Source values used to filter input measurement keys.
(Inherited from AdapterCollectionBaseT)
Public propertyIsConnected Gets flag indicating if publisher is connected and listening.
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
(Inherited from AdapterCollectionBaseT)
Public propertyIsReadOnly Gets a value indicating whether the AdapterCollectionBaseT is read-only.
(Inherited from AdapterCollectionBaseT)
Public propertyItem Gets or sets the element at the specified index.
(Inherited from ListCollectionT)
Protected propertyItems Gets a IListT wrapper around the CollectionT.
(Inherited from ListCollectionT)
Public propertyLifetimeAverageLatency Gets the average latency calculated over the full lifetime of the publisher.
Public propertyLifetimeMaximumLatency Gets the maximum latency calculated over the full lifetime of the publisher.
Public propertyLifetimeMeasurements Gets the total number of measurements processed through this data publisher over the lifetime of the publisher.
Public propertyLifetimeMinimumLatency Gets the minimum latency calculated over the full lifetime of the publisher.
Protected propertyLog Log messages generated by an adapter.
(Inherited from AdapterCollectionBaseT)
Public propertyMaximumMeasurementsPerSecond Gets the maximum value of the measurements per second calculation.
Public propertyMeasurementReportingInterval Gets or sets the measurement reporting interval.
Public propertyMetadataTables Gets or sets semi-colon separated list of SQL select statements used to create data for meta-data exchange.
Public propertyMinimumMeasurementsPerSecond Gets the minimum value of the measurements per second calculation.
Protected propertyMonitorTimerEnabled Gets or sets flag that determines if monitor timer should be used for monitoring processed measurement statistics for the AdapterCollectionBaseT.
(Inherited from AdapterCollectionBaseT)
Public propertyMutualSubscription Gets or sets flag that determines if a subscription is mutual, i.e., bi-directional pub/sub. In this mode one node will be the owner and set Internal = True and the other node will be the renter and set Internal = False.
Public propertyName Gets or sets the name of this DataPublisher.
(Overrides AdapterCollectionBaseTName)
Public propertyOutputMeasurements Gets or sets output measurements that the AdapterCollectionBaseT will produce, if any.
(Inherited from AdapterCollectionBaseT)
Public propertyOutputSourceIDs Gets or sets Source values used to filter output measurements.
(Inherited from AdapterCollectionBaseT)
Public propertyProcessedMeasurements Gets the total number of measurements processed thus far by each IAdapter implementation in the AdapterCollectionBaseT.
(Inherited from AdapterCollectionBaseT)
Public propertyProcessingInterval Gets or sets the desired processing interval, in milliseconds, for the adapter collection and applies this interval to each adapter.
(Inherited from AdapterCollectionBaseT)
Public propertyRequestedInputMeasurementKeys Gets or sets input measurement keys that are requested by other adapters based on what adapter says it can provide.
(Inherited from AdapterCollectionBaseT)
Public propertyRequestedOutputMeasurementKeys Gets or sets output measurement keys that are requested by other adapters based on what adapter says it can provide.
(Inherited from AdapterCollectionBaseT)
Public propertyRequireAuthentication Gets or sets flag that determines if DataPublisher should require subscribers to authenticate before making data requests.
Public propertyRespectInputDemands Gets or sets flag indicating if action adapter should respect auto-start requests based on input demands.
(Inherited from ActionAdapterCollection)
Public propertyRespectOutputDemands Gets or sets flag indicating if action adapter should respect auto-start requests based on output demands.
(Inherited from ActionAdapterCollection)
Public propertyRunTime Gets the total amount of time, in seconds, that the adapter has been active.
(Inherited from AdapterCollectionBaseT)
Public propertySecurityMode Gets or sets the security mode of the DataPublisher's command channel.
Public propertySettings Gets settings DictionaryTKey, TValue parsed when ConnectionString was assigned.
(Inherited from AdapterCollectionBaseT)
Public propertySharedDatabase Gets or sets flag that indicates whether this publisher is publishing data that this node subscribed to from another node in a shared database.
Public propertyStartTime Gets the UTC time this AdapterCollectionBaseT was started.
(Inherited from AdapterCollectionBaseT)
Public propertyStartTimeConstraint Gets the start time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
(Inherited from AdapterCollectionBaseT)
Public propertyStatus Gets the status of this DataPublisher.
(Overrides ActionAdapterCollectionStatus)
Public propertyStopTime Gets the UTC time this AdapterCollectionBaseT was stopped.
(Inherited from AdapterCollectionBaseT)
Public propertyStopTimeConstraint Gets the stop time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
(Inherited from AdapterCollectionBaseT)
Public propertySupportsTemporalProcessing Gets the flag indicating if this adapter collection supports temporal processing.
(Inherited from AdapterCollectionBaseT)
Public propertyTotalBytesSent Gets the total number of bytes sent to clients of this data publisher.
Public propertyUseBaseTimeOffsets Gets or sets flag that determines whether to use base time offsets to decrease the size of compact measurements.
Public propertyUseZeroMQChannel Gets or sets flag that determines if ZeroMQ should be used for command channel communications.
Top
Methods
 NameDescription
Public methodAdd Adds an item to the ICollectionT.
(Inherited from ListCollectionT)
Protected methodAquireMetadata Gets meta-data to return to DataSubscriber.
Public methodClear Removes all items from the ICollectionT.
(Inherited from ListCollectionT)
Protected methodClearItems Removes all elements from the CollectionT.
(Inherited from AdapterCollectionBaseT)
Public methodContains Determines whether the ICollectionT contains a specific value.
(Inherited from ListCollectionT)
Public methodCopyTo Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Inherited from ListCollectionT)
Public methodDispose Releases all the resources used by the AdapterCollectionBaseT object.
(Inherited from AdapterCollectionBaseT)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the DataPublisher object and optionally releases the managed resources.
(Overrides AdapterCollectionBaseTDispose(Boolean))
Protected methodDisposeItem Unwires events and disposes of IActionAdapter implementation.
(Inherited from ActionAdapterCollection)
Public methodEnumerateClients Enumerates connected clients.
Public methodEnumerateTemporalClients Enumerates connected clients with active temporal sessions.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Releases the unmanaged resources before the DataPublisher object is reclaimed by GC.
(Overrides AdapterCollectionBaseTFinalize)
Protected methodGetClientEncoding Gets the text encoding associated with a particular client.
Public methodGetEnumerator Returns an enumerator that iterates through the CollectionT.
(Inherited from ListCollectionT)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLocalCertificate Gets the local certificate currently in use by the data publisher.
Public methodGetShortStatus Gets a short one-line status of this DataPublisher.
(Overrides AdapterCollectionBaseTGetShortStatus(Int32))
Public methodGetSubscriberInfo Gets subscriber information for specified client connection.
Public methodGetSubscriberStatus Gets subscriber status for specified subscriber ID.
Public methodGetTemporalStatus Gets temporal status for a specified client connection.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHandleUserCommand Handles custom commands defined by the user of the publisher API.
Public methodImportCertificate Imports a certificate to the trusted certificates path.
Public methodIndexOf Determines the index of a specific item in the IListT.
(Inherited from ListCollectionT)
Public methodInitialize Initializes DataPublisher.
(Overrides ActionAdapterCollectionInitialize)
Protected methodInitializeItem Wires events and initializes new IActionAdapter implementation.
(Inherited from ActionAdapterCollection)
Public methodInsert Inserts an item to the IListT at the specified index.
(Inherited from ListCollectionT)
Protected methodInsertItem Inserts an element into the CollectionT the specified index.
(Inherited from AdapterCollectionBaseT)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnClientConnected Raises the ClientConnected event.
Protected methodOnConfigurationChanged Raises ConfigurationChanged event.
(Inherited from AdapterCollectionBaseT)
Protected methodOnDiscardingMeasurements Raises the DiscardingMeasurements event.
(Inherited from ActionAdapterCollection)
Protected methodOnInputMeasurementKeysUpdated Raises InputMeasurementKeysUpdated event.
(Inherited from AdapterCollectionBaseT)
Protected methodOnNewMeasurements(ICollectionIMeasurement) Raises the NewMeasurements event.
(Inherited from ActionAdapterCollection)
Protected methodOnNewMeasurements(Object, EventArgsICollectionIMeasurement) Raises the NewMeasurements event.
(Inherited from ActionAdapterCollection)
Protected methodOnOutputMeasurementsUpdated Raises OutputMeasurementsUpdated event.
(Inherited from AdapterCollectionBaseT)
Protected methodOnProcessException(Exception)Obsolete.
Raises the ProcessException event.
(Inherited from AdapterCollectionBaseT)
Protected methodOnProcessException(MessageLevel, Exception, String, MessageFlags) Raises the ProcessException event.
(Inherited from AdapterCollectionBaseT)
Protected methodOnProcessingComplete Raises the ProcessingComplete event.
Protected methodOnRequestTemporalSupport Raises RequestTemporalSupport event.
(Inherited from ActionAdapterCollection)
Protected methodOnStatusMessage(String)Obsolete.
Raises the StatusMessage event.
(Inherited from AdapterCollectionBaseT)
Protected methodOnStatusMessage(String, Object)Obsolete.
Raises the StatusMessage event with a formatted status message.
(Inherited from AdapterCollectionBaseT)
Protected methodOnStatusMessage(MessageLevel, String, String, MessageFlags) Raises the StatusMessage event and sends this data to the Logger.
(Inherited from AdapterCollectionBaseT)
Protected methodOnUnpublishedSamples Raises the UnpublishedSamples event.
(Inherited from ActionAdapterCollection)
Public methodQueueMeasurementsForProcessing Queues a collection of measurements for processing to each IActionAdapter connected to this DataPublisher.
(Overrides ActionAdapterCollectionQueueMeasurementsForProcessing(IEnumerableIMeasurement))
Public methodRemove Removes the first occurrence of a specific object from the ICollectionT.
(Inherited from ListCollectionT)
Public methodRemoveAt Removes the element at the specified index of the CollectionT.
(Inherited from ListCollectionT)
Protected methodRemoveItem Removes the element at the specified index of the CollectionT.
(Inherited from AdapterCollectionBaseT)
Public methodResetLifetimeCounters Resets the counters for the lifetime statistics without interrupting the adapter's operations.
Public methodResetStatistics Resets the statistics of this collection.
(Inherited from AdapterCollectionBaseT)
Public methodRotateCipherKeys Rotates cipher keys for specified client connection.
Protected methodSendClientResponse(Guid, ServerResponse, ServerCommand) Sends response back to specified client.
Protected methodSendClientResponse(Guid, ServerResponse, ServerCommand, Byte) Sends response back to specified client with attached data.
Protected methodSendClientResponse(Guid, ServerResponse, ServerCommand, String) Sends response back to specified client with a message.
Protected methodSendClientResponse(Guid, ServerResponse, ServerCommand, String, Object) Sends response back to specified client with a formatted message.
Protected methodSendDataStartTime Sends the start time of the first measurement in a connection transmission.
Public methodSendNotification Sends a notification to all subscribers.
Protected methodSetItem Assigns a new element to the CollectionT at the specified index.
(Inherited from AdapterCollectionBaseT)
Public methodSetTemporalConstraint Defines a temporal processing constraint for the adapter collection and applies this constraint to each adapter.
(Inherited from AdapterCollectionBaseT)
Public methodStart Establish DataPublisher and start listening for client connections.
(Overrides AdapterCollectionBaseTStart)
Public methodStop Terminate DataPublisher and stop listening for client connections.
(Overrides AdapterCollectionBaseTStop)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryCreateAdapter Attempts to create an IAdapter from the specified DataRow.
(Inherited from AdapterCollectionBaseT)
Protected methodTryGetAdapterTValue Attempts to get the adapter with the specified value given testItem function.
(Inherited from AdapterCollectionBaseT)
Public methodTryGetAdapterByID Attempts to get the adapter with the specified id.
(Inherited from AdapterCollectionBaseT)
Public methodTryGetAdapterByName Attempts to get the adapter with the specified name.
(Inherited from AdapterCollectionBaseT)
Public methodTryInitializeAdapterByID Attempts to initialize (or reinitialize) an individual IAdapter based on its ID.
(Inherited from AdapterCollectionBaseT)
Protected methodUpdateLatencyStatistics Updates latency statistics based on the collection of latencies passed into the method.
Protected methodUpdateLatestMeasurementCache Updates the latest measurement cache when the set of cached measurements may have changed.
Protected methodUpdateRights Updates each subscription's inputs based on possible updates to that subscriber's rights.
Public methodUpdateSignalIndexCache Updates signal index cache based on input measurement keys.
Top
Events
 NameDescription
Public eventClientConnected Indicates that a new client has connected to the publisher.
Public eventConfigurationChanged Event is raised when adapter is aware of a configuration change.
(Inherited from AdapterCollectionBaseT)
Public eventDiscardingMeasurements This event is raised if there are any measurements being discarded during the sorting process.
(Inherited from ActionAdapterCollection)
Public eventDisposed Event is raised when this AdapterCollectionBaseT is disposed or an IAdapter in the collection is disposed.
(Inherited from AdapterCollectionBaseT)
Public eventInputMeasurementKeysUpdated Event is raised when InputMeasurementKeys are updated.
(Inherited from AdapterCollectionBaseT)
Public eventNewMeasurements This event will be raised when there are new measurements available from the action adapter.
(Inherited from ActionAdapterCollection)
Public eventOutputMeasurementsUpdated Event is raised when OutputMeasurements are updated.
(Inherited from AdapterCollectionBaseT)
Public eventProcessException Event is raised when there is an exception encountered while processing.
(Inherited from AdapterCollectionBaseT)
Public eventProcessingComplete Indicates to the host that processing for an input adapter (via temporal session) has completed.
Public eventRequestTemporalSupport Event is raised when temporal support is requested.
(Inherited from ActionAdapterCollection)
Public eventStatusMessage Provides status messages to consumer.
(Inherited from AdapterCollectionBaseT)
Public eventUnpublishedSamples This event is raised every five seconds allowing consumer to track current number of unpublished seconds of data in the queue.
(Inherited from ActionAdapterCollection)
Top
Fields
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