OverSim
|
#include <DiscoveryMode.h>
Public Member Functions | |
virtual | ~DiscoveryMode () |
void | init (NeighborCache *neighborCache) |
void | start (const TransportAddress &bootstrapNode) |
void | stop () |
double | getImprovement () |
bool | isFinished () |
bool | handleRpcCall (BaseCallMessage *msg) |
void | handleRpcResponse (BaseResponseMessage *msg, cPolymorphic *context, int rpcId, simtime_t rtt) |
void | handleRpcTimeout (BaseCallMessage *msg, const TransportAddress &dest, cPolymorphic *context, int rpcId, const OverlayKey &destKey) |
Public Member Functions inherited from RpcListener | |
virtual | ~RpcListener () |
destructor |
Protected Member Functions | |
void | proxCallback (const TransportAddress &node, int rpcId, cPolymorphic *contextPointer, Prox prox) |
void | sendNewRequest (DiscoveryNodesType type, uint8_t numNodes) |
Protected Member Functions inherited from RpcListener | |
virtual void | handleRpcResponse (BaseResponseMessage *msg, cPolymorphic *context, int rpcId, simtime_t rtt) |
This method is called if an RPC response has been received. | |
virtual void | handleRpcResponse (BaseResponseMessage *msg, const RpcState &rpcState, simtime_t rtt) |
This method is called if an RPC response has been received. | |
virtual void | handleRpcTimeout (BaseCallMessage *msg, const TransportAddress &dest, cPolymorphic *context, int rpcId, const OverlayKey &destKey) |
This method is called if an RPC timeout has been reached. | |
virtual void | handleRpcTimeout (const RpcState &rpcState) |
This method is called if an RPC timeout has been reached. |
Protected Attributes | |
int16_t | step |
uint8_t | maxSteps |
int8_t | spreadedSteps |
uint8_t | queries |
int8_t | maxIndex |
simtime_t | nearNodeRtt |
bool | nearNodeImproved |
TransportAddress | nearNode |
Private Attributes | |
NeighborCache * | neighborCache |
uint8_t | numCloseNodes |
uint8_t | numSpreadedNodes |
double | firstRtt |
double | improvement |
bool | finished |
BasePastry * | basePastry |
Additional Inherited Members | |
Private Member Functions inherited from ProxListener | |
virtual void | proxCallback (const TransportAddress &node, int rpcId, cPolymorphic *contextPointer, Prox prox)=0 |
Definition at line 17 of file DiscoveryMode.h.
|
inlinevirtual |
Definition at line 48 of file DiscoveryMode.h.
|
inline |
bool DiscoveryMode::handleRpcCall | ( | BaseCallMessage * | msg | ) |
Definition at line 97 of file DiscoveryMode.cc.
Referenced by NeighborCache::handleRpcCall().
void DiscoveryMode::handleRpcResponse | ( | BaseResponseMessage * | msg, |
cPolymorphic * | context, | ||
int | rpcId, | ||
simtime_t | rtt | ||
) |
Definition at line 140 of file DiscoveryMode.cc.
void DiscoveryMode::handleRpcTimeout | ( | BaseCallMessage * | msg, |
const TransportAddress & | dest, | ||
cPolymorphic * | context, | ||
int | rpcId, | ||
const OverlayKey & | destKey | ||
) |
Definition at line 208 of file DiscoveryMode.cc.
void DiscoveryMode::init | ( | NeighborCache * | neighborCache | ) |
Definition at line 16 of file DiscoveryMode.cc.
Referenced by NeighborCache::initializeApp().
|
inline |
Definition at line 55 of file DiscoveryMode.h.
Referenced by NeighborCache::prepareOverlay().
|
protected |
Definition at line 217 of file DiscoveryMode.cc.
|
protected |
Definition at line 233 of file DiscoveryMode.cc.
Referenced by handleRpcResponse(), and proxCallback().
void DiscoveryMode::start | ( | const TransportAddress & | bootstrapNode | ) |
Definition at line 34 of file DiscoveryMode.cc.
Referenced by NeighborCache::handleReadyMessage().
void DiscoveryMode::stop | ( | ) |
Definition at line 66 of file DiscoveryMode.cc.
Referenced by sendNewRequest(), and start().
|
private |
Definition at line 30 of file DiscoveryMode.h.
Referenced by handleRpcCall(), init(), sendNewRequest(), and start().
|
private |
Definition at line 28 of file DiscoveryMode.h.
Referenced by init(), isFinished(), and stop().
|
private |
Definition at line 25 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), init(), and stop().
|
private |
Definition at line 26 of file DiscoveryMode.h.
Referenced by getImprovement(), init(), and stop().
|
protected |
Definition at line 37 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), and init().
|
protected |
Definition at line 34 of file DiscoveryMode.h.
Referenced by init().
|
protected |
Definition at line 40 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), proxCallback(), sendNewRequest(), and stop().
|
protected |
Definition at line 39 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), init(), proxCallback(), and sendNewRequest().
|
protected |
Definition at line 38 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), init(), proxCallback(), and stop().
|
private |
Definition at line 20 of file DiscoveryMode.h.
Referenced by handleRpcCall(), handleRpcResponse(), init(), sendNewRequest(), start(), and stop().
|
private |
Definition at line 22 of file DiscoveryMode.h.
Referenced by init(), and sendNewRequest().
|
private |
Definition at line 23 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), init(), proxCallback(), sendNewRequest(), and start().
|
protected |
Definition at line 36 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), handleRpcTimeout(), proxCallback(), sendNewRequest(), and start().
|
protected |
Definition at line 35 of file DiscoveryMode.h.
Referenced by init().
|
protected |
Definition at line 33 of file DiscoveryMode.h.
Referenced by handleRpcResponse(), sendNewRequest(), start(), and stop().