| Method Summary |
| |
fetch(self)
Initialize the Service Discovery process. |
| |
__error(self,
stanza)
Handle disco error response. |
| |
__response(self,
stanza)
Handle successful disco response. |
| |
__timeout(self,
stanza)
Handle disco timeout. |
| Inherited from CacheFetcher |
| |
__init__(self,
cache,
address,
item_freshness_period,
item_expiration_period,
item_purge_period,
object_handler,
error_handler,
timeout_handler,
timeout_period,
backup_state)
Initialize an CacheFetcher object. |
| |
error(self,
error_data)
Handle a retrieval error and call apriopriate handler. |
| |
got_it(self,
value,
state)
Handle a successfull retrieval and call apriopriate handler. |
| |
timeout(self)
Handle fetcher timeout and call apriopriate handler. |
| |
_deactivate(self)
Remove the fetcher from cache and mark it not active. |
| |
_deactivated(self)
Mark the fetcher inactive after it is removed from the cache. |
bool |
_try_backup_item(self)
Check if a backup item is available in cache and call
the item handler if it is. |