corosync
2.3.5
|
#include <config.h>
#include <unistd.h>
#include <statgrab.h>
#include <corosync/corotypes.h>
#include <corosync/corodefs.h>
#include <corosync/coroapi.h>
#include <corosync/list.h>
#include <corosync/logsys.h>
#include <corosync/icmap.h>
#include "fsm.h"
#include "service.h"
Go to the source code of this file.
Data Structures | |
struct | resource_instance |
Macros | |
#define | MON_DEFAULT_PERIOD 3000 |
#define | MON_MIN_PERIOD 500 |
#define | MON_MAX_PERIOD (120 * CS_TIME_MS_IN_SEC) |
Enumerations | |
enum | mon_resource_state { MON_S_STOPPED, MON_S_RUNNING, MON_S_FAILED } |
enum | mon_resource_event { MON_E_CONFIG_CHANGED, MON_E_FAILURE } |
Functions | |
LOGSYS_DECLARE_SUBSYS ("MON") | |
struct corosync_service_engine * | mon_get_service_engine_ver0 (void) |
Variables | |
struct corosync_service_engine | mon_service_engine |
const char * | mon_running_str = "running" |
const char * | mon_failed_str = "failed" |
const char * | mon_failure_str = "failure" |
const char * | mon_stopped_str = "stopped" |
const char * | mon_config_changed_str = "config_changed" |
struct cs_fsm_entry | mon_fsm_table [] |
#define MON_MAX_PERIOD (120 * CS_TIME_MS_IN_SEC) |
Definition at line 60 of file mon.c.
Referenced by mon_get_service_engine_ver0().
#define MON_MIN_PERIOD 500 |
Definition at line 59 of file mon.c.
Referenced by mon_get_service_engine_ver0().
enum mon_resource_event |
enum mon_resource_state |
LOGSYS_DECLARE_SUBSYS | ( | "MON" | ) |
struct corosync_service_engine* mon_get_service_engine_ver0 | ( | void | ) |
Definition at line 149 of file mon.c.
References COROSYNC_DONE_FATAL_ERR, corosync_exit_error, CS_FSM_CB_EVENT_PROCESS_NF, CS_FSM_CB_EVENT_STATE_SET, CS_FSM_CB_EVENT_STATE_SET_NF, CS_OK, cs_fsm::curr_entry, cs_fsm_entry::curr_state, cs_fsm::curr_state, resource_instance::dbl, ENTER, cs_fsm::entries, cs_fsm::event_to_str, resource_instance::fsm, icmap_get_string(), ICMAP_KEYNAME_MAXLEN, resource_instance::icmap_path, icmap_set_double(), icmap_set_int32(), icmap_set_string(), icmap_set_uint32(), icmap_set_uint64(), ICMAP_TRACK_ADD, icmap_track_add(), ICMAP_TRACK_DELETE, ICMAP_TRACK_MODIFY, ICMAP_TRACK_PREFIX, ICMAP_VALUETYPE_DOUBLE, ICMAP_VALUETYPE_INT32, resource_instance::int32, log_printf, LOGSYS_LEVEL_CRIT, LOGSYS_LEVEL_DEBUG, LOGSYS_LEVEL_ERROR, LOGSYS_LEVEL_INFO, LOGSYS_LEVEL_WARNING, resource_instance::max, resource_instance::max_type, MILLI_2_NANO_SECONDS, mon_config_changed_str, MON_E_CONFIG_CHANGED, MON_E_FAILURE, mon_failed_str, mon_failure_str, mon_fsm_table, MON_MAX_PERIOD, MON_MIN_PERIOD, mon_running_str, MON_S_FAILED, MON_S_RUNNING, MON_S_STOPPED, mon_stopped_str, cs_fsm::name, resource_instance::name, resource_instance::period, cs_fsm::state_to_str, cs_fsm::table, corosync_api_v1::timer_add_duration, corosync_api_v1::timer_delete, resource_instance::timer_handle, resource_instance::update_stats_fn, and user_data.
const char* mon_config_changed_str = "config_changed" |
Definition at line 128 of file mon.c.
Referenced by mon_get_service_engine_ver0().
const char* mon_failed_str = "failed" |
Definition at line 125 of file mon.c.
Referenced by mon_get_service_engine_ver0().
const char* mon_failure_str = "failure" |
Definition at line 126 of file mon.c.
Referenced by mon_get_service_engine_ver0().
struct cs_fsm_entry mon_fsm_table[] |
Definition at line 140 of file mon.c.
Referenced by mon_get_service_engine_ver0().
const char* mon_running_str = "running" |
Definition at line 124 of file mon.c.
Referenced by mon_get_service_engine_ver0().
struct corosync_service_engine mon_service_engine |
const char* mon_stopped_str = "stopped" |
Definition at line 127 of file mon.c.
Referenced by mon_get_service_engine_ver0().