Public Member Functions | |
def | __init__ |
def | new_historized_event |
def | new_historized_node |
def | read_event_history |
def | read_node_history |
def | save_event |
def | save_node_value |
def | stop |
Private Attributes | |
_datachanges | |
_datachanges_period | |
_events | |
_events_periods |
Very minimal history backend storing data in memory using a Python dictionary
Definition at line 77 of file history.py.
def opcua.server.history.HistoryDict.__init__ | ( | self | ) |
Definition at line 82 of file history.py.
def opcua.server.history.HistoryDict.new_historized_event | ( | self, | |
source_id, | |||
evtypes, | |||
period, | |||
count = 0 |
|||
) |
Called when historization of events is enabled on server side Returns None
Reimplemented from opcua.server.history.HistoryStorageInterface.
Definition at line 129 of file history.py.
def opcua.server.history.HistoryDict.new_historized_node | ( | self, | |
node_id, | |||
period, | |||
count = 0 |
|||
) |
Called when a new node is to be historized Returns None
Reimplemented from opcua.server.history.HistoryStorageInterface.
Definition at line 88 of file history.py.
def opcua.server.history.HistoryDict.read_event_history | ( | self, | |
source_id, | |||
start, | |||
end, | |||
nb_values, | |||
evfilter | |||
) |
Called when a client make a history read request for events Start time and end time are inclusive Returns a list of Events and a continuation point which is None if all events are read or the ServerTimeStamp of the last rejected event
Reimplemented from opcua.server.history.HistoryStorageInterface.
Definition at line 146 of file history.py.
def opcua.server.history.HistoryDict.read_node_history | ( | self, | |
node_id, | |||
start, | |||
end, | |||
nb_values | |||
) |
Called when a client make a history read request for a node if start or end is missing then nb_values is used to limit query nb_values is the max number of values to read. Ignored if 0 Start time and end time are inclusive Returns a list of DataValues and a continuation point which is None if all nodes are read or the ServerTimeStamp of the last rejected DataValue
Reimplemented from opcua.server.history.HistoryStorageInterface.
Definition at line 105 of file history.py.
def opcua.server.history.HistoryDict.save_event | ( | self, | |
event | |||
) |
Called when a new event has been generated ans should be saved in history Returns None
Reimplemented from opcua.server.history.HistoryStorageInterface.
Definition at line 135 of file history.py.
def opcua.server.history.HistoryDict.save_node_value | ( | self, | |
node_id, | |||
datavalue | |||
) |
Called when the value of a historized node has changed and should be saved in history Returns None
Reimplemented from opcua.server.history.HistoryStorageInterface.
Definition at line 94 of file history.py.
def opcua.server.history.HistoryDict.stop | ( | self | ) |
Called when the server shuts down Can be used to close database connections etc.
Reimplemented from opcua.server.history.HistoryStorageInterface.
Definition at line 170 of file history.py.
Definition at line 82 of file history.py.
Definition at line 82 of file history.py.
Definition at line 82 of file history.py.
Definition at line 82 of file history.py.