feisty meow concerns codebase
2.140
|
#include <list_synchronizer.h>
Public Member Functions | |
list_synchronizer () | |
~list_synchronizer () | |
basis::outcome | add_list (list_manager *to_add) |
basis::outcome | zap_list (const structures::string_array &list_name) |
void | clean (int older_than) |
bool | update (const structures::string_array &object_id) |
Public Member Functions inherited from octopi::octopus | |
octopus (const basis::astring &name, int max_size_per_entity) | |
constructs an octopus named "name". More... | |
virtual | ~octopus () |
DEFINE_CLASS_NAME ("octopus") | |
const basis::astring & | name () const |
returns the name that the octopus was constructed with. More... | |
basis::outcome | add_tentacle (tentacle *to_add, bool filter=false) |
hooks a tentacle in to provide processing of one type of infoton. More... | |
basis::outcome | remove_tentacle (const structures::string_array &group_name, tentacle *&free_me) |
removes the tentacle listed for the "group_name", if any. More... | |
basis::outcome | zap_tentacle (const structures::string_array &group_name) |
similar to remove_tentacle(), but destroys the tentacle. More... | |
octopus_entity | issue_identity () |
creates an entity identifier that is unique for this octopus. More... | |
void | expunge (const octopus_entity &to_remove) |
invokes every tentacle's expunge() method on the id "to_remove". More... | |
entity_data_bin & | responses () |
allows external access to our set of results. More... | |
basis::outcome | restore (const structures::string_array &classifier, basis::byte_array &packed_form, infoton *&reformed) |
regenerates a packed infoton given its classifier. More... | |
basis::outcome | evaluate (infoton *request, const octopus_request_id &item_id, bool now=false) |
tries to process the "request" using the current set of tentacles. More... | |
infoton * | acquire_result (const octopus_entity &requester, octopus_request_id &original_id) |
acquires responses to previous requests if there are any waiting. More... | |
infoton * | acquire_specific_result (const octopus_request_id &original_id) |
supports seeking the result for a specific request. More... | |
tentacle * | lock_tentacle (const structures::string_array &tentacle_name) |
locates the tentacle with the "tentacle_name" and returns it. More... | |
void | unlock_tentacle (tentacle *to_unlock) |
unlocks the octopus when given a previously locked tentacle. More... | |
void | lock_tentacles () |
locks the tentacle list for use with locked_get_tentacle. More... | |
int | locked_tentacle_count () |
number of tentacles. More... | |
tentacle * | locked_get_tentacle (int indy) |
access indy'th tentacle. More... | |
void | unlock_tentacles () |
unlocks the list. More... | |
void | periodic_cleaning () |
flushes any abandoned data from the response bin. More... | |
Definition at line 29 of file list_synchronizer.h.
synchronic::list_synchronizer::list_synchronizer | ( | ) |
Definition at line 30 of file list_synchronizer.cpp.
synchronic::list_synchronizer::~list_synchronizer | ( | ) |
Definition at line 35 of file list_synchronizer.cpp.
outcome synchronic::list_synchronizer::add_list | ( | list_manager * | to_add | ) |
Definition at line 39 of file list_synchronizer.cpp.
References octopi::octopus::add_tentacle().
void synchronic::list_synchronizer::clean | ( | int | older_than | ) |
Definition at line 62 of file list_synchronizer.cpp.
References synchronic::list_manager::clean(), octopi::octopus::lock_tentacles(), octopi::octopus::locked_get_tentacle(), octopi::octopus::locked_tentacle_count(), and octopi::octopus::unlock_tentacles().
bool synchronic::list_synchronizer::update | ( | const structures::string_array & | object_id | ) |
Definition at line 45 of file list_synchronizer.cpp.
References synchronic::list_manager::list_name(), octopi::octopus::lock_tentacles(), octopi::octopus::locked_get_tentacle(), octopi::octopus::locked_tentacle_count(), structures::string_array::prefix_compare(), octopi::octopus::unlock_tentacles(), and synchronic::list_manager::update().
outcome synchronic::list_synchronizer::zap_list | ( | const structures::string_array & | list_name | ) |
Definition at line 42 of file list_synchronizer.cpp.
References octopi::octopus::zap_tentacle().