public class ClientTagManagerImpl extends java.lang.Object implements ClientTagManager
Modifier and Type | Class and Description |
---|---|
protected class |
ClientTagManagerImpl.ComplexTypeManagerWrapper
This wrapper makes sure we always use fully qualified paths, inserting the source name if appropriate.
|
TagManagerBase.CollisionPolicy
Constructor and Description |
---|
ClientTagManagerImpl(ClientContext app) |
Modifier and Type | Method and Description |
---|---|
void |
addScanClasses(java.lang.String provider,
java.util.List<ScanClass> scanClasses)
Adds the given scan classes to the system, replacing any existing ones with the same names.
|
void |
addSubManager(TagProviderMeta meta,
ClientSubManager manager) |
void |
addSystemSubManager(java.lang.String name,
ClientSubManager manager) |
void |
addTags(TagPath parentFolder,
java.util.List<TagNode> tags,
TagManagerBase.CollisionPolicy policy)
Adds the given tags into the parent folder.
|
boolean |
areTagsEditable(java.util.List<TagPath> paths)
Returns whether the specified tags can be edited, based on provider, or security settings.
|
java.util.List<Tag> |
browse(TagPath root)
Provides the tags located beneath the specified path.
|
BrowseResults |
browseHistoricalTags(QualifiedPath root,
BrowseFilter filter) |
java.util.List<BrowseElement> |
browseOPC(java.lang.String provider,
BrowseElement root)
Browses the OPC servers on the given provider.
|
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(java.lang.String provider)
Gets the drivers under a given provider.
|
StatMetric |
getLoadMetric() |
protected ClientSubManager |
getManager(java.lang.String name) |
protected ClientSubManager |
getManager(TagPath path) |
StatMetric |
getPollingMetric() |
java.util.List<TagProviderMeta> |
getProviderInformation() |
TagProviderMeta |
getProviderInformation(java.lang.String provider) |
java.util.List<ScanClass> |
getScanClasses(java.lang.String provider)
Returns the scan classes for a given provider.
|
SystemTagManager |
getSystemTags() |
Tag |
getTag(TagPath path)
Returns the tag located at a specific path.
|
TagDiagnostics |
getTagDiagnostics(TagPath path)
Returns the current diagnostic information for a given path.
|
java.util.List<Tag> |
getTags(java.util.List<TagPath> paths)
Returns the requested tags.
|
java.util.List<TagNode> |
getTagsDeep(java.util.List<TagPath> paths)
Returns a deep copy of the tag hierarchy under the given paths
|
ComplexTypeManager |
getTypeManager(java.lang.String provider)
Returns the type manager, or null if the provider doesn't support complex types
|
StatMetric |
getValueChangeMetric() |
void |
modifyScanClass(java.lang.String provider,
java.lang.String scName,
ScanClass newDefinition)
Edits the scan class, replacing the old one with the new definition.
|
java.util.List<QualifiedValue> |
read(java.util.List<TagPath> paths)
Reads the values of the given tag paths.
|
void |
removeScanClasses(java.lang.String provider,
java.util.List<java.lang.String> scanclassNames)
Removes scan classes with the given names.
|
void |
removeTags(java.util.List<TagPath> paths)
Removes the tags at the given tag paths.
|
void |
setPollingDelay(int millis) |
void |
shutdown() |
void |
startup() |
void |
subscribe(java.util.List<TagPath> paths,
java.util.List<TagChangeListener> listeners)
Subscribes to multiple paths at once, in order to be more efficient.
|
void |
subscribe(TagPath path,
TagChangeListener listener)
Subscribes to the given tag path/property.
|
void |
unsubscribe(java.util.List<TagPath> paths,
java.util.List<TagChangeListener> listeners)
Unsubscribes from multiple paths at once, in order to be more efficient.
|
void |
unsubscribe(TagPath path,
TagChangeListener listener)
Unsubscribes from the given tag path/property.
|
WriteOperation |
write(TagPath path,
java.lang.Object value) |
public ClientTagManagerImpl(ClientContext app)
public void setPollingDelay(int millis)
protected ClientSubManager getManager(TagPath path)
protected ClientSubManager getManager(java.lang.String name)
public SystemTagManager getSystemTags()
public void shutdown()
shutdown
in interface ClientTagManager
public void startup()
startup
in interface ClientTagManager
public StatMetric getPollingMetric()
getPollingMetric
in interface ClientTagManager
public StatMetric getLoadMetric()
getLoadMetric
in interface ClientTagManager
public StatMetric getValueChangeMetric()
getValueChangeMetric
in interface ClientTagManager
public WriteOperation write(TagPath path, java.lang.Object value)
write
in interface ClientTagManager
public java.util.List<QualifiedValue> read(java.util.List<TagPath> paths)
TagSubscriptionManager
read
in interface TagSubscriptionManager
public java.util.List<BrowseElement> browseOPC(java.lang.String provider, BrowseElement root) throws java.lang.Exception
TagManager
browseOPC
in interface TagManager
provider
- may be the name of a sqltags provider, or "name/driver" for the legacy sqltags system which could have
multiple drivers under one provider.root
- location from which to browse.java.lang.IllegalArgumentException
- if provider doesn't exist.java.lang.Exception
public java.util.List<java.lang.String> getDrivers(java.lang.String provider) throws java.lang.IllegalArgumentException
TagManager
getDrivers
in interface TagManager
java.lang.IllegalArgumentException
- if provider doesn't exist.public boolean areTagsEditable(java.util.List<TagPath> paths)
ClientTagManager
areTagsEditable
in interface ClientTagManager
public TagProviderMeta getProviderInformation(java.lang.String provider)
getProviderInformation
in interface ClientTagManager
public java.util.List<TagProviderMeta> getProviderInformation()
getProviderInformation
in interface TagManager
public void addScanClasses(java.lang.String provider, java.util.List<ScanClass> scanClasses) throws java.lang.Exception
TagManager
addScanClasses
in interface TagManager
provider
- where to add the scan classes.java.lang.IllegalArgumentException
- if provider doesn't exist.java.lang.Exception
public void modifyScanClass(java.lang.String provider, java.lang.String scName, ScanClass newDefinition) throws java.lang.Exception
TagManager
modifyScanClass
in interface TagManager
java.lang.Exception
public java.util.List<ScanClass> getScanClasses(java.lang.String provider) throws java.lang.IllegalArgumentException
TagManager
getScanClasses
in interface TagManager
java.lang.IllegalArgumentException
- if provider doesn't exist.public void removeScanClasses(java.lang.String provider, java.util.List<java.lang.String> scanclassNames)
TagManager
removeScanClasses
in interface TagManager
provider
- where to remove the scan classes from.public BrowseResults browseHistoricalTags(QualifiedPath root, BrowseFilter filter)
browseHistoricalTags
in interface ClientTagManager
public java.util.List<Tag> browse(TagPath root)
TagCollection
browse
in interface TagCollection
public Tag getTag(TagPath path)
TagCollection
getTag
in interface TagCollection
public java.util.List<Tag> getTags(java.util.List<TagPath> paths)
ClientTagManager
getTags
in interface ClientTagManager
public ComplexTypeManager getTypeManager(java.lang.String provider)
ClientTagManager
getTypeManager
in interface ClientTagManager
public TagDiagnostics getTagDiagnostics(TagPath path)
TagManagerBase
getTagDiagnostics
in interface TagManagerBase
public void addTags(TagPath parentFolder, java.util.List<TagNode> tags, TagManagerBase.CollisionPolicy policy) throws java.lang.Exception
TagManagerBase
addTags
in interface TagManagerBase
java.lang.Exception
public void editTags(java.util.List<TagPath> paths, TagDiff edit) throws java.lang.Exception
TagManagerBase
editTags
in interface TagManagerBase
java.lang.Exception
public void removeTags(java.util.List<TagPath> paths) throws java.lang.Exception
TagManagerBase
removeTags
in interface TagManagerBase
java.lang.Exception
public void subscribe(TagPath path, TagChangeListener listener)
TagSubscriptionManager
subscribe
in interface TagSubscriptionManager
public void unsubscribe(TagPath path, TagChangeListener listener)
TagSubscriptionManager
unsubscribe
in interface TagSubscriptionManager
public void subscribe(java.util.List<TagPath> paths, java.util.List<TagChangeListener> listeners)
TagSubscriptionManager
subscribe
in interface TagSubscriptionManager
public void unsubscribe(java.util.List<TagPath> paths, java.util.List<TagChangeListener> listeners)
TagSubscriptionManager
unsubscribe
in interface TagSubscriptionManager
public java.util.List<TagNode> getTagsDeep(java.util.List<TagPath> paths) throws java.lang.Exception
getTagsDeep
in interface ClientTagManager
java.lang.Exception
public void addSubManager(TagProviderMeta meta, ClientSubManager manager)
addSubManager
in interface ClientTagManager
public void addSystemSubManager(java.lang.String name, ClientSubManager manager)
addSystemSubManager
in interface ClientTagManager