#include "appHeartbeatMonitor.h"
Go to the source code of this file.
Compounds | |
struct | internal_reg_info |
Defines | |
#define | REGISTRATION_DIRECTORY "/var/appmonitord" |
Functions | |
int | ok_to_send_heartbeat (int a_fd) |
int | create_heartbeat_fifo (struct internal_reg_info **a_reginfo) |
int | create_registration_file (struct internal_reg_info **a_reginfo) |
Variables | |
int | ahm_fifo_fd |
int | errno |
|
|
|
This is a private function. Creates and opens the fifo to which heartbeats will be written. If an error occurs in creating the fifo or in opening it, the fifo will be removed (if it was created) and the error code from the appropriate failed call will be returned. If it is created successfully, the file descriptor will be stored in the provided structure. NOTE: This function does not support multiple heartbeats from a single application due to handling of the FIFO file descriptor.
|
|
This is a private function. Handles creation of the registration file and filling it with the registration information. If any point fails during creation of the registration file, the file is removed from the registration directory and an error code is returned.
|
|
This is a private function. It is used internally to determine if writing to the heartbeat FIFO will block. This keeps the client from filling the FIFO and allows us to know if there is a reading accepting heartbeats.
|
|
This is used when the client wishes to have the library set up a callback for sending heartbeats using setitimer and a signal handler for SIGALRM. |
|
|