pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
status.h File Reference

Cluster status and scheduling. More...

#include <glib.h>
#include <stdbool.h>
#include <crm/crm.h>
#include <crm/common/iso8601.h>
#include <crm/pengine/common.h>
#include <crm/pengine/pe_types.h>
#include <crm/pengine/complex.h>
Include dependency graph for status.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


const char * rsc_printable_id (pe_resource_t *rsc)
gboolean cluster_status (pe_working_set_t *data_set)
pe_working_set_tpe_new_working_set (void)
 Create a new working set. More...
void pe_free_working_set (pe_working_set_t *data_set)
 Free a working set. More...
void set_working_set_defaults (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...
pe_resource_tpe_find_resource (GListPtr rsc_list, const char *id_rh)
pe_resource_tpe_find_resource_with_flags (GListPtr rsc_list, const char *id, enum pe_find flags)
pe_node_tpe_find_node (GListPtr node_list, const char *uname)
pe_node_tpe_find_node_id (GListPtr node_list, const char *id)
pe_node_tpe_find_node_any (GListPtr node_list, const char *id, const char *uname)
GListPtr find_operations (const char *rsc, const char *node, gboolean active_filter, pe_working_set_t *data_set)
int pe_bundle_replicas (const pe_resource_t *rsc)
 Get the number of configured replicas in a bundle. More...

Detailed Description

Cluster status and scheduling.

Definition in file status.h.

Function Documentation

void cleanup_calculations ( pe_working_set_t data_set)

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

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

Definition at line 256 of file status.c.

gboolean cluster_status ( pe_working_set_t data_set)

Definition at line 68 of file status.c.

GListPtr find_operations ( const char *  rsc,
const char *  node,
gboolean  active_filter,
pe_working_set_t data_set 

Definition at line 3461 of file unpack.c.

int pe_bundle_replicas ( const resource_t rsc)

Get the number of configured replicas in a bundle.

[in]rscBundle resource
Number of configured replicas, or 0 on error

Definition at line 1671 of file bundle.c.

pe_node_t* pe_find_node ( GListPtr  node_list,
const char *  uname 

Definition at line 412 of file status.c.

pe_node_t* pe_find_node_any ( GListPtr  node_list,
const char *  id,
const char *  uname 

Definition at line 384 of file status.c.

pe_node_t* pe_find_node_id ( GListPtr  node_list,
const char *  id 

Definition at line 396 of file status.c.

pe_resource_t* pe_find_resource ( GListPtr  rsc_list,
const char *  id_rh 

Definition at line 360 of file status.c.

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

Definition at line 366 of file status.c.

void pe_free_working_set ( pe_working_set_t data_set)

Free a working set.

[in]data_setWorking set to free

Definition at line 48 of file status.c.

pe_working_set_t* pe_new_working_set ( void  )

Create a new working set.

New, initialized working set on success, else NULL (and set errno)
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 32 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.

[in,out]data_setWorking set to reset

Definition at line 315 of file status.c.

const char* rsc_printable_id ( pe_resource_t rsc)

Definition at line 2137 of file utils.c.

void set_working_set_defaults ( pe_working_set_t data_set)

Definition at line 345 of file status.c.