-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from DICL/refactor-update
Refactor update
- Loading branch information
Showing
16 changed files
with
321 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "blockupdate.hh" | ||
|
||
using namespace eclipse::messages; | ||
|
||
std::string BlockUpdate::get_type() const { return "BlockUpdate"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
#include "message.hh" | ||
#include <cstdint> | ||
|
||
namespace eclipse { | ||
namespace messages { | ||
struct BlockUpdate: public Message { | ||
std::string get_type() const override; | ||
|
||
std::string name; | ||
uint32_t hash_key; | ||
int replica; | ||
uint32_t pos; | ||
uint32_t len; | ||
std::string content; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "offsetkv.hh" | ||
|
||
namespace eclipse { | ||
namespace messages { | ||
|
||
OffsetKeyValue::OffsetKeyValue (uint32_t k, std::string n, std::string v, uint32_t p, uint32_t l) : key(k), name(n), value(v), pos(p), len(l) { } | ||
|
||
std::string OffsetKeyValue::get_type() const { return "OffsetKeyValue"; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include "message.hh" | ||
#include <string> | ||
|
||
namespace eclipse { | ||
namespace messages { | ||
|
||
struct OffsetKeyValue: public Message { | ||
OffsetKeyValue () = default; | ||
OffsetKeyValue (uint32_t, std::string, std::string, uint32_t, uint32_t); | ||
|
||
std::string get_type() const override; | ||
uint32_t key; | ||
std::string name, value; | ||
uint32_t pos, len; | ||
}; | ||
|
||
} | ||
} |
Oops, something went wrong.