Revision 6118
Added by ben leinfelder almost 13 years ago
ReplMessageHandler.java | ||
---|---|---|
42 | 42 |
{ |
43 | 43 |
private Vector<String> indivUpdate = new Vector<String>(); |
44 | 44 |
private Vector<Vector<String>> updates = new Vector<Vector<String>>(); |
45 |
private Vector<String> indivSystemMetadata = new Vector<String>(); |
|
46 |
private Vector<Vector<String>> systemMetadataEntries = new Vector<Vector<String>>(); |
|
45 | 47 |
private Vector<String> indivDelete = new Vector<String>(); |
46 | 48 |
private Vector<Vector<String>> deletes = new Vector<Vector<String>>(); |
47 | 49 |
private Vector<String> indivRevision = new Vector<String>(); |
... | ... | |
51 | 53 |
private boolean update = false; |
52 | 54 |
private boolean delete = false; |
53 | 55 |
private boolean revision = false; |
56 |
private boolean systemMetadata = false; |
|
54 | 57 |
String currentTag = new String(); |
55 | 58 |
StringBuffer textBuffer = null; |
56 | 59 |
|
... | ... | |
81 | 84 |
indivRevision = new Vector<String>(); |
82 | 85 |
revision = true; |
83 | 86 |
} |
87 |
else if (localName.equals("updatedSystemMetadata")) |
|
88 |
{ |
|
89 |
indivSystemMetadata = new Vector<String>(); |
|
90 |
systemMetadata = true; |
|
91 |
} |
|
84 | 92 |
|
85 | 93 |
} |
86 | 94 |
|
... | ... | |
102 | 110 |
{ |
103 | 111 |
indivRevision.add(textBuffer.toString()); |
104 | 112 |
} |
113 |
else if (currentTag.equals("guid") && systemMetadata) |
|
114 |
{ |
|
115 |
indivSystemMetadata.add(textBuffer.toString()); |
|
116 |
indivSystemMetadata.add(server); |
|
117 |
} |
|
105 | 118 |
|
106 | 119 |
if(currentTag.equals("rev") && update) |
107 | 120 |
{ |
... | ... | |
171 | 184 |
revisions.add(new Vector<String>(indivRevision)); |
172 | 185 |
revision = false; |
173 | 186 |
} |
187 |
else if (localName.equals("updatedSystemMetadata")) |
|
188 |
{ |
|
189 |
systemMetadataEntries.add(new Vector<String>(indivSystemMetadata)); |
|
190 |
systemMetadata = false; |
|
191 |
} |
|
174 | 192 |
} |
175 | 193 |
|
176 | 194 |
/** |
... | ... | |
196 | 214 |
return revisions; |
197 | 215 |
} |
198 | 216 |
|
217 |
public Vector<Vector<String>> getSystemMetadataVect() |
|
218 |
{ |
|
219 |
return systemMetadataEntries; |
|
220 |
} |
|
221 |
|
|
199 | 222 |
/** |
200 | 223 |
* Gets the server name |
201 | 224 |
* @return |
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