Modifier and Type | Field and Description |
---|---|
protected DriverContext |
driverContext |
protected org.apache.log4j.Logger |
log |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTagDriver(DriverContext driverContext) |
Modifier and Type | Method and Description |
---|---|
void |
addDriverTag(DriverTag tag)
Add a
DriverTag . |
void |
browse(BrowseOperation browseOperation)
Asynchronous browse operation.
|
void |
buildNode(java.lang.String address,
NodeId nodeId)
For the given address, build an appropriate
Node and at it to the UA address space. |
protected java.lang.String |
displayNameForNode(TagTree.TagTreeNode<?> node)
Gets the text to use in
Node.getDisplayName() . |
DriverTag |
findDriverTag(java.lang.String address)
Find and return the
DriverTag with the given address. |
protected java.util.EnumSet<AccessLevel> |
getTagAccessLevel(DriverTag tag)
DriverTag s are readable by default and writable if they are instances of
WritableDriverTag . |
void |
readItems(java.util.List<? extends ReadItem> items)
Asynchronous read call for a list of items.
|
void |
removeDriverTag(java.lang.String address)
Removes the
DriverTag at the given address. |
void |
shutdown()
Called when a driver should cease all activities and shutdown any open connections.
|
void |
writeItems(java.util.List<? extends WriteItem> items)
Asynchronous write call for a list of items.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDriverStatus
protected volatile org.apache.log4j.Logger log
protected volatile DriverContext driverContext
protected AbstractTagDriver(DriverContext driverContext)
public void readItems(java.util.List<? extends ReadItem> items)
Driver
ReadItem.setValue(DataValue)
.public void writeItems(java.util.List<? extends WriteItem> items)
Driver
WriteItem.setWriteStatus(StatusCode)
.writeItems
in interface Driver
public void browse(BrowseOperation browseOperation)
Driver
BrowseOperation.browseDone(StatusCode, List, Guid)
.public void shutdown()
Driver
public void buildNode(java.lang.String address, NodeId nodeId) throws AddressNotFoundException
Driver
Node
and at it to the UA address space. See DriverContext.getNodeManager()
and DriverContext.getNodeBuilderFactory()
for more information.
If for any reason the node cannot be built AddressNotFoundException
should be thrown.buildNode
in interface Driver
address
- Address of the node that is to be built.nodeId
- The NodeId
to use when building the Node
for this address.AddressNotFoundException
public void addDriverTag(DriverTag tag)
DriverTag
.tag
- The tag to add.protected java.lang.String displayNameForNode(TagTree.TagTreeNode<?> node)
Node.getDisplayName()
. Basically, this is whatever the
address element is.node
- protected java.util.EnumSet<AccessLevel> getTagAccessLevel(DriverTag tag)
DriverTag
s are readable by default and writable if they are instances of
WritableDriverTag
.tag
- AccessLevel
s for this tag.public void removeDriverTag(java.lang.String address)
Removes the DriverTag
at the given address.
If the address points to a folder then the folder and all its children will be recursively removed.
address
- The address to remove.