pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
remote.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Andrew Beekhof <andrew@beekhof.net>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This software is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 #ifndef PE_REMOTE__H
19 # define PE_REMOTE__H
20 
21 gboolean xml_contains_remote_node(xmlNode *xml);
22 gboolean is_baremetal_remote_node(node_t *node);
23 gboolean is_container_remote_node(node_t *node);
24 gboolean is_remote_node(node_t *node);
27 void pe_foreach_guest_node(const pe_working_set_t *data_set, const node_t *host,
28  void (*helper)(const node_t*, void*), void *user_data);
29 xmlNode *pe_create_remote_xml(xmlNode *parent, const char *uname,
30  const char *container_id, const char *migrateable,
31  const char *is_managed, const char *interval,
32  const char *monitor_timeout,
33  const char *start_timeout,
34  const char *server, const char *port);
35 
36 #endif
resource_t * rsc_contains_remote_node(pe_working_set_t *data_set, resource_t *rsc)
Definition: remote.c:71
AIS_Host host
Definition: internal.h:52
gboolean is_rsc_baremetal_remote_node(resource_t *rsc, pe_working_set_t *data_set)
Definition: remote.c:25
char uname[MAX_NAME]
Definition: internal.h:53
gboolean is_remote_node(node_t *node)
Definition: remote.c:62
void pe_foreach_guest_node(const pe_working_set_t *data_set, const node_t *host, void(*helper)(const node_t *, void *), void *user_data)
Definition: remote.c:114
xmlNode * pe_create_remote_xml(xmlNode *parent, const char *uname, const char *container_id, const char *migrateable, const char *is_managed, const char *interval, const char *monitor_timeout, const char *start_timeout, const char *server, const char *port)
Definition: remote.c:158
gboolean is_baremetal_remote_node(node_t *node)
Definition: remote.c:44
gboolean is_container_remote_node(node_t *node)
Definition: remote.c:53
gboolean xml_contains_remote_node(xmlNode *xml)
Definition: remote.c:91
Definition: status.h:174