OverSim
|
#include <NicePeerInfo.h>
Public Member Functions | |
NicePeerInfo (Nice *_parent) | |
~NicePeerInfo () | |
void | set_distance_estimation_start (double value) |
double | getDES () |
void | set_distance (double value) |
double | get_distance () |
void | startHeartbeatTimeout () |
cMessage * | getHbTimer () |
void | updateDistance (TransportAddress member, double distance) |
double | getDistanceTo (TransportAddress member) |
unsigned int | get_last_sent_HB () |
void | set_last_sent_HB (unsigned int seqNo) |
unsigned int | get_last_recv_HB () |
void | set_last_recv_HB (unsigned int seqNo) |
double | get_last_HB_arrival () |
void | set_last_HB_arrival (double arrival) |
bool | get_backHBPointer () |
void | set_backHBPointer (bool _backHBPointer) |
void | set_backHB (bool backHBPointer, unsigned int seqNo, double time) |
double | get_backHB (unsigned int seqNo) |
unsigned int | get_backHB_seqNo (bool index) |
void | touch () |
double | getActivity () |
void | setSubClusterMembers (unsigned int members) |
unsigned int | getSubClusterMembers () |
Private Attributes | |
Nice * | parent |
double | distance_estimation_start |
double | distance |
cMessage * | hbTimer |
std::map< TransportAddress, double > | distanceTable |
double | activity |
unsigned int | subclustermembers |
HeartbeatEvaluator | backHB [2] |
bool | backHBPointer |
unsigned int | last_sent_HB |
unsigned int | last_recv_HB |
double | last_HB_arrival |
Friends | |
std::ostream & | operator<< (std::ostream &os, NicePeerInfo &pi) |
Definition at line 43 of file NicePeerInfo.h.
oversim::NicePeerInfo::NicePeerInfo | ( | Nice * | _parent | ) |
Definition at line 30 of file NicePeerInfo.cc.
oversim::NicePeerInfo::~NicePeerInfo | ( | ) |
Definition at line 52 of file NicePeerInfo.cc.
double oversim::NicePeerInfo::get_backHB | ( | unsigned int | seqNo | ) |
Definition at line 197 of file NicePeerInfo.cc.
Referenced by oversim::operator<<().
unsigned int oversim::NicePeerInfo::get_backHB_seqNo | ( | bool | index | ) |
Definition at line 211 of file NicePeerInfo.cc.
Referenced by oversim::operator<<().
bool oversim::NicePeerInfo::get_backHBPointer | ( | ) |
Definition at line 175 of file NicePeerInfo.cc.
double oversim::NicePeerInfo::get_distance | ( | ) |
Definition at line 78 of file NicePeerInfo.cc.
double oversim::NicePeerInfo::get_last_HB_arrival | ( | ) |
Definition at line 160 of file NicePeerInfo.cc.
Referenced by oversim::operator<<().
unsigned int oversim::NicePeerInfo::get_last_recv_HB | ( | ) |
Definition at line 146 of file NicePeerInfo.cc.
Referenced by oversim::operator<<().
unsigned int oversim::NicePeerInfo::get_last_sent_HB | ( | ) |
Definition at line 132 of file NicePeerInfo.cc.
Referenced by oversim::operator<<().
double oversim::NicePeerInfo::getActivity | ( | ) |
Definition at line 227 of file NicePeerInfo.cc.
Referenced by oversim::operator<<().
double oversim::NicePeerInfo::getDES | ( | ) |
Definition at line 64 of file NicePeerInfo.cc.
double oversim::NicePeerInfo::getDistanceTo | ( | TransportAddress | member | ) |
Definition at line 110 of file NicePeerInfo.cc.
cMessage * oversim::NicePeerInfo::getHbTimer | ( | ) |
Definition at line 85 of file NicePeerInfo.cc.
unsigned int oversim::NicePeerInfo::getSubClusterMembers | ( | ) |
Definition at line 243 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::set_backHB | ( | bool | backHBPointer, |
unsigned int | seqNo, | ||
double | time | ||
) |
Definition at line 189 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::set_backHBPointer | ( | bool | _backHBPointer | ) |
Definition at line 182 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::set_distance | ( | double | value | ) |
Definition at line 71 of file NicePeerInfo.cc.
Referenced by oversim::Nice::initializeOverlay().
void oversim::NicePeerInfo::set_distance_estimation_start | ( | double | value | ) |
Definition at line 57 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::set_last_HB_arrival | ( | double | arrival | ) |
Definition at line 168 of file NicePeerInfo.cc.
Referenced by oversim::Nice::handleNiceClusterMergeRequest(), oversim::Nice::handleNiceLeaderHeartbeat(), and oversim::Nice::handleNiceLeaderTransfer().
void oversim::NicePeerInfo::set_last_recv_HB | ( | unsigned int | seqNo | ) |
Definition at line 153 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::set_last_sent_HB | ( | unsigned int | seqNo | ) |
Definition at line 139 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::setSubClusterMembers | ( | unsigned int | members | ) |
Definition at line 235 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::startHeartbeatTimeout | ( | ) |
void oversim::NicePeerInfo::touch | ( | ) |
Definition at line 219 of file NicePeerInfo.cc.
void oversim::NicePeerInfo::updateDistance | ( | TransportAddress | member, |
double | distance | ||
) |
Definition at line 92 of file NicePeerInfo.cc.
|
friend |
Definition at line 251 of file NicePeerInfo.cc.
|
private |
Definition at line 97 of file NicePeerInfo.h.
Referenced by getActivity(), NicePeerInfo(), and touch().
|
private |
Definition at line 101 of file NicePeerInfo.h.
Referenced by get_backHB(), get_backHB_seqNo(), and set_backHB().
|
private |
Definition at line 102 of file NicePeerInfo.h.
Referenced by get_backHBPointer(), NicePeerInfo(), set_backHB(), and set_backHBPointer().
|
private |
Definition at line 93 of file NicePeerInfo.h.
Referenced by get_distance(), NicePeerInfo(), oversim::operator<<(), set_distance(), and updateDistance().
|
private |
Definition at line 92 of file NicePeerInfo.h.
Referenced by getDES(), NicePeerInfo(), oversim::operator<<(), and set_distance_estimation_start().
|
private |
Definition at line 95 of file NicePeerInfo.h.
Referenced by getDistanceTo(), NicePeerInfo(), oversim::operator<<(), and updateDistance().
|
private |
Definition at line 94 of file NicePeerInfo.h.
Referenced by getHbTimer().
|
private |
Definition at line 106 of file NicePeerInfo.h.
Referenced by get_last_HB_arrival(), NicePeerInfo(), and set_last_HB_arrival().
|
private |
Definition at line 105 of file NicePeerInfo.h.
Referenced by get_last_recv_HB(), NicePeerInfo(), and set_last_recv_HB().
|
private |
Definition at line 104 of file NicePeerInfo.h.
Referenced by get_last_sent_HB(), NicePeerInfo(), and set_last_sent_HB().
|
private |
Definition at line 91 of file NicePeerInfo.h.
|
private |
Definition at line 99 of file NicePeerInfo.h.
Referenced by getSubClusterMembers(), NicePeerInfo(), and setSubClusterMembers().