OPC Historian .NET Server Toolkit Reference
DBAPlugin Class Members
Fields  Properties  Methods 


The following tables list the members exposed by DBAPlugin.

Public Constructors
 NameDescription
Public ConstructorDBAPlugin ConstructorIs called once at server startup  
Top
Public Fields
 NameDescription
Public Fieldstatic (Shared in Visual Basic)AggregatesAggregates supported by this server.  
Public Fieldstatic (Shared in Visual Basic)ItemAttributesItem Attributes supported by this server.  
Public Fieldstatic (Shared in Visual Basic)ItemHandlesThis list contains all items that have been requested in client GetItemHandles() calls In some applications the list may be static, containing all items.  
Public Fieldstatic (Shared in Visual Basic)ServerStatusCurrent server status returned in GetHistorianStatus()  
Public Fieldstatic (Shared in Visual Basic)ServerStatusStringExplains the server state OPCHDAServerStatus.Indeterminate  
Top
Protected Fields
 NameDescription
Internal FieldfileLockLock to serialize database access  
Top
Public Properties
 NameDescription
Public PropertyAnnotationCapabilitiesDefinition of the Annotation handling capabilities of this server implementation  
Public PropertyupdateCapabilitiesDefinition of the update handling capabilities of this server implementation  
Top
Public Methods
 NameDescription
Public MethodDeleteAtTimeThis method handles one synchronous or asynchronous client update::DeleteAtTime call. The request list may contain multipe timestamps for multiple items  
Public MethodDeleteRawThis method handles one synchronous or asynchronous client update::Delete request call. For one item the datapoint in the given time interval are deleted in the database.  
Public MethodGetAnnotationsDatabase access helper method.
Reads annotations from the database into a DataPointAnnotation array. At least one data point before and after the time range must be included in the returned array. The returned data has to be sorted for increasing timestamps. On error throw a HDAException with the error code that is to be rturned to the client.  
Public MethodGetAttributeItemDataReads the attributes from the database. At least one attribute before and after the time range must be included in the returned array, unless startTime is DateTime.MinValkue, indicating that only the newest value is to be returned. The returned data has to be sorted for increasing timestamps  
Public MethodGetItemInfoReturns the HDA item definition object for the handle.  
Public MethodGetModifiedItemDataReads all modified data points from the file into a DataPointModified array. At least one data point before and after the time range must be included in the returned array. This implementation returns all found points and lets the calling method in HDAPlugin.dll filter the unneeded points. The returned data has to be sorted for increasing timestamps. On error throw a HDAException with the error code that is to be rturned to the client.  
Public MethodGetRawItemDataReads the raw data points in the given time range from the database into a DataPoint array. At least one data point before and after the time range should be included in the returned array. This method needs NOT be thread safe. The returned data has to be sorted for increasing timestamps  
Public MethodInsertThis method handles one synchronous or asynchronous client update::insert request call. It inserts the datapoints into the database. There may be multipe datapoints for multiple items  
Public MethodInsertAnnotationInsert an annotation into the database.  
Public MethodInsertReplaceThis method handles one synchronous or asynchronous client update::insertReplace request call. It inserts the datapoints into the database. There may be multipe datapoints for multiple items  
Public MethodProcessDatapointCalculates one processed data value.  
Public MethodReplaceThis method handles one synchronous or asynchronous client update::Replace request call. It inserts the datapoints into the database. There may be multipe datapoints for multiple items  
Top
See Also

Reference

DBAPlugin Class
HDAPluginDBA Namespace

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback