0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Config.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 3
9  * of the License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef HYPERTABLE_LIB_CONFIG_H
23 #define HYPERTABLE_LIB_CONFIG_H
24 
25 #include "Common/Config.h"
26 #include "AsyncComm/Config.h"
27 #include "Hyperspace/Config.h"
28 #include "FsBroker/Lib/Config.h"
29 
30 namespace Hypertable { namespace Config {
31 
32  // init helpers
34  void init_master_client();
37 
38  struct ClientPolicy : Policy {
39  static void init_options() {
40  alias("workers", "Hypertable.Client.Workers");
41  }
42  };
43 
46  static void init() { init_master_client(); }
47  };
48 
51  static void init() { init_range_server_client(); }
52  };
53 
56 
58 
59 }} // namespace Hypertable::Config
60 
61 #endif // HYPERTABLE_LIB_CONFIG_H
Declarations for configuration properties.
Interface and base of config policy.
Definition: Config.h:149
Meta::list< ClientPolicy, HyperspaceClientPolicy, MasterClientPolicy, DefaultCommPolicy > ClientPolicies
Definition: Config.h:55
void init_master_client_options()
Definition: Config.cc:28
void init_range_server_client_options()
Definition: Config.cc:49
Join< ClientPolicies >::type DefaultClientPolicy
Definition: Config.h:57
Helpers to compose init policies; allow to combine two policies into one.
Definition: Config.h:174
void init_master_client()
Definition: Config.cc:38
static void init_options()
Definition: Config.h:39
Hypertable definitions
void init_range_server_client()
Definition: Config.cc:58
Configuration settings.
void alias(const String &cmdline_opt, const String &file_opt, bool overwrite)
Setup command line option alias for config file option.
Definition: Config.cc:607
Meta::fold< PolicyListT, NullPolicy, Cons< Meta::_1, Meta::_2 > >::type type
Definition: Config.h:208