Package pyxmpp :: Package jabber :: Module disco :: Class DiscoCacheFetcherBase
[show private | hide private]
[frames | no frames]

Class DiscoCacheFetcherBase

CacheFetcher --+
               |
              DiscoCacheFetcherBase


Base class for disco cache fetchers.

:Cvariables:
    - `stream`: stream used by the fetcher.
    - `disco_class`: disco class to be used (`DiscoInfo` or `DiscoItems`).
:Types:
    - `stream`: `pyxmpp.stream.Stream`
    - `disco_class`: `classobj`

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.
  _try_backup_item(self)
Check if a backup item is available in cache and call the item handler if it is.

Class Variable Summary
NoneType disco_class = None                                                                  
NoneType stream = None                                                                  

Method Details

fetch(self)

Initialize the Service Discovery process.
Overrides:
pyxmpp.cache.CacheFetcher.fetch

__error(self, stanza)

Handle disco error response.

:Parameters:
    - `stanza`: the stanza received.
:Types:
    - `stanza`: `pyxmpp.stanza.Stanza`

__response(self, stanza)

Handle successful disco response.

:Parameters:
    - `stanza`: the stanza received.
:Types:
    - `stanza`: `pyxmpp.stanza.Stanza`

__timeout(self, stanza)

Handle disco timeout.

Class Variable Details

disco_class

Type:
NoneType
Value:
None                                                                  

stream

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Wed May 31 22:37:03 2006 http://epydoc.sf.net