dragonfly.implementations.repeater_provider module

Some template vars

Members: RepeaterProvider Functions: Classes:

Summary

class dragonfly.implementations.repeater_provider.RepeaterProvider(repeat_target, timeout=None, **kwargs)

Bases: dragonfly.implementations.repeater_provider.RepeaterProvider

Keyword Arguments:
 
  • repeat_target (str) – name of service to send OP_SEND to
  • timeout (float) – time in seconds for request to timeout
  • name (str) – unique identifier across all dripline services (used to determine routing key)
  • calibration (str||dict) – string use to process raw get result (with .format(raw)) or a dict to use for the same purpose where raw must be a key
  • get_on_set (bool) – flag to toggle running ‘on_get’ after each ‘on_set’

repeat_target (str): name of service to send OP_SEND to timeout (float): time in seconds for request to timeout

add_endpoint(endpoint)
cmd(target, method_name, value=[], payload={}, lockout_key=False, timeout=None, ignore_retcode=False)
endpoint(endpoint)
endpoint_names
endpoints
get(target, timeout=None, ignore_retcode=False)
handle_request(channel, method, properties, request)
is_locked
list_endpoints()
lock(*args, **kwargs)
lockout_key
logging_status
on_cmd(*args, **kwargs)

WARNING! if you override this method, you must ensure you deal with lockout properly

on_config(attribute, value=None)

configure a property again

WARNING! if you override this method, you must ensure you deal with lockout properly

on_send(*commands)
on_set(*args, **kwargs)
ping(*args, **kwargs)

ignore all details and respond with an empty message

schedule_status
send(to_send, timeout=None, ignore_retcode=False)
set(target, value, lockout_key=False, timeout=None, ignore_retcode=False)
set_condition(*args, **kwargs)

To actually do something inside a class, the set_condition should be implemented in the class itself.

unlock(*args, **kwargs)

End of modules condition

Data:

End of data condition