-
Notifications
You must be signed in to change notification settings - Fork 0
/
DuplicationManager.h
39 lines (32 loc) · 1.12 KB
/
DuplicationManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*************************************************************************
> File Name: DuplicationManager.h
> Author: Weidong, ZHANG
> Mail: [email protected]
> Created Time: Tue 09 Dec 2014 07:10:15 AM PST
************************************************************************/
#ifndef DUPLICATION_MANAGER_H
#define DUPLICATION_MANAGER_H
#include <iostream>
#include <vector>
#include "pdfs.h"
#include "Cluster.h"
#include "UDPNetworkInterface.h"
#include "TCPNetworkInterface.h"
namespace pdfs {
class DuplicationManager
{
private:
public:
static ssize_t backupMetadata(NetworkInterface &netinterface, Metadata
&metadata);
static ssize_t backupFile(NetworkInterface &netinterface, Metadata
&metadata);
static ssize_t addMetadata(NetworkInterface &netinterface, Metadata
&metadata, std::string dest);
static ssize_t addFile(NetworkInterface &netinterface, Metadata
&metdata, std::string dest);
DuplicationManager();
~DuplicationManager();
}; // end of class DuplicationManager
} // end of namespace pdfs
#endif