#include <BaseLookup.h>

Public Member Functions | |
| virtual | ~AbstractLookup () |
| Virtual destructor. | |
| virtual void | lookup (const OverlayKey &key, int numSiblings=1, int hopCountMax=0, int retries=0, LookupListener *listener=NULL)=0 |
| Lookup siblings for a key. | |
| virtual const NodeVector & | getResult () const =0 |
| Returns the result of the lookup. | |
| virtual bool | isValid () const =0 |
| Returns true, if the lookup was successful. | |
| virtual void | abortLookup ()=0 |
| Aborts a running lookup. | |
| virtual uint | getAccumulatedHops () const =0 |
| Returns the total number of hops for all lookup paths. | |
| virtual void AbstractLookup::lookup | ( | const OverlayKey & | key, | |
| int | numSiblings = 1, |
|||
| int | hopCountMax = 0, |
|||
| int | retries = 0, |
|||
| LookupListener * | listener = NULL | |||
| ) | [pure virtual] |
Lookup siblings for a key.
| key | The key to lookup | |
| numSiblings | Number of siblings to lookup | |
| hopCountMax | Maximum hop count | |
| retries | Number of retries if lookup fails | |
| listener | Listener to inform, when the lookup is done |
Implemented in BaseLookup, and RecursiveLookup.
| virtual const NodeVector& AbstractLookup::getResult | ( | ) | const [pure virtual] |
Returns the result of the lookup.
Implemented in BaseLookup, and RecursiveLookup.
| virtual bool AbstractLookup::isValid | ( | ) | const [pure virtual] |
Returns true, if the lookup was successful.
Implemented in BaseLookup, and RecursiveLookup.
| virtual void AbstractLookup::abortLookup | ( | ) | [pure virtual] |
Aborts a running lookup.
This method aborts a running lookup without calling the listener and delete the lookup object.
Implemented in BaseLookup, and RecursiveLookup.
| virtual uint AbstractLookup::getAccumulatedHops | ( | ) | const [pure virtual] |
Returns the total number of hops for all lookup paths.
Implemented in BaseLookup, and RecursiveLookup.
1.5.3