#include <ahm_lib.h>
Public Attributes | |
pid_t | pid |
unsigned long | id |
char | process_name [STRING_LENGTH] |
char | recovery_script [STRING_LENGTH] |
char | registration_file [STRING_LENGTH] |
unsigned long | max_interval |
unsigned long | min_interval |
char | hb_fifo [STRING_LENGTH] |
int | hb_fifo_fd |
unsigned long | registration_timeout |
|
The absolute path of the heartbeat fifo |
|
The file descriptor of the open heartbeat fifo |
|
The identifer used for this thread, which is unique among this application's threads |
|
the maximum amount of time to lapse between heartbeats. This is how frequently the daemon will expect the heartbeats. |
|
the minimum amount of time to lapse between heartbeats. This is the value used by the application to send heartbeats. An min,max interval is used to minimize false heartbeat failures |
|
The process identifier for the registering application |
|
This is the process name as it should appear in /proc. It should not contain any path, simply the executable name |
|
The absolute path to the recovery script to be launched if/when the application misses a heartbeat |
|
This is the registration file name |
|
This is used to indicate when registration has failed. This value should be at least equal to the heartbeat service's registration interval. An application will initialize and then register, yet the heartbeat service may take up to X seconds to process the registration (as defined as startup of the service). This allows the client to wait a reasonable amount of time before considering registration as a failure. NOTE: at this time, this value is set using REGISTRAION_TIMEOUT. It will be determined later if we need to have this be set dynamically. |