Revision 6118
Added by ben leinfelder almost 13 years ago
ReplicationServer.java | ||
---|---|---|
26 | 26 |
|
27 | 27 |
package edu.ucsb.nceas.metacat.replication; |
28 | 28 |
|
29 |
import java.util.Date; |
|
30 |
|
|
29 | 31 |
/** |
30 | 32 |
* A class express a entry in xml_replication. It include server name, |
31 | 33 |
* lastChechedDate, replication or not, dataReplication or not, hub or not |
... | ... | |
34 | 36 |
public class ReplicationServer |
35 | 37 |
{ |
36 | 38 |
private String serverName = null; //server name |
37 |
private String lastCheckedDate = null; //string of last
|
|
39 |
private Date lastCheckedDate = null; //string of last
|
|
38 | 40 |
private boolean replication = false; //replciate xml document or not |
39 | 41 |
private boolean dataReplication = false; //replciate data file or not |
40 | 42 |
//it is relative to replcation |
... | ... | |
75 | 77 |
/** |
76 | 78 |
* Get last checked date |
77 | 79 |
*/ |
78 |
public String getLastCheckedDate()
|
|
80 |
public Date getLastCheckedDate()
|
|
79 | 81 |
{ |
80 | 82 |
return this.lastCheckedDate; |
81 | 83 |
}//getLastCheckedDate |
... | ... | |
84 | 86 |
* Set a string as last checked date |
85 | 87 |
* @Param myLastCheckedDate, the string will set to object's lastCheckedDate |
86 | 88 |
*/ |
87 |
public void setLastCheckedDate(String myLastCheckedDate)
|
|
89 |
public void setLastCheckedDate(Date myLastCheckedDate)
|
|
88 | 90 |
{ |
89 | 91 |
this.lastCheckedDate = myLastCheckedDate; |
90 | 92 |
}//setLastCheckedDate |
Also available in: Unified diff
handle timed replication of system metadata. there are still a few outstanding issues:
-track server location of system metadata-only entries
-replication policy flag for system metadata-only entries?
-locking for replicated entries?
-forced replication of entries