#include <HA.h>
Public Types | |
| typedef vector< ptr< StreamDef > > | AltStreams |
| typedef map< StreamID, AltStreams > | MonitoredStreams |
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 |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Number of consecutive failed keep_alives.
|
|
|
Unique ID of this node.
|
|
|
Some keep alives just never return so we need to time them out.
|
|
|
The list of queries that we are replicating on behalf of this node.
|
|
|
Did we recover from the failure of this monitored node.
|
|
|
Was the monitored node ever up and running.
|
|
|
|
|
|
The list of subscriptions that we are replicating on behalf of this node.
|
|
|
The type of this node (why are we monitoring it).
|
|
|
|
1.3.8