TopicCallback¶
- class lsst.ts.watcher.TopicCallback(topic, rule, model)¶
Bases:
objectCall rules and/or wrapper callbacks when a topic receives data.
- Parameters:
- Attributes:
- rules
dict Dict of rule name: rule.
- topic_wrappers:
List of topic wrappers.
- model
Model The Watcher model.
- topic_key
tuple The topic key computed by get_topic_key.
- call_event
asyncio.Event An event that is set whenever this topic callback’s
__call__method finishes normally (without raising an exception). Intended for unit tests, which may clear this event and then wait for it to be set.
- rules
Attributes Summary
Get the topic name, with an
evt_ortel_prefix.Get the SAL index of the remote.
Get the name of the remote.
Methods Summary
__call__(data)Call self as a function.
add_rule(rule)Add a rule.
add_topic_wrapper(wrapper)Add a topic wrapper, or other non-rule callable.
Attributes Documentation
- attr_name¶
Get the topic name, with an
evt_ortel_prefix.This is the name of the wrapped topic attribute in
RemoteWrapper.
- remote_index¶
Get the SAL index of the remote.
- remote_name¶
Get the name of the remote.
Methods Documentation