0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MetaLogEntityTaskAcknowledgeRelinquish.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 
22 #ifndef Hypertable_RangeServer_MetaLogEntityTaskAcknowledgeRelinquish_h
23 #define Hypertable_RangeServer_MetaLogEntityTaskAcknowledgeRelinquish_h
24 
25 #include "Common/md5.h"
26 
27 #include "MetaLogEntityTask.h"
28 
29 namespace Hypertable {
30  namespace MetaLog {
31 
33  public:
35  EntityTaskAcknowledgeRelinquish(const String &loc, int64_t id,
36  const TableIdentifier &t,
37  const RangeSpec &rs);
39  bool execute() override;
40  void work_queue_add_hook() override;
41 
48  void decode(const uint8_t **bufp, size_t *remainp,
49  uint16_t definition_version) override;
50  const String name() override;
51  void display(std::ostream &os) override;
52 
54  int64_t range_id {};
57 
58  private:
59 
60  uint8_t encoding_version() const override;
61 
62  size_t encoded_length_internal() const override;
63 
64  void encode_internal(uint8_t **bufp) const override;
65 
66  void decode_internal(uint8_t version, const uint8_t **bufp,
67  size_t *remainp) override;
68 
69  void decode_old(const uint8_t **bufp, size_t *remainp);
70 
71  };
72 
73  }
74 }
75 
76 #endif // Hypertable_RangeServer_MetaLogEntityTaskAcknowledgeRelinquish_h
void decode(const uint8_t **bufp, size_t *remainp, uint16_t definition_version) override
Decodes serlialized EntityTaskAcknowledgeRelinquish object.
Range specification.
Definition: RangeSpec.h:40
std::string String
A String is simply a typedef to std::string.
Definition: String.h:44
uint8_t encoding_version() const override
Returns encoding version.
Wrapper for TableIdentifier providing member storage.
size_t encoded_length_internal() const override
Returns internal serialized length.
Hypertable definitions
const String name() override
Returns the name of the entity.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
void display(std::ostream &os) override
Prints a textual representation of the entity state to an ostream.
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
md5 digest routines.
Wrapper for RangeSpec providing member storage.
Definition: RangeSpec.h:89