-
Notifications
You must be signed in to change notification settings - Fork 477
/
RsyncSite.java
36 lines (27 loc) · 1.03 KB
/
RsyncSite.java
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
package edu.harvard.iq.dataverse.repositorystorageabstractionlayer;
import java.io.File;
public class RsyncSite {
private final String name;
private final String fqdn;
private final String fullRemotePathToDirectory;
private final String rsyncDownloadcommand;
public RsyncSite(String name, String fqdn, String fullRemotePathToDirectory) {
this.name = name;
this.fqdn = fqdn;
this.fullRemotePathToDirectory = fullRemotePathToDirectory;
// TODO: Stop hard-coding "rsync" here one a field has been added to the StorageSite object (or related object).
this.rsyncDownloadcommand = "rsync -av rsync://" + this.fqdn + "" + File.separator + this.fullRemotePathToDirectory + " .";
}
public String getName() {
return name;
}
public String getFqdn() {
return fqdn;
}
public String getRsyncDownloadcommand() {
return rsyncDownloadcommand;
}
public String getFullRemotePathToDirectory() {
return fullRemotePathToDirectory;
}
}