Public Member Functions | |
def | __contains__ |
def | __delitem__ |
def | __getitem__ |
def | __init__ |
def | __setitem__ |
def | add_datachange_callback |
def | add_method_callback |
def | delete_datachange_callback |
def | dump |
def | empty |
def | generate_nodeid |
def | get_attribute_value |
def | keys |
def | load |
def | load_aspace_shelf |
def | make_aspace_shelf |
def | set_attribute_value |
Public Attributes | |
cache | |
logger | |
source | |
Private Attributes | |
_datachange_callback_counter | |
_default_idx | |
_handle_to_attribute_map | |
_lock | |
_nodeid_counter | |
_nodes |
The address space object stores all the nodes of the OPC-UA server and helper methods. The methods are thread safe
Definition at line 434 of file address_space.py.
def opcua.server.address_space.AddressSpace.__init__ | ( | self | ) |
Definition at line 442 of file address_space.py.
def opcua.server.address_space.AddressSpace.__contains__ | ( | self, | |
nodeid | |||
) |
Definition at line 460 of file address_space.py.
def opcua.server.address_space.AddressSpace.__delitem__ | ( | self, | |
nodeid | |||
) |
Definition at line 464 of file address_space.py.
def opcua.server.address_space.AddressSpace.__getitem__ | ( | self, | |
nodeid | |||
) |
Definition at line 451 of file address_space.py.
def opcua.server.address_space.AddressSpace.__setitem__ | ( | self, | |
nodeid, | |||
value | |||
) |
Definition at line 456 of file address_space.py.
def opcua.server.address_space.AddressSpace.add_datachange_callback | ( | self, | |
nodeid, | |||
attr, | |||
callback | |||
) |
Definition at line 620 of file address_space.py.
def opcua.server.address_space.AddressSpace.add_method_callback | ( | self, | |
methodid, | |||
callback | |||
) |
Definition at line 640 of file address_space.py.
def opcua.server.address_space.AddressSpace.delete_datachange_callback | ( | self, | |
handle | |||
) |
Definition at line 635 of file address_space.py.
def opcua.server.address_space.AddressSpace.dump | ( | self, | |
path | |||
) |
Dump address space as binary to file; note that server must be stopped for this method to work DO NOT DUMP AN ADDRESS SPACE WHICH IS USING A SHELF (load_aspace_shelf), ONLY CACHED NODES WILL GET DUMPED!
Definition at line 494 of file address_space.py.
def opcua.server.address_space.AddressSpace.empty | ( | self | ) |
Delete all nodes in address space
Definition at line 487 of file address_space.py.
def opcua.server.address_space.AddressSpace.generate_nodeid | ( | self, | |
idx = None |
|||
) |
Definition at line 468 of file address_space.py.
def opcua.server.address_space.AddressSpace.get_attribute_value | ( | self, | |
nodeid, | |||
attr | |||
) |
Definition at line 575 of file address_space.py.
def opcua.server.address_space.AddressSpace.keys | ( | self | ) |
Definition at line 483 of file address_space.py.
def opcua.server.address_space.AddressSpace.load | ( | self, | |
path | |||
) |
Load address space from a binary file, overwriting everything in the current address space
Definition at line 508 of file address_space.py.
def opcua.server.address_space.AddressSpace.load_aspace_shelf | ( | self, | |
path | |||
) |
Load the standard address space nodes from a python shelve via LazyLoadingDict as needed. The dump() method can no longer be used if the address space is being loaded from a shelf Note: Intended for slow devices, such as Raspberry Pi, to greatly improve start up time
Definition at line 529 of file address_space.py.
def opcua.server.address_space.AddressSpace.make_aspace_shelf | ( | self, | |
path | |||
) |
Make a shelf for containing the nodes from the standard address space; this is typically only done on first start of the server. Subsequent server starts will load the shelf, nodes are then moved to a cache by the LazyLoadingDict class when they are accessed. Saving data back to the shelf is currently NOT supported, it is only used for the default OPC UA standard address space Note: Intended for slow devices, such as Raspberry Pi, to greatly improve start up time
Definition at line 515 of file address_space.py.
def opcua.server.address_space.AddressSpace.set_attribute_value | ( | self, | |
nodeid, | |||
attr, | |||
value | |||
) |
Definition at line 592 of file address_space.py.
Definition at line 442 of file address_space.py.
Definition at line 442 of file address_space.py.
Definition at line 442 of file address_space.py.
Definition at line 442 of file address_space.py.
Definition at line 442 of file address_space.py.
Definition at line 442 of file address_space.py.
Definition at line 538 of file address_space.py.
Definition at line 442 of file address_space.py.
Definition at line 538 of file address_space.py.