OverSim
|
#include <GlobalViewBuilder.h>
Public Member Functions | |
GlobalViewBuilder () | |
virtual | ~GlobalViewBuilder () |
void | initializeViewBuilder (NeighborCache *neighborCache, BaseOverlay *overlay) |
.cc | |
void | start () |
void | cleanup () |
void | handleTimerEvent (cMessage *msg) |
void | handleCoordSendTimer (cMessage *msg) |
void | handleCoordinateRpcCall (GlobalViewBuilderCall *globalViewBuilderCall) |
void | handleCapReqRpcCall (CapReqCall *call) |
void | sendCapRequest (const TransportAddress &node) |
bool | handleRpcCall (BaseCallMessage *msg) |
void | handleRpcResponse (BaseResponseMessage *msg, cPolymorphic *context, int rpcId, simtime_t rtt) |
This method is called if an RPC response has been received. | |
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. | |
cPar & | parProxy (const char *parname) |
void | newParent () |
bool | isCapReady () |
bool | isCapValid () |
const AP * | getCAP () |
Public Member Functions inherited from AbstractTreeMsgClient | |
virtual void | newChild (const TransportAddress &child=TransportAddress::UNSPECIFIED_NODE) |
Public Member Functions inherited from RpcListener | |
virtual | ~RpcListener () |
destructor |
Protected Member Functions | |
void | spreadGlobalView () |
Send the calculated global view down the tree to the children. | |
bool | checkOverlayReady () |
Protected Attributes | |
NeighborCache * | neighborCache |
TreeManagement * | treeManager |
AbstractSendStrategy * | sendStrategy |
BaseOverlay * | overlay |
Private Attributes | |
double | meanCoordSendInterval |
mean time interval between sending test messages | |
double | deviation |
deviation of time interval | |
cMessage * | coordSendTimer |
cMessage * | spreadCapTimer |
std::string | activeStrategy |
bool | onlyAcceptCompleteCCD |
SendStrategyFactory | sendStrategyFactory |
AP | cap |
bool | capReady |
uint32_t | oldCcdSize |
Definition at line 57 of file GlobalViewBuilder.h.
|
inline |
Definition at line 91 of file GlobalViewBuilder.h.
|
inlinevirtual |
Definition at line 97 of file GlobalViewBuilder.h.
|
protected |
Definition at line 282 of file GlobalViewBuilder.cc.
Referenced by handleCoordSendTimer().
void GlobalViewBuilder::cleanup | ( | ) |
Definition at line 69 of file GlobalViewBuilder.cc.
Referenced by NeighborCache::handleReadyMessage().
|
inline |
Definition at line 133 of file GlobalViewBuilder.h.
Referenced by NeighborCache::setCbrNodeId().
void GlobalViewBuilder::handleCapReqRpcCall | ( | CapReqCall * | call | ) |
Definition at line 201 of file GlobalViewBuilder.cc.
Referenced by handleRpcCall().
void GlobalViewBuilder::handleCoordinateRpcCall | ( | GlobalViewBuilderCall * | globalViewBuilderCall | ) |
Definition at line 93 of file GlobalViewBuilder.cc.
Referenced by handleRpcCall().
void GlobalViewBuilder::handleCoordSendTimer | ( | cMessage * | msg | ) |
Definition at line 224 of file GlobalViewBuilder.cc.
Referenced by handleTimerEvent().
|
virtual |
Implements AbstractTreeMsgClient.
Definition at line 78 of file GlobalViewBuilder.cc.
Referenced by NeighborCache::handleRpcCall().
|
virtual |
This method is called if an RPC response has been received.
msg | The response message. |
context | Pointer to an optional state object. The object has to be handled/deleted by the handleRpcResponse() code |
rpcId | The RPC id. |
rtt | The Round-Trip-Time of this RPC |
Reimplemented from RpcListener.
Definition at line 160 of file GlobalViewBuilder.cc.
|
virtual |
This method is called if an RPC timeout has been reached.
msg | The original RPC message. |
dest | The destination node |
context | Pointer to an optional state object. The object has to be handled/deleted by the handleRpcResponse() code |
rpcId | The RPC id. |
destKey | the destination OverlayKey |
Reimplemented from RpcListener.
Definition at line 191 of file GlobalViewBuilder.cc.
void GlobalViewBuilder::handleTimerEvent | ( | cMessage * | msg | ) |
Definition at line 210 of file GlobalViewBuilder.cc.
Referenced by NeighborCache::handleTimerEvent().
void GlobalViewBuilder::initializeViewBuilder | ( | NeighborCache * | neighborCache, |
BaseOverlay * | overlay | ||
) |
.cc
Definition at line 33 of file GlobalViewBuilder.cc.
Referenced by NeighborCache::initializeApp().
|
inline |
Definition at line 131 of file GlobalViewBuilder.h.
Referenced by NeighborCache::prepareOverlay().
|
inline |
Definition at line 132 of file GlobalViewBuilder.h.
Referenced by NeighborCache::handleTimerEvent(), and NeighborCache::prepareOverlay().
|
virtual |
Reimplemented from AbstractTreeMsgClient.
Definition at line 276 of file GlobalViewBuilder.cc.
cPar & GlobalViewBuilder::parProxy | ( | const char * | parname | ) |
Definition at line 460 of file GlobalViewBuilder.cc.
Referenced by StrategySimplifyCoords::decode(), StrategyRegions::getMaxSpread(), StrategyRegions::getSizePerDim(), StrategyRemoveCoords::getStrategyCombinedParams(), StrategyRegions::getStrategyCombinedParams(), StrategySimplifyCoords::getStrategyCombinedParams(), StrategyRemoveCoords::processCoordinates(), and StrategySimplifyCoords::simplify().
void GlobalViewBuilder::sendCapRequest | ( | const TransportAddress & | node | ) |
Definition at line 152 of file GlobalViewBuilder.cc.
Referenced by NeighborCache::prepareOverlay().
|
protected |
Send the calculated global view down the tree to the children.
Definition at line 289 of file GlobalViewBuilder.cc.
Referenced by handleTimerEvent().
void GlobalViewBuilder::start | ( | ) |
Definition at line 59 of file GlobalViewBuilder.cc.
Referenced by NeighborCache::handleReadyMessage().
|
private |
Definition at line 66 of file GlobalViewBuilder.h.
Referenced by initializeViewBuilder().
|
private |
Definition at line 71 of file GlobalViewBuilder.h.
Referenced by getCAP(), handleCapReqRpcCall(), handleCoordinateRpcCall(), handleRpcResponse(), isCapValid(), and spreadGlobalView().
|
private |
Definition at line 72 of file GlobalViewBuilder.h.
Referenced by handleCoordinateRpcCall(), handleRpcResponse(), initializeViewBuilder(), and isCapReady().
|
private |
Definition at line 63 of file GlobalViewBuilder.h.
Referenced by GlobalViewBuilder(), handleTimerEvent(), initializeViewBuilder(), start(), and ~GlobalViewBuilder().
|
private |
deviation of time interval
Definition at line 61 of file GlobalViewBuilder.h.
Referenced by initializeViewBuilder(), and start().
|
private |
mean time interval between sending test messages
Definition at line 60 of file GlobalViewBuilder.h.
Referenced by handleCoordSendTimer(), initializeViewBuilder(), and start().
|
protected |
Definition at line 76 of file GlobalViewBuilder.h.
Referenced by cleanup(), handleCapReqRpcCall(), handleCoordinateRpcCall(), handleCoordSendTimer(), handleRpcResponse(), initializeViewBuilder(), parProxy(), sendCapRequest(), spreadGlobalView(), start(), and ~GlobalViewBuilder().
|
private |
Definition at line 73 of file GlobalViewBuilder.h.
Referenced by initializeViewBuilder(), and spreadGlobalView().
|
private |
Definition at line 67 of file GlobalViewBuilder.h.
Referenced by initializeViewBuilder(), and spreadGlobalView().
|
protected |
Definition at line 80 of file GlobalViewBuilder.h.
Referenced by handleCoordinateRpcCall(), initializeViewBuilder(), and spreadGlobalView().
|
protected |
Definition at line 78 of file GlobalViewBuilder.h.
Referenced by cleanup(), GlobalViewBuilder(), handleCoordinateRpcCall(), handleCoordSendTimer(), initializeViewBuilder(), spreadGlobalView(), and ~GlobalViewBuilder().
|
private |
Definition at line 69 of file GlobalViewBuilder.h.
|
private |
Definition at line 64 of file GlobalViewBuilder.h.
Referenced by GlobalViewBuilder(), handleCoordSendTimer(), handleTimerEvent(), initializeViewBuilder(), and ~GlobalViewBuilder().
|
protected |
Definition at line 77 of file GlobalViewBuilder.h.
Referenced by cleanup(), handleCoordinateRpcCall(), handleCoordSendTimer(), handleTimerEvent(), initializeViewBuilder(), and spreadGlobalView().