All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
as_peers.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2017 Aerospike, Inc.
3  *
4  * Portions may be licensed to Aerospike, Inc. under one or more contributor
5  * license agreements.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8  * use this file except in compliance with the License. You may obtain a copy of
9  * the License at http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14  * License for the specific language governing permissions and limitations under
15  * the License.
16  */
17 #pragma once
18 
19 #include <aerospike/as_cluster.h>
20 
21 /******************************************************************************
22  * TYPES
23  *****************************************************************************/
24 
25 typedef struct as_peers_s {
26  as_vector /* as_host */ hosts;
27  as_vector /* as_node* */ nodes;
28  bool use_peers;
30 } as_peers;
31 
32 /******************************************************************************
33  * FUNCTIONS
34  *****************************************************************************/
35 
36 as_node*
37 as_peers_find_local_node(as_vector* nodes, const char* name);
38 
39 void
40 as_peers_parse_services(as_peers* peers, as_cluster* cluster, as_node* node, char* buf);
41 
43 as_peers_parse_peers(as_peers* peers, as_error* err, as_cluster* cluster, as_node* node, char* buf);
as_status
Definition: as_status.h:30
as_node * as_peers_find_local_node(as_vector *nodes, const char *name)
as_vector nodes
Definition: as_peers.h:27
as_vector hosts
Definition: as_peers.h:26
bool use_peers
Definition: as_peers.h:28
as_status as_peers_parse_peers(as_peers *peers, as_error *err, as_cluster *cluster, as_node *node, char *buf)
void as_peers_parse_services(as_peers *peers, as_cluster *cluster, as_node *node, char *buf)
bool gen_changed
Definition: as_peers.h:29