|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DKSAppInterface
Title: DKS
Description: DKS Middleware
Copyright: Copyright (c) 2004
Company: KTH-IMIT/SICS
| Method Summary | |
|---|---|
void |
broadcastCallback(DKSObject payload)
This callback routine is called when the node recieves a broadcast message. |
void |
failCallback(DKSRef failed,
DKSRef failedPred)
This callback routine is called at the successor of a filed node, when it detects its predecessor has failed. |
void |
joinCallback(DKSRef pred,
DKSRef succ)
This callback routine is called at the joining node, when the node is about to join INVARIANT: this method must make a callback to DKSCallbacks.joinCallbackReturn |
void |
leaveCallback(DKSRef pred,
DKSRef succ)
This callback routine is called at the leaving node, when the node is about to leave INVARIANT: this method must make a callback to DKSCallbacks.joinCallbackReturn |
DKSObject |
routeCallback(long identifier,
DKSObject payload)
Is set in DKSInterface through setCallbackHandler(). |
void |
routeCallbackAsync(long identifier,
DKSObject payload)
Is set in DKSInterface through setCallbackHandler(). |
| Method Detail |
|---|
DKSObject routeCallback(long identifier,
DKSObject payload)
identifier - long, the identifier searched for in route, maybe not interesting for the app in many cases.payload - DKSObject, the actual payload sent by the source
void routeCallbackAsync(long identifier,
DKSObject payload)
identifier - long, the identifier searched for in route, maybe not interesting for the app in many cases.payload - DKSObject, the actual payload sent by the sourcevoid broadcastCallback(DKSObject payload)
payload - DKSObject, the actual payload sent by the source
void joinCallback(DKSRef pred,
DKSRef succ)
pred - DKSRef predecessor reference, containing the identifier of the predecessor (useful for DHT impl)succ - DKSRef successor, containing the identifier of the successor (useful for DHT impl)
void leaveCallback(DKSRef pred,
DKSRef succ)
pred - DKSRef predecessor reference, containing the identifier of the predecessor (useful for DHT impl)succ - DKSRef successor, containing the identifier of the successor (useful for DHT impl)
void failCallback(DKSRef failed,
DKSRef failedPred)
failed - DKSRef to the failed node (useful for DHT impl)failedPred - DKSRef to the failed nodes predecessor (useful for DHT impl)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||