Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

HA::MonitoredNode Class Reference

#include <HA.h>

List of all members.


Detailed Description

Represents one node that we are monitoring.


Public Types

typedef vector< ptr< StreamDef > > AltStreams
typedef map< StreamID, AltStreamsMonitoredStreams

Public Member Functions

 MonitoredNode (MedusaID id, NodeType t)
string as_string () const

Public Attributes

MedusaID m_node_id
 Unique ID of this node.
NodeType m_type
 The type of this node (why are we monitoring it).
bool m_started
 Was the monitored node ever up and running.
bool m_recovered
 Did we recover from the failure of this monitored node.
int m_failed_pings
 Number of consecutive failed keep_alives.
bool m_pending_ping
 Some keep alives just never return so we need to time them out.
MonitoredStreams m_streams
vector< Query > m_queries
 The list of queries that we are replicating on behalf of this node.
vector< Subscription > m_subs
 The list of subscriptions that we are replicating on behalf of this node.

Static Public Attributes

const int MAX_FAILED_PINGS = 3


Member Typedef Documentation

typedef vector< ptr<StreamDef> > HA::MonitoredNode::AltStreams
 

typedef map< StreamID, AltStreams > HA::MonitoredNode::MonitoredStreams
 


Constructor & Destructor Documentation

HA::MonitoredNode::MonitoredNode MedusaID  id,
NodeType  t
 


Member Function Documentation

string HA::MonitoredNode::as_string  )  const
 


Member Data Documentation

int HA::MonitoredNode::m_failed_pings
 

Number of consecutive failed keep_alives.

MedusaID HA::MonitoredNode::m_node_id
 

Unique ID of this node.

bool HA::MonitoredNode::m_pending_ping
 

Some keep alives just never return so we need to time them out.

vector<Query> HA::MonitoredNode::m_queries
 

The list of queries that we are replicating on behalf of this node.

bool HA::MonitoredNode::m_recovered
 

Did we recover from the failure of this monitored node.

bool HA::MonitoredNode::m_started
 

Was the monitored node ever up and running.

MonitoredStreams HA::MonitoredNode::m_streams
 

vector<Subscription> HA::MonitoredNode::m_subs
 

The list of subscriptions that we are replicating on behalf of this node.

NodeType HA::MonitoredNode::m_type
 

The type of this node (why are we monitoring it).

const int HA::MonitoredNode::MAX_FAILED_PINGS = 3 [static]
 


The documentation for this class was generated from the following file:
Generated on Fri Nov 12 15:15:23 2004 for Borealis by doxygen 1.3.8