TibrvFtMonitor

Class

Declaration

class TibrvFtMonitor
    TibrvFtmonitor();             // Create empty.
    virtual ~TibrvFtmonitor();    // Destroy and reclaim storage.

Purpose

Monitor a fault tolerance group.

Remarks

The constructor creates a hollow object; TibrvFtMonitor::create() makes it operational, and monitors a fault tolerance group.

Monitors are passive—they do not affect the group members in any way.

Rendezvous fault tolerance software queues a monitor event whenever the number of active members in the group changes—either it detects a new heartbeat, or it detects that the heartbeat from a previously active member is now silent, or it receives a message from the fault tolerance component of an active member indicating deactivation or termination.

The monitor callback method receives the number of active members as an argument.

By destroying a monitor object, the program stops monitoring the fault tolerance group. The destructor calls the destroy method, unless the C object is already destroyed.

Destroying the queue or transport of a monitor automatically destroys the monitor as well.

Method

Description

Life Cycle

TibrvFtMonitor::create()

Monitor a fault tolerance group.

TibrvFtMonitor::destroy()

Stop monitoring a fault tolerance group, and free associated resources.

TibrvFtMonitor::getHandle()

Extract the C handle of a fault tolerance monitor.

TibrvFtMonitor::isValid()

Test validity of a fault tolerance monitor object.

Properties

TibrvFtMonitor::getClosure()

Extract the closure data of a fault tolerance monitor.

TibrvFtMonitor::getGroupName()

Extract the group name of a fault tolerance monitor.

TibrvFtMonitor::getQueue()

Extract the event queue of a fault tolerance monitor.

TibrvFtMonitor::getTransport()

Extract the transport of a fault tolerance monitor.

Related Classes

TibrvFtMember

See Also

TibrvFtMonitorCallback