Skip to content
Snippets Groups Projects
Commit 2a4f4df6 authored by ajf5's avatar ajf5
Browse files

test

parent 0b5aa101
No related branches found
No related tags found
No related merge requests found
#ifndef NODE_H
#define NODE_H
#include <iostream>
#include <iostream>
#include <string>
#include <vector>
#include <map>
......@@ -19,7 +19,7 @@
using namespace std;
#define INTRODUCER "172.22.94.78" // VM1
#define INTRODUCER "172.22.158.5" // VM1
//#define INTRODUCER "172.22.158.81" // VM9
#define PORT "6000"
......@@ -57,7 +57,7 @@ public:
// unsigned long byteSent;
// unsigned long byteReceived;
ModeType runningMode;
Logger* logWriter;
bool activeRunning;
......@@ -80,7 +80,7 @@ public:
map<string, tuple<string, string, string>> pendingSenderRequests;
map<string, tuple<bool, bool, bool>> pendingRequestSent;
Node();
Node(ModeType mode);
int getPositionOnHashring();
......@@ -122,7 +122,7 @@ public:
string populateSDFSFileList(MessageType type, string mem_list_to_send);
void updateFileList(string sdfsfilename, int nodePosition);
void checkFileListConsistency();
private:
string populateMembershipMessage();
string populateIntroducerMembershipMessage();
......@@ -133,4 +133,4 @@ private:
int hashingId(Member nodeMember, string joinTime);
};
#endif //NODE_H
\ No newline at end of file
#endif //NODE_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment