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.
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 
28 #ifndef AsyncComm_COMM_CONFIG_H
29 #define AsyncComm_COMM_CONFIG_H
30 
31 #include "Common/Config.h"
32 
33 namespace Hypertable { namespace Config {
34 
45  void init_comm_options();
46 
53  void init_comm();
54 
61 
64  void init_generic_server();
65 
69  struct CommPolicy : Policy {
70  static void init_options() { init_comm_options(); }
71  static void init() { init_comm(); }
72  };
73 
80  static void init() { init_generic_server(); }
81  };
82 
85 
88 
91 }} // namespace Hypertable::Config
92 
93 #endif // AsyncComm_COMM_CONFIG_H
void init_generic_server_options()
Initializes generic server options.
Definition: Config.cc:58
Interface and base of config policy.
Definition: Config.h:149
Cons< DefaultPolicy, CommPolicy > DefaultCommPolicy
Default comm layer config policy.
Definition: Config.h:84
void init_comm_options()
Initializes Comm-layer options.
Definition: Config.cc:36
Config policy for Comm layer.
Definition: Config.h:69
void init_comm()
This method initializes the Comm-layer.
Definition: Config.cc:44
Helpers to compose init policies; allow to combine two policies into one.
Definition: Config.h:174
Config policy for generic Comm layer server.
Definition: Config.h:78
static void init_options()
Definition: Config.h:70
Hypertable definitions
void init_generic_server()
Initializes generic server by writing the pidfile.
Definition: Config.cc:65
Cons< GenericServerPolicy, DefaultCommPolicy > DefaultServerPolicy
Default comm layer server policy.
Definition: Config.h:87
Configuration settings.