NodeCrawler Class
Module: opcua.client
Constructor
NodeCrawler
(
-
session
Parameters:
-
session
Object
Item Index
Methods
Properties
Methods
_defer_browse_node
(
private
-
cacheNode
-
referenceTypeId
-
actionOnBrowse
perform a deferred browse instead of calling session.browse directly, this function add the request to a list so that request can be grouped and send in one single browse command to the server.
Parameters:
-
cacheNode
CacheNode -
referenceTypeId
String | ReferenceType -
actionOnBrowse
Function-
err
Error | Null -
object
CacheNode
-
_defer_readNode
(
private
-
nodeId
-
attributeId
-
callback
request a read operation for a Node+Attribute in the future, provides a callback
Parameters:
-
nodeId
NodeId -
attributeId
AttributeId -
callback
Function-
err
Error | Null -
dataValue
String
-
_emit_on_crawled
(
private
-
cacheNode
-
userData
Parameters:
-
cacheNode
Object -
userData
Object-
[onBrowsed=null]
Function optional
-
_process_single_browseResult
(
private
-
_objectToBrowse
-
browseResult
Parameters:
-
_objectToBrowse
Object -
browseResult
BrowseResult
_push_task
add a task at the bottom of the queue (low priority)
(
private
-
name
-
task
Parameters:
-
name
String -
task
Object
_resolve_deferred_readNode
(
private
-
callback
perform pending read Node operation
Parameters:
-
callback
Function
_unshift_task
add a task on top of the queue (high priority)
(
private
-
name
-
task
Parameters:
-
name
String -
task
Object
crawl
(
-
nodeId
-
userData
-
end_callback
Parameters:
-
nodeId
NodeId -
userData
Object-
onBrowse
Function-
crawler
NodeCrawler -
cacheNode
CacheNode
-
-
-
end_callback
Function
withSessionAsync
(
Promise<>
-
endpointUrl
-
func
Parameters:
-
endpointUrl
Object -
func
FunctionAsync function
-
session
ClientSession
-
Returns:
Promise<>:
Note: only present on node >= 8