메소드 | 설명 | |
---|---|---|
Authenticate ( string sharedSecret, string authenticationID ) : bool |
Authenticates subscriber to a data publisher.
|
|
DataSubscriber ( ) : System |
Creates a new DataSubscriber.
|
|
GetShortStatus ( int maxLength ) : string |
Gets a short one-line status of this DataSubscriber.
|
|
Initialize ( ) : void |
Initializes DataSubscriber.
|
|
SendServerCommand ( ServerCommand commandCode, byte data = null ) : bool |
Sends a server command to the publisher connection.
|
|
SendServerCommand ( ServerCommand commandCode, string message ) : bool |
Sends a server command to the publisher connection with associated message data.
|
|
Subscribe ( GSF.TimeSeries.Transport.SubscriptionInfo info ) : bool |
Subscribes (or re-subscribes) to a data publisher for a set of data points.
|
|
Subscribe ( bool remotelySynchronized, bool compactFormat, string connectionString ) : bool |
Subscribes (or re-subscribes) to a data publisher for a set of data points.
|
|
SynchronizeMetadata ( |
Spawn meta-data synchronization. This method makes sure only one meta-data synchronization happens at a time. |
|
SynchronizedSubscribe ( GSF.TimeSeries.Transport.SynchronizedSubscriptionInfo info ) : bool |
Subscribes (or re-subscribes) to a data publisher for a synchronized set of data points.
|
|
Unsubscribe ( ) : bool |
Unsubscribes from a data publisher.
|
|
UnsynchronizedSubscribe ( GSF.TimeSeries.Transport.UnsynchronizedSubscriptionInfo info ) : bool |
Subscribes (or re-subscribes) to a data publisher for an unsynchronized set of data points.
|
메소드 | 설명 | |
---|---|---|
AttemptConnection ( ) : void |
Attempts to connect to this DataSubscriber.
|
|
AttemptDisconnection ( ) : void |
Attempts to disconnect from this DataSubscriber.
|
|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the DataSubscriber object and optionally releases the managed resources.
|
|
DisposeLocalConcentrator ( ) : void |
Disposes of any previously defined local concentrator.
|
|
GetLoggingPath ( string filePath ) : string |
Gets file path for any defined logging path.
|
|
InterpretResponseMessage ( byte buffer, int startIndex, int length ) : string |
Get message from string based response.
|
|
OnConnectionAuthenticated ( ) : void |
Raises the ConnectionAuthenticated event.
|
|
OnConnectionEstablished ( ) : void |
Raises the ConnectionEstablished event.
|
|
OnConnectionTerminated ( ) : void |
Raises the ConnectionTerminated event.
|
|
OnDataStartTime ( Ticks startTime ) : void |
Raises the DataStartTime event.
|
|
OnMetaDataReceived ( |
Raises the MetaDataReceived event.
|
|
OnNotificationReceived ( string message ) : void |
Raises the NotificationReceived event.
|
|
OnProcessException ( MessageLevel level, |
Raises AdapterBase.ProcessException event.
|
|
OnProcessingComplete ( string source ) : void |
Raises the ProcessingComplete event.
|
|
OnReceivedServerResponse ( ServerResponse responseCode, ServerCommand commandCode ) : void |
Raises the ReceivedServerResponse event.
|
|
OnReceivedUserCommandResponse ( ServerCommand command, ServerResponse response, byte buffer, int startIndex, int length ) : void |
Raises the ReceivedUserCommandResponse event.
|
|
OnServerConfigurationChanged ( ) : void |
Raises the ServerConfigurationChanged event.
|
|
SynchronizeMetadata ( ) : void |
Handles meta-data synchronization to local system. This function should only be initiated from call to SynchronizeMetadata(DataSet) to make sure only one meta-data synchronization happens at once. Users can override this method to customize process of meta-data synchronization. |
메소드 | 설명 | |
---|---|---|
DataSubscriber_ConnectionAuthenticated ( object sender, |
||
DataSubscriber_MetaDataReceived ( object sender, EventArgs |
||
DeserializeMetadata ( byte buffer ) : |
||
DeserializeSignalIndexCache ( byte buffer ) : |
||
DisconnectClient ( ) : void | ||
FixExpectedMeasurementCounts ( ) : void | ||
FromLocallySynchronizedInfo ( GSF.TimeSeries.Transport.SynchronizedSubscriptionInfo info ) : GSF.TimeSeries.Transport.UnsynchronizedSubscriptionInfo | ||
GetAuthorizedSignalIDs ( ) : System.Guid[] | ||
GetCharacterEncoding ( OperationalEncoding operationalEncoding ) : |
||
GetDataGapRecoverySubscriptionStatus ( ) : string | ||
GetFramesPerSecond ( |
||
GetLocalCertificate ( ) : string | ||
GetUnauthorizedSignalIDs ( ) : System.Guid[] | ||
HandleDeviceStatisticsRegistration ( ) : void | ||
HandleSocketException ( |
||
InitSyncProgress ( long totalActions ) : void | ||
IsUserCommand ( ServerCommand command ) : bool | ||
LocallySynchronizedSubscribe ( bool compactFormat, int framesPerSecond, double lagTime, double leadTime, string filterExpression, string dataChannel = null, bool useLocalClockAsRealTime = false, bool ignoreBadTimestamps = false, bool allowSortsByArrival = true, long timeResolution = Ticks.PerMillisecond, bool allowPreemptivePublishing = true, DownsamplingMethod downsamplingMethod = DownsamplingMethod.LastReceived, string startTime = null, string stopTime = null, string constraintParameters = null, int processingInterval = -1, string waitHandleNames = null, int waitHandleTimeout ) : bool | ||
OnExceededParsingExceptionThreshold ( ) : void |
Raises the ExceededParsingExceptionThreshold event.
|
|
ParseTSSCMeasurements ( byte buffer, int responseLength, int &responseIndex, List |
||
ProcessServerResponse ( byte buffer, int length ) : void | ||
RefreshMetadata ( ) : void | ||
RegisterDeviceStatistics ( ) : void | ||
RemoteCertificateExists ( ) : bool | ||
RemotelySynchronizedSubscribe ( bool compactFormat, int framesPerSecond, double lagTime, double leadTime, string filterExpression, string dataChannel = null, bool useLocalClockAsRealTime = false, bool ignoreBadTimestamps = false, bool allowSortsByArrival = true, long timeResolution = Ticks.PerMillisecond, bool allowPreemptivePublishing = true, DownsamplingMethod downsamplingMethod = DownsamplingMethod.LastReceived, string startTime = null, string stopTime = null, string constraintParameters = null, int processingInterval = -1, string waitHandleNames = null, int waitHandleTimeout ) : bool | ||
ResetLifetimeCounters ( ) : void | ||
ResetMeasurementsPerSecondCounters ( ) : void | ||
Restart ( ) : void | ||
StartSubscription ( ) : void | ||
SubscribeToOutputMeasurements ( bool metaDataRefreshCompleted ) : void | ||
SubscribedDevicesTimer_Elapsed ( object sender, EventArgs |
||
SynchronizedMetadataChanged ( |
||
TryFilterOutputMeasurements ( ) : void | ||
UnregisterDeviceStatistics ( ) : void | ||
UnsynchronizedSubscribe ( bool compactFormat, bool throttled, string filterExpression, string dataChannel = null, bool includeTime = true, double lagTime = 10.0D, double leadTime = 5.0D, bool useLocalClockAsRealTime = false, string startTime = null, string stopTime = null, string constraintParameters = null, int processingInterval = -1, string waitHandleNames = null, int waitHandleTimeout ) : bool | ||
UpdateMeasurementsPerSecond ( System.DateTime now, int measurementCount ) : void | ||
UpdateOutputMeasurements ( bool initialCall = false ) : bool | ||
UpdateStatisticsHelpers ( ) : void | ||
UpdateSyncProgress ( ) : void | ||
m_commandChannel_ConnectionAttempt ( object sender, |
||
m_commandChannel_ConnectionEstablished ( object sender, |
||
m_commandChannel_ConnectionException ( object sender, EventArgs |
||
m_commandChannel_ConnectionTerminated ( object sender, |
||
m_commandChannel_ReceiveData ( object sender, EventArgs |
||
m_commandChannel_ReceiveDataException ( object sender, EventArgs |
||
m_commandChannel_SendDataException ( object sender, EventArgs |
||
m_dataChannel_ConnectionAttempt ( object sender, |
||
m_dataChannel_ConnectionException ( object sender, EventArgs |
||
m_dataChannel_ReceiveData ( object sender, EventArgs |
||
m_dataChannel_ReceiveDataException ( object sender, EventArgs |
||
m_dataGapRecoverer_ProcessException ( object sender, EventArgs |
||
m_dataGapRecoverer_RecoveredMeasurements ( object sender, EventArgs |
||
m_dataGapRecoverer_StatusMessage ( object sender, EventArgs |
||
m_dataStreamMonitor_Elapsed ( object sender, EventArgs |
||
m_localConcentrator_ProcessException ( object sender, EventArgs |
||
m_runTimeLog_ProcessException ( object sender, EventArgs |
public Authenticate ( string sharedSecret, string authenticationID ) : bool | ||
sharedSecret | string | Shared secret used to look up private crypto key and initialization vector. |
authenticationID | string | Authentication ID that publisher will use to validate subscriber identity. |
리턴 | bool |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
리턴 | void |
protected GetLoggingPath ( string filePath ) : string | ||
filePath | string | Path to acquire within logging path. |
리턴 | string |
public GetShortStatus ( int maxLength ) : string | ||
maxLength | int | Maximum length of the status message. |
리턴 | string |
protected InterpretResponseMessage ( byte buffer, int startIndex, int length ) : string | ||
buffer | byte | Response buffer. |
startIndex | int | Start index of response message. |
length | int | Length of response message. |
리턴 | string |
protected OnDataStartTime ( Ticks startTime ) : void | ||
startTime | Ticks | Start time, in |
리턴 | void |
protected OnMetaDataReceived ( |
||
metadata | Meta-data |
|
리턴 | void |
protected OnNotificationReceived ( string message ) : void | ||
message | string | Message for the notification. |
리턴 | void |
protected OnProcessException ( MessageLevel level, |
||
level | MessageLevel | The |
exception | Processing |
|
eventName | string | A fixed string to classify this event; defaults to |
flags | MessageFlags | |
리턴 | void |
protected OnProcessingComplete ( string source ) : void | ||
source | string | Type name of adapter that sent the processing completed notification. |
리턴 | void |
protected OnReceivedServerResponse ( ServerResponse responseCode, ServerCommand commandCode ) : void | ||
responseCode | ServerResponse | Response received from the server. |
commandCode | ServerCommand | Command that the server responded to. |
리턴 | void |
protected OnReceivedUserCommandResponse ( ServerCommand command, ServerResponse response, byte buffer, int startIndex, int length ) : void | ||
command | ServerCommand | The code for the user command. |
response | ServerResponse | The code for the server's response. |
buffer | byte | Buffer containing the message from the server. |
startIndex | int | Index into the buffer used to skip the header. |
length | int | The length of the message in the buffer, including the header. |
리턴 | void |
public SendServerCommand ( ServerCommand commandCode, byte data = null ) : bool | ||
commandCode | ServerCommand | |
data | byte | Optional command data to send. |
리턴 | bool |
public SendServerCommand ( ServerCommand commandCode, string message ) : bool | ||
commandCode | ServerCommand | |
message | string | String based command data to send to server. |
리턴 | bool |
public Subscribe ( GSF.TimeSeries.Transport.SubscriptionInfo info ) : bool | ||
info | GSF.TimeSeries.Transport.SubscriptionInfo | Configuration object that defines the subscription. |
리턴 | bool |
public Subscribe ( bool remotelySynchronized, bool compactFormat, string connectionString ) : bool | ||
remotelySynchronized | bool | Boolean value that determines if subscription should be remotely synchronized - note that data publisher may not allow remote synchronization. |
compactFormat | bool | Boolean value that determines if the compact measurement format should be used. Set to |
connectionString | string | Connection string that defines required and optional parameters for the subscription. |
리턴 | bool |
public SynchronizeMetadata ( |
||
metadata | ||
리턴 | void |
public SynchronizedSubscribe ( GSF.TimeSeries.Transport.SynchronizedSubscriptionInfo info ) : bool | ||
info | GSF.TimeSeries.Transport.SynchronizedSubscriptionInfo | Configuration object that defines the subscription. |
리턴 | bool |
public UnsynchronizedSubscribe ( GSF.TimeSeries.Transport.UnsynchronizedSubscriptionInfo info ) : bool | ||
info | GSF.TimeSeries.Transport.UnsynchronizedSubscriptionInfo | Configuration object that defines the subscription. |
리턴 | bool |