0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Protocol.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; version 3 of the
9  * 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 
28 #ifndef Hypertable_Lib_RangeServer_Protocol_h
29 #define Hypertable_Lib_RangeServer_Protocol_h
30 
31 #include <Common/StaticBuffer.h>
32 
40 
41 namespace Hypertable {
42 namespace Lib {
43 namespace RangeServer {
44 
45  using namespace std;
46 
49 
51  class Protocol {
52  public:
53  enum {
89  };
90 
91  enum RangeGroup {
95  GROUP_USER
96  };
97 
98  // The flags shd be the same as in Hypertable::TableMutator.
99  enum {
100  /* Don't force a commit log sync on update */
101  UPDATE_FLAG_NO_LOG_SYNC = 0x0001,
102  UPDATE_FLAG_NO_LOG = 0x0004
103  };
104 
105  // Compaction flags
107  COMPACT_FLAG_ROOT = 0x0001,
108  COMPACT_FLAG_METADATA = 0x0002,
109  COMPACT_FLAG_SYSTEM = 0x0004,
110  COMPACT_FLAG_USER = 0x0008,
111  COMPACT_FLAG_ALL = 0x000F,
112  COMPACT_FLAG_MINOR = 0x0010,
113  COMPACT_FLAG_MAJOR = 0x0020,
114  COMPACT_FLAG_MERGING = 0x0040,
115  COMPACT_FLAG_GC = 0x0080
116  };
117 
118  static string compact_flags_to_string(uint32_t flags);
119 
120  };
121 
123 }}}
124 
125 #endif // Hypertable_Lib_RangeServer_Protocol_h
Declarations for SystemVariable.
Declarations for TableIdentifier and TableIdentifierManaged.
STL namespace.
Declarations for QualifiedRangeSpec and QualifiedRangeSpecManaged.
Declarations for RangeState.
A memory buffer of static size.
Declarations for RangeSpec and RangeSpecManaged.
Hypertable definitions
Master client protocol information.
Definition: Protocol.h:51