riaps.discd.dbase module

Discovery server database interface Created on Oct 19, 2016

@author: riaps

class riaps.discd.dbase.DiscoDbase(context_, dbaseLoc)[source]

Bases: object

Discovery service database base class

detach(key: str, target: str)[source]

Detach client (for updates) from keys

fetch(key: str, client: str) [<class 'str'>][source]

Fetch value(s) under key. Add client to list of clients interested in the value

fetchUpdates() [<class 'str'>][source]

Check and fetch the updated values of the subscribed keys if any

insert(key: str, value: str) [<class 'str'>][source]

Insert value under key and return list of clients of value (if any). A key may have multiple values associated with it, hence the new value is added to the set of values that belong to the key

remove(key: str, value: str) [<class 'str'>][source]

Remove value from value under key.

start()[source]

Start the database: connect to the database process

terminate()[source]