pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
status.c File Reference
#include <crm_internal.h>
#include <sys/param.h>
#include <crm/crm.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <glib.h>
#include <crm/pengine/internal.h>
#include <pe_status_private.h>
Include dependency graph for status.c:

Go to the source code of this file.

Functions

pe_working_set_tpe_new_working_set ()
 Create a new working set. More...
 
void pe_free_working_set (pe_working_set_t *data_set)
 Free a working set. More...
 
gboolean cluster_status (pe_working_set_t *data_set)
 
void cleanup_calculations (pe_working_set_t *data_set)
 Reset working set to default state without freeing it or constraints. More...
 
void pe_reset_working_set (pe_working_set_t *data_set)
 Reset a working set to default state without freeing it. More...
 
void set_working_set_defaults (pe_working_set_t *data_set)
 
pe_resource_tpe_find_resource (GList *rsc_list, const char *id)
 
pe_resource_tpe_find_resource_with_flags (GList *rsc_list, const char *id, enum pe_find flags)
 
pe_node_tpe_find_node_any (GList *nodes, const char *id, const char *uname)
 
pe_node_tpe_find_node_id (GList *nodes, const char *id)
 
pe_node_tpe_find_node (GList *nodes, const char *uname)
 

Function Documentation

void cleanup_calculations ( pe_working_set_t data_set)

Reset working set to default state without freeing it or constraints.

Parameters
[in,out]data_setWorking set to reset
Deprecated:
This function is deprecated as part of the API; pe_reset_working_set() should be used instead.

Definition at line 270 of file status.c.

gboolean cluster_status ( pe_working_set_t data_set)

Definition at line 71 of file status.c.

pe_node_t* pe_find_node ( GList *  nodes,
const char *  uname 
)

Definition at line 434 of file status.c.

pe_node_t* pe_find_node_any ( GList *  nodes,
const char *  id,
const char *  uname 
)

Definition at line 406 of file status.c.

pe_node_t* pe_find_node_id ( GList *  nodes,
const char *  id 
)

Definition at line 418 of file status.c.

pe_resource_t* pe_find_resource ( GList *  rsc_list,
const char *  id 
)

Definition at line 382 of file status.c.

pe_resource_t* pe_find_resource_with_flags ( GList *  rsc_list,
const char *  id,
enum pe_find  flags 
)

Definition at line 388 of file status.c.

void pe_free_working_set ( pe_working_set_t data_set)

Free a working set.

Parameters
[in]data_setWorking set to free

Definition at line 50 of file status.c.

pe_working_set_t* pe_new_working_set ( void  )

Create a new working set.

Returns
New, initialized working set on success, else NULL (and set errno)
Note
Only pe_working_set_t objects created with this function (as opposed to statically declared or directly allocated) should be used with the functions in this library, to allow for future extensions to the data type. The caller is responsible for freeing the memory with pe_free_working_set() when the instance is no longer needed.

Definition at line 34 of file status.c.

void pe_reset_working_set ( pe_working_set_t data_set)

Reset a working set to default state without freeing it.

Parameters
[in,out]data_setWorking set to reset

Definition at line 329 of file status.c.

void set_working_set_defaults ( pe_working_set_t data_set)

Definition at line 359 of file status.c.