dripline.core.endpoint module

class dripline.core.endpoint.Endpoint(name)[source]

Bases: _dripline.core._Endpoint

Base class for all objects which can be sent dripline requests. Every object described in a runtime configuration passed to dl-serve should derive from this class (either directly or indirectly).

Parameters

name (str) – the name of the endpoint, specifies the binding key for request messages to which this object should reply

do_cmd_request(self: _dripline.core._Endpoint, arg0: dripline::msg_request) → dripline::msg_reply[source]

overridable method for implementing cmd handling behavior

do_get_request(self: _dripline.core._Endpoint, arg0: dripline::msg_request) → dripline::msg_reply[source]

overridable method for implementing get handling behavior

do_set_request(self: _dripline.core._Endpoint, arg0: dripline::msg_request) → dripline::msg_reply[source]

overridable method for implementing set handling behavior

on_get()[source]

placeholder method for getting the value of an endpoint. Implementations may override to enable OP_GET operations. The implementation must return a value which is able to be passed to the ParamValue constructor.

on_set(_value)[source]

placeholder method for setting the value of an endpoint. Implementations may override to enable OP_SET operations. Any returned object must already be a scarab::Param object