0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Context.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 
26 
27 #ifndef Hypertable_RangeServer_Context_h
28 #define Hypertable_RangeServer_Context_h
29 
32 
33 #include <AsyncComm/Comm.h>
34 
35 #include <Common/Properties.h>
36 
37 #include <memory>
38 
39 namespace Hypertable {
40 
43 
45  class Context {
46  public:
50  Comm *comm {};
52  std::shared_ptr<ServerState> server_state;
55  };
56 
58  typedef std::shared_ptr<Context> ContextPtr;
59 
61 
62 }
63 
64 #endif // Hypertable_RangeServer_Context_h
Program options handling.
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
Definition: Context.h:265
Declarations for TableInfoMap.
PropertiesPtr props
Configuration properties.
Definition: Context.h:147
std::shared_ptr< Properties > PropertiesPtr
Definition: Properties.h:447
std::shared_ptr< ServerState > server_state
Server state.
Definition: Context.h:52
std::shared_ptr< TableInfoMap > TableInfoMapPtr
Shared smart pointer to TableInfoMap.
Definition: TableInfoMap.h:223
Hypertable definitions
Entry point to AsyncComm service.
Definition: Comm.h:61
Declarations for Comm.
TableInfoMapPtr live_map
Live table info map.
Definition: Context.h:54
Comm * comm
Comm layer.
Definition: Context.h:143
Execution context for the Master.
Definition: Context.h:85
Declarations for ServerState.