#include <source/ariba/overlay/LinkDescriptor.h>
Public Member Functions | |
LinkDescriptor () | |
~LinkDescriptor () | |
bool | isVital () |
bool | isDirectVital () |
void | setAlive () |
void | setRelaying () |
void | setAutoUsed () |
void | flushQueue () |
drops waiting auto-link messages | |
std::string | to_string () const |
Public Attributes | |
bool | up |
flag whether this link is up and running | |
bool | fromRemote |
flag, whether this link was requested from remote | |
NodeID | remoteNode |
remote end-point node | |
LinkID | overlayId |
the base overlay link id | |
LinkID | communicationId |
the communication id | |
bool | communicationUp |
flag, whether the communication is up | |
time_t | keepAliveTime |
the last time a keep-alive message was received | |
int | keepAliveMissed |
the number of missed keep-alive messages | |
bool | relayed |
flag whether this link is a relayed link | |
LinkID | remoteLink |
the remote link id | |
vector< NodeID > | routeRecord |
bool | relaying |
flag, wheter this link has been used as relay | |
bool | dropAfterRelaying |
time_t | timeRelaying |
last time the link has been used as relay | |
ServiceID | service |
service using this link | |
CommunicationListener * | listener |
the listener using this node | |
bool | autolink |
flag, whether this link is a auto-link | |
time_t | lastuse |
time, when the link was last used | |
deque< Message * > | messageQueue |
waiting messages to be delivered |
Definition at line 35 of file LinkDescriptor.h.
ariba::overlay::LinkDescriptor::LinkDescriptor | ( | ) | [inline] |
Definition at line 38 of file LinkDescriptor.h.
References autolink, communicationId, communicationUp, ariba::utility::LinkID::create(), ariba::CommunicationListener::DEFAULT, dropAfterRelaying, fromRemote, keepAliveMissed, keepAliveTime, lastuse, listener, overlayId, relayed, relaying, remoteLink, remoteNode, service, timeRelaying, ariba::utility::ServiceID::UNSPECIFIED, ariba::utility::LinkID::UNSPECIFIED, ariba::utility::NodeID::UNSPECIFIED, and up.
ariba::overlay::LinkDescriptor::~LinkDescriptor | ( | ) | [inline] |
void ariba::overlay::LinkDescriptor::flushQueue | ( | ) | [inline] |
drops waiting auto-link messages
Definition at line 115 of file LinkDescriptor.h.
References messageQueue.
Referenced by ariba::overlay::BaseOverlay::onLinkDown(), and ~LinkDescriptor().
bool ariba::overlay::LinkDescriptor::isDirectVital | ( | ) | [inline] |
Definition at line 71 of file LinkDescriptor.h.
References communicationUp, isVital(), and relayed.
Referenced by ariba::overlay::BaseOverlay::getRelayLinkTo(), ariba::overlay::BaseOverlay::refreshRelayInformation(), and ariba::overlay::BaseOverlay::stabilizeRelays().
bool ariba::overlay::LinkDescriptor::isVital | ( | ) | [inline] |
Definition at line 68 of file LinkDescriptor.h.
References keepAliveMissed, and up.
Referenced by ariba::overlay::BaseOverlay::getLinkHTMLInfo(), and isDirectVital().
void ariba::overlay::LinkDescriptor::setAlive | ( | ) | [inline] |
Definition at line 84 of file LinkDescriptor.h.
References keepAliveMissed, and keepAliveTime.
Referenced by ariba::overlay::BaseOverlay::handleLinkAlive(), ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), and ariba::overlay::BaseOverlay::onLinkUp().
void ariba::overlay::LinkDescriptor::setAutoUsed | ( | ) | [inline] |
Definition at line 111 of file LinkDescriptor.h.
References autolink, and lastuse.
Referenced by ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::overlay::BaseOverlay::onLinkChanged(), ariba::overlay::BaseOverlay::onLinkUp(), and ariba::overlay::BaseOverlay::sendMessage().
void ariba::overlay::LinkDescriptor::setRelaying | ( | ) | [inline] |
Definition at line 98 of file LinkDescriptor.h.
References relaying, and timeRelaying.
Referenced by ariba::overlay::BaseOverlay::refreshRelayInformation(), and ariba::overlay::BaseOverlay::send().
std::string ariba::overlay::LinkDescriptor::to_string | ( | ) | const [inline] |
Definition at line 121 of file LinkDescriptor.h.
References autolink, communicationId, communicationUp, fromRemote, keepAliveMissed, overlayId, relayed, relaying, remoteLink, remoteNode, routeRecord, service, ariba::utility::ServiceID::toString(), ariba::utility::Identifier::toString(), and up.
Referenced by ariba::overlay::operator<<().
flag, whether this link is a auto-link
Definition at line 108 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::getAutoDescriptor(), ariba::overlay::BaseOverlay::handleLinkUpdate(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::sendMessage(), setAutoUsed(), ariba::overlay::BaseOverlay::stabilizeLinks(), and to_string().
the communication id
Definition at line 78 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::eraseDescriptor(), ariba::overlay::BaseOverlay::establishDirectLink(), ariba::overlay::BaseOverlay::getDescriptor(), ariba::overlay::BaseOverlay::getEndpointDescriptor(), ariba::SideportListener::getReachabilityProtocol(), ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::send(), and to_string().
flag, whether the communication is up
Definition at line 79 of file LinkDescriptor.h.
Referenced by ariba::SideportListener::getReachabilityProtocol(), ariba::overlay::BaseOverlay::handleLinkDirect(), isDirectVital(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkDown(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::send(), and to_string().
Definition at line 96 of file LinkDescriptor.h.
Referenced by LinkDescriptor(), and ariba::overlay::BaseOverlay::stabilizeLinks().
flag, whether this link was requested from remote
Definition at line 66 of file LinkDescriptor.h.
Referenced by LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkUp(), and to_string().
the number of missed keep-alive messages
Definition at line 83 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::getAutoDescriptor(), isVital(), LinkDescriptor(), setAlive(), ariba::overlay::BaseOverlay::stabilizeLinks(), and to_string().
the last time a keep-alive message was received
Definition at line 82 of file LinkDescriptor.h.
Referenced by LinkDescriptor(), setAlive(), and ariba::overlay::BaseOverlay::stabilizeLinks().
time, when the link was last used
Definition at line 109 of file LinkDescriptor.h.
Referenced by LinkDescriptor(), setAutoUsed(), and ariba::overlay::BaseOverlay::stabilizeLinks().
the listener using this node
Definition at line 105 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::establishDirectLink(), ariba::overlay::BaseOverlay::establishLink(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkChanged(), and ariba::overlay::BaseOverlay::onLinkFail().
waiting messages to be delivered
Definition at line 110 of file LinkDescriptor.h.
Referenced by flushQueue(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), and ariba::overlay::BaseOverlay::onLinkDown().
the base overlay link id
Definition at line 77 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::addDescriptor(), ariba::overlay::BaseOverlay::compare(), ariba::overlay::BaseOverlay::eraseDescriptor(), ariba::overlay::BaseOverlay::establishLink(), ariba::overlay::BaseOverlay::getDescriptor(), ariba::overlay::BaseOverlay::getLinkHTMLInfo(), ariba::overlay::BaseOverlay::getLinkIDs(), ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::overlay::BaseOverlay::leaveSpoVNet(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkChanged(), ariba::overlay::BaseOverlay::onLinkDown(), ariba::overlay::BaseOverlay::onLinkFail(), ariba::overlay::BaseOverlay::onLinkQoSChanged(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::refreshRelayInformation(), ariba::overlay::BaseOverlay::send_link(), ariba::overlay::BaseOverlay::sendMessage(), ariba::overlay::BaseOverlay::stabilizeLinks(), and to_string().
flag whether this link is a relayed link
Definition at line 90 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::establishDirectLink(), ariba::overlay::BaseOverlay::establishLink(), ariba::overlay::BaseOverlay::getLinkHTMLInfo(), ariba::SideportListener::getReachabilityProtocol(), ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), isDirectVital(), ariba::SideportListener::isRelayedNode(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::refreshRelayInformation(), ariba::overlay::BaseOverlay::send(), ariba::overlay::BaseOverlay::send_link(), ariba::overlay::BaseOverlay::stabilizeLinks(), and to_string().
flag, wheter this link has been used as relay
Definition at line 95 of file LinkDescriptor.h.
Referenced by LinkDescriptor(), setRelaying(), ariba::overlay::BaseOverlay::stabilizeLinks(), and to_string().
the remote link id
Definition at line 91 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::compare(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::send_link(), and to_string().
remote end-point node
Definition at line 67 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::compare(), ariba::overlay::BaseOverlay::establishLink(), ariba::overlay::BaseOverlay::getAutoDescriptor(), ariba::overlay::BaseOverlay::getLinkHTMLInfo(), ariba::overlay::BaseOverlay::getLinkIDs(), ariba::overlay::BaseOverlay::getNodeID(), ariba::SideportListener::getReachabilityProtocol(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::SideportListener::isRelayedNode(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkChanged(), ariba::overlay::BaseOverlay::onLinkDown(), ariba::overlay::BaseOverlay::onLinkFail(), ariba::overlay::BaseOverlay::send(), ariba::overlay::BaseOverlay::send_link(), ariba::overlay::BaseOverlay::stabilizeLinks(), and to_string().
Definition at line 92 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::getLinkHTMLInfo(), ariba::overlay::BaseOverlay::handleLinkAlive(), ariba::SideportListener::isRelayingNode(), and to_string().
service using this link
Definition at line 104 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::establishDirectLink(), ariba::overlay::BaseOverlay::establishLink(), ariba::overlay::BaseOverlay::getAutoDescriptor(), ariba::overlay::BaseOverlay::getLinkHTMLInfo(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::overlay::BaseOverlay::leaveSpoVNet(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkDown(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::send_link(), and to_string().
last time the link has been used as relay
Definition at line 97 of file LinkDescriptor.h.
Referenced by LinkDescriptor(), setRelaying(), and ariba::overlay::BaseOverlay::stabilizeLinks().
flag whether this link is up and running
Definition at line 65 of file LinkDescriptor.h.
Referenced by ariba::overlay::BaseOverlay::compare(), ariba::overlay::BaseOverlay::getAutoDescriptor(), ariba::SideportListener::getReachabilityProtocol(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::SideportListener::isRelayedNode(), isVital(), LinkDescriptor(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::BaseOverlay::send(), ariba::overlay::BaseOverlay::stabilizeLinks(), and to_string().