dhodovsk / source-git / pacemaker

Forked from source-git/pacemaker 3 years ago
Clone

Blame daemons/controld/controld_fencing.h

rpm-build 3ee90c
/*
rpm-build 3ee90c
 * Copyright 2004-2019 the Pacemaker project contributors
rpm-build 3ee90c
 *
rpm-build 3ee90c
 * The version control history for this file may have further details.
rpm-build 3ee90c
 *
rpm-build 3ee90c
 * This source code is licensed under the GNU Lesser General Public License
rpm-build 3ee90c
 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
rpm-build 3ee90c
 */
rpm-build 3ee90c
rpm-build 3ee90c
#ifndef CONTROLD_FENCING__H
rpm-build 3ee90c
#  define CONTROLD_FENCING__H
rpm-build 3ee90c
rpm-build 3ee90c
#include <stdbool.h>                // bool
rpm-build 3ee90c
#include <pacemaker-internal.h>     // crm_graph_t, crm_action_t
rpm-build 3ee90c
rpm-build 3ee90c
// reaction to notification of local node being fenced
rpm-build 3ee90c
void set_fence_reaction(const char *reaction_s);
rpm-build 3ee90c
rpm-build 3ee90c
// stonith fail counts
rpm-build 3ee90c
void st_fail_count_reset(const char * target);
rpm-build 3ee90c
void update_stonith_max_attempts(const char* value);
rpm-build 3ee90c
rpm-build 3ee90c
// stonith API client
rpm-build 3ee90c
void controld_trigger_fencer_connect(void);
rpm-build 3ee90c
void controld_disconnect_fencer(bool destroy);
rpm-build 3ee90c
gboolean te_fence_node(crm_graph_t *graph, crm_action_t *action);
rpm-build 3ee90c
rpm-build 3ee90c
// stonith cleanup list
rpm-build 3ee90c
void add_stonith_cleanup(const char *target);
rpm-build 3ee90c
void remove_stonith_cleanup(const char *target);
rpm-build 3ee90c
void purge_stonith_cleanup(void);
rpm-build 3ee90c
void execute_stonith_cleanup(void);
rpm-build 3ee90c
rpm-build 3ee90c
// stonith history synchronization
rpm-build 3ee90c
void te_trigger_stonith_history_sync(bool long_timeout);
rpm-build 3ee90c
void te_cleanup_stonith_history_sync(stonith_t *st, bool free_timers);
rpm-build 3ee90c
rpm-build 3ee90c
#endif