ariba::overlay::LinkDescriptor Class Reference

LinkDescriptor. More...

#include <source/ariba/overlay/LinkDescriptor.h>

Collaboration diagram for ariba::overlay::LinkDescriptor:

Collaboration graph
[legend]

List of all members.

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< NodeIDrouteRecord
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
CommunicationListenerlistener
 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


Detailed Description

LinkDescriptor.

Definition at line 35 of file LinkDescriptor.h.


Constructor & Destructor Documentation

ariba::overlay::LinkDescriptor::LinkDescriptor (  )  [inline]

ariba::overlay::LinkDescriptor::~LinkDescriptor (  )  [inline]

Definition at line 60 of file LinkDescriptor.h.

References flushQueue().


Member Function Documentation

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]

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]

void ariba::overlay::LinkDescriptor::setAutoUsed (  )  [inline]

void ariba::overlay::LinkDescriptor::setRelaying (  )  [inline]

std::string ariba::overlay::LinkDescriptor::to_string (  )  const [inline]


Member Data Documentation

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 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().

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().

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().


The documentation for this class was generated from the following file:

Generated on Fri Aug 14 23:39:22 2009 for Ariba by  doxygen 1.5.8