|
hlcc 2.0.0-beta2+pre1
|
This is a test-utility for publishing ICD-Structs over MAL PubSub. More...
Public Member Functions | |
| def | __init__ (self) |
| def | uplink (self, entity_fqn, uri) |
| Setup factory and import entity class. | |
| def | entity_to_string (self, content) |
| Convert object into json string. | |
| def | publish (self, entity_fqn, remote_uri, set=[], interval=1, iterations=1, printall=False) |
| Publish an entity on a channel. | |
Static Public Member Functions | |
| def | main (arguments) |
| Test entry point. | |
This is a test-utility for publishing ICD-Structs over MAL PubSub.
Despite its name, it is not restrained to the telif interface, and could also be moved to the hlcc-utils package.
| def telif_publisher.TelifPublisher.__init__ | ( | self | ) |
| def telif_publisher.TelifPublisher.entity_to_string | ( | self, | |
| content | |||
| ) |
Convert object into json string.
|
static |
Test entry point.
| def telif_publisher.TelifPublisher.publish | ( | self, | |
| entity_fqn, | |||
| remote_uri, | |||
set = [], |
|||
interval = 1, |
|||
iterations = 1, |
|||
printall = False |
|||
| ) |
Publish an entity on a channel.
| entity_fqn | entity classname (fully qualified), e.g. "ModCcsinsif.Ccsinsif.AltAz" |
| remote_uri | publisher address, e.g. "dds.ps:///TELIF_CCS_TRG_OBS_ALTAZ" |
| set | content to publish (as list of dicts), e.g. [{'az':1},{'az':2}] |
| interval | wait time between publications (in seconds) |
| iterations | number of iterations (includes first one) |
| printall | print all sent data |
| def telif_publisher.TelifPublisher.uplink | ( | self, | |
| entity_fqn, | |||
| uri | |||
| ) |
Setup factory and import entity class.