|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a peer in some Lookup network. The network's topology can be of any type. Has only 3 methods: lookup (2 methods), getAdderss.
| Method Summary | |
Address |
getAddress()
Returns a real-world address for sending messages |
void |
lookup(Resource valueToLook,
LookupAlgorithm method)
Performs a lookup operation on this peer |
void |
lookup(Resource valueToLook,
LookupPeer returnAddress,
LookupAlgorithm method)
Performs a lookup operation on this peer |
| Method Detail |
public void lookup(Resource valueToLook,
LookupPeer returnAddress,
LookupAlgorithm method)
valueToLook - the value to lookupreturnAddress - the peer who initiated this searchmethod - the lookup algorithm to use
java.lang.IllegalStateException - if the peer is not in a legal state for looking up.LookupState
public void lookup(Resource valueToLook,
LookupAlgorithm method)
throws ResourceNotFoundException
valueToLook - the value to lookupmethod - the lookup algorithm to use
java.lang.IllegalStateException - if the peer is not in a legal state for looking up.
ResourceNotFoundExceptionpublic Address getAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||