public interface TagProvider extends TagCollection
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_NAME_TEMPLATE
A template logger name that can be used by tag providers to provide consistent names.
|
static java.util.List<java.lang.String> |
NO_IMP_SENTINAL_LISTSTR |
static PropertySet |
NO_IMP_SENTINAL_PROPSET |
Modifier and Type | Method and Description |
---|---|
void |
addScanClasses(java.util.List<ScanClass> scanClasses)
Adds the given scan classes to the system, replacing any existing ones with the same names.
|
void |
addTags(TagPath parentFolder,
java.util.List<TagNode> tag,
TagManagerBase.CollisionPolicy policy)
Adds the given tags into the parent folder.
|
java.util.List<BrowseElement> |
browseOPC(java.lang.String driver,
BrowseElement root)
Browses the OPC servers applicable for this driver.
|
void |
editTags(java.util.List<TagPath> paths,
TagDiff edit)
Applies the given TagDiff edit to the paths indicated
|
java.util.List<java.lang.String> |
getDrivers()
Gets a list of the names of any sub-drivers.
|
default PropertySet |
getExtendedTagResources(java.lang.String driver)
Returns any additional extended "tag resources".
|
default java.util.List<java.lang.String> |
getHistoricalProviders(java.lang.String driver)
Returns the historical providers that tags from this tag provider can target for history.
|
TagProviderMeta |
getInformation()
Provides meta information that describes the tag provider.
|
java.util.List<ScanClass> |
getScanClasses()
Returns the scan classes defined for the provider, if the provider supports them.
|
TagProviderInformation |
getStatusInformation()
Returns execution information that describes the current state of the provider.
|
TagDiagnostics |
getTagDiagnostics(TagPath path)
Gets information about the state of an executing tag.
|
boolean |
isPublic()
If the driver is public, it will be browsable from the designer.
|
void |
modifyScanClass(java.lang.String scName,
ScanClass newDefinition) |
java.util.List<QualifiedValue> |
read(java.util.List<TagPath> paths,
AuthenticatedUser user,
boolean isSystem)
Reads the values of the given tag paths.
|
void |
removeScanClasses(java.util.List<java.lang.String> scanclassNames)
Removes scan classes with the given names.
|
void |
removeTags(java.util.List<TagPath> tagPath)
Removes the tags at the given tag paths.
|
void |
shutdown() |
void |
startup(TagSubscriptionModel model) |
java.util.List<Quality> |
write(java.util.List<WriteRequest<TagPath>> requests,
AuthenticatedUser user,
boolean isSystem)
Performs the given write requests against the tags, checking the authenticated user/isSystem permissions.
|
browse, getTag
static final java.util.List<java.lang.String> NO_IMP_SENTINAL_LISTSTR
static final PropertySet NO_IMP_SENTINAL_PROPSET
static final java.lang.String LOG_NAME_TEMPLATE
void startup(TagSubscriptionModel model)
void shutdown()
boolean isPublic()
TagProviderMeta getInformation()
TagProviderInformation getStatusInformation()
TagDiagnostics getTagDiagnostics(TagPath path)
path
- java.util.List<QualifiedValue> read(java.util.List<TagPath> paths, AuthenticatedUser user, boolean isSystem)
paths
- of tags to read.user
- against which to check security permissions.isSystem
- if true, will bypass most security checks.java.util.List<Quality> write(java.util.List<WriteRequest<TagPath>> requests, AuthenticatedUser user, boolean isSystem)
requests
- provide the target path and value to write.user
- against which to check security permissions.isSystem
- if true, will bypass most security checks.java.util.List<ScanClass> getScanClasses()
void addScanClasses(java.util.List<ScanClass> scanClasses) throws java.lang.Exception
scanClasses
- java.lang.Exception
void modifyScanClass(java.lang.String scName, ScanClass newDefinition) throws java.lang.Exception
java.lang.Exception
void removeScanClasses(java.util.List<java.lang.String> scanclassNames)
scanclassNames
- void addTags(TagPath parentFolder, java.util.List<TagNode> tag, TagManagerBase.CollisionPolicy policy) throws java.lang.Exception
tag
- java.lang.Exception
void editTags(java.util.List<TagPath> paths, TagDiff edit) throws java.lang.Exception
java.lang.Exception
void removeTags(java.util.List<TagPath> tagPath) throws java.lang.Exception
tagPath
- java.lang.Exception
java.util.List<BrowseElement> browseOPC(java.lang.String driver, BrowseElement root) throws java.lang.Exception
driver
- root
- java.lang.Exception
java.util.List<java.lang.String> getDrivers()
default java.util.List<java.lang.String> getHistoricalProviders(java.lang.String driver)
default PropertySet getExtendedTagResources(java.lang.String driver)