public class RedundantProviderWrapper extends java.lang.Object implements TagProvider, TypeManagerProvider
Modifier and Type | Class and Description |
---|---|
protected class |
RedundantProviderWrapper.ConfigRedundancyMessageListener |
protected static class |
RedundantProviderWrapper.THQIRedundantProviderWrapper |
NO_IMP_SENTINAL_LISTSTR, NO_IMP_SENTINAL_PROPSET
Modifier and Type | Method and Description |
---|---|
void |
_addScanClasses(java.util.List<ScanClass> scanClasses) |
void |
_addTags(TagPath parentFolder,
java.util.List<TagNode> tags,
TagManagerBase.CollisionPolicy policy) |
void |
_editTags(java.util.List<TagPath> paths,
TagDiff edit) |
void |
_modifyScanClass(java.lang.String scName,
ScanClass newDefinition) |
void |
_removeScanClasses(java.util.List<java.lang.String> scanclassNames) |
void |
_removeTags(java.util.List<TagPath> tagPaths) |
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> tags,
TagManagerBase.CollisionPolicy policy)
Adds the given tags into the parent folder.
|
java.util.List<Tag> |
browse(TagPath path)
The following functions just delegate to the internal class.
|
java.util.List<BrowseElement> |
browseOPC(java.lang.String driver,
BrowseElement root)
Browses the OPC servers applicable for this driver.
|
BrowseResults<TagInfoResult> |
browseTagInfo(QualifiedPath root,
boolean recursive,
BrowseFilter filter) |
protected void |
cluster(java.io.Serializable msg) |
static RedundantProviderWrapper |
create(GatewayContext context,
TagProvider internal) |
void |
editTags(java.util.List<TagPath> paths,
TagDiff edit)
Applies the given TagDiff edit to the paths indicated
|
void |
executeScanclass(java.lang.String scname) |
java.util.List<java.lang.String> |
getDrivers()
Gets a list of the names of any sub-drivers.
|
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.
|
Tag |
getTag(TagPath path)
Returns the tag located at a specific path.
|
TagDiagnostics |
getTagDiagnostics(TagPath path)
Gets information about the state of an executing tag.
|
TypeManager |
getTypeManager() |
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> tagPaths)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExtendedTagResources, getHistoricalProviders
public static RedundantProviderWrapper create(GatewayContext context, TagProvider internal)
public void startup(TagSubscriptionModel model)
startup
in interface TagProvider
public void shutdown()
shutdown
in interface TagProvider
public void executeScanclass(java.lang.String scname)
executeScanclass
in interface TagProvider
protected void cluster(java.io.Serializable msg) throws java.lang.Exception
java.lang.Exception
public TypeManager getTypeManager()
getTypeManager
in interface TypeManagerProvider
public void addTags(TagPath parentFolder, java.util.List<TagNode> tags, TagManagerBase.CollisionPolicy policy) throws java.lang.Exception
TagProvider
addTags
in interface TagProvider
java.lang.Exception
public void _addTags(TagPath parentFolder, java.util.List<TagNode> tags, TagManagerBase.CollisionPolicy policy) throws java.lang.Exception
java.lang.Exception
public void editTags(java.util.List<TagPath> paths, TagDiff edit) throws java.lang.Exception
TagProvider
editTags
in interface TagProvider
java.lang.Exception
public void _editTags(java.util.List<TagPath> paths, TagDiff edit) throws java.lang.Exception
java.lang.Exception
public void removeTags(java.util.List<TagPath> tagPaths) throws java.lang.Exception
TagProvider
removeTags
in interface TagProvider
java.lang.Exception
public void _removeTags(java.util.List<TagPath> tagPaths) throws java.lang.Exception
java.lang.Exception
public void addScanClasses(java.util.List<ScanClass> scanClasses) throws java.lang.Exception
TagProvider
addScanClasses
in interface TagProvider
java.lang.Exception
public void _addScanClasses(java.util.List<ScanClass> scanClasses) throws java.lang.Exception
java.lang.Exception
public void modifyScanClass(java.lang.String scName, ScanClass newDefinition) throws java.lang.Exception
modifyScanClass
in interface TagProvider
java.lang.Exception
public void _modifyScanClass(java.lang.String scName, ScanClass newDefinition) throws java.lang.Exception
java.lang.Exception
public void removeScanClasses(java.util.List<java.lang.String> scanclassNames)
TagProvider
removeScanClasses
in interface TagProvider
public void _removeScanClasses(java.util.List<java.lang.String> scanclassNames)
public java.util.List<Tag> browse(TagPath path)
browse
in interface TagCollection
public BrowseResults<TagInfoResult> browseTagInfo(QualifiedPath root, boolean recursive, BrowseFilter filter)
browseTagInfo
in interface TagProvider
public Tag getTag(TagPath path)
TagCollection
getTag
in interface TagCollection
public boolean isPublic()
TagProvider
isPublic
in interface TagProvider
public TagProviderMeta getInformation()
TagProvider
getInformation
in interface TagProvider
public TagProviderInformation getStatusInformation()
TagProvider
getStatusInformation
in interface TagProvider
public TagDiagnostics getTagDiagnostics(TagPath path)
TagProvider
getTagDiagnostics
in interface TagProvider
public java.util.List<QualifiedValue> read(java.util.List<TagPath> paths, AuthenticatedUser user, boolean isSystem)
TagProvider
read
in interface TagProvider
paths
- of tags to read.user
- against which to check security permissions.isSystem
- if true, will bypass most security checks.public java.util.List<Quality> write(java.util.List<WriteRequest<TagPath>> requests, AuthenticatedUser user, boolean isSystem)
TagProvider
write
in interface TagProvider
requests
- provide the target path and value to write.user
- against which to check security permissions.isSystem
- if true, will bypass most security checks.public java.util.List<ScanClass> getScanClasses()
TagProvider
getScanClasses
in interface TagProvider
public java.util.List<BrowseElement> browseOPC(java.lang.String driver, BrowseElement root) throws java.lang.Exception
TagProvider
browseOPC
in interface TagProvider
java.lang.Exception
public java.util.List<java.lang.String> getDrivers()
TagProvider
getDrivers
in interface TagProvider