Package com.jalios.jstore.jsync
Class UpdateMessage
- java.lang.Object
-
- com.jalios.jstore.jsync.Message
-
- com.jalios.jstore.jsync.UpdateMessage
-
public class UpdateMessage extends Message
This class represents a JSync UpdateMessage. Example of UpdateMessage<?xml version='1.0' encoding='UTF-8'?> <jsync version='1.0'> <update urid='r1'> <pt> <stamp urid='r1' time='1234' /> <stamp urid='r2' time='2345' /> <stamp urid='r3' time='3456' /> </pt> <ops> <category stamp="r1_1" id="r1_1" op="create" data="my data 1" /> <generated.Article stamp="r1_2" id="r1_2" op="create" data="my data 2" /> </ops> <files> <file url='http://www/f1.txt' path='f1.txt' lastModified='1083915719021' size='12345' ticket='ticket1'/> <file url='http://www/dir/f2.txt' path='dir/f2.txt' lastModified='1083915719021' size='23456' ticket='ticket2'/> </files> </update> </jsync>
- Author:
- Olivier Dedieu
-
-
Constructor Summary
Constructors Constructor Description UpdateMessage(java.lang.String urid, StampTable progressTable, java.util.List<StorableLogEntry> opList, java.util.Set<FileEntry> fileSet)
Constructs a new UpdateMessageUpdateMessage(org.jdom.Element root)
Constructs a new UpdateMessage from an XML element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<FileEntry>
getFileSet()
java.util.List<StorableLogEntry>
getOpList()
StampTable
getProgressTable()
java.lang.String
toXml()
-
Methods inherited from class com.jalios.jstore.jsync.Message
getTime, getUrid, getXmlFooter, getXmlHeader, parse, stampToXml, toString
-
-
-
-
Constructor Detail
-
UpdateMessage
public UpdateMessage(java.lang.String urid, StampTable progressTable, java.util.List<StorableLogEntry> opList, java.util.Set<FileEntry> fileSet)
Constructs a new UpdateMessage- Parameters:
urid
- the urid of the senderopList
- the list of LogEntry to sendfileSet
- the set of file (URL) to send- Since:
- jcms-4.1
-
UpdateMessage
public UpdateMessage(org.jdom.Element root)
Constructs a new UpdateMessage from an XML element- Parameters:
root
- the root element (i.e. the<update>
tag)- Since:
- jcms-4.1
-
-
Method Detail
-
getProgressTable
public StampTable getProgressTable()
- Returns:
- the progressTable
- Since:
- jcms-5.0.1
-
getOpList
public java.util.List<StorableLogEntry> getOpList()
- Returns:
- the list of LogEntry
- Since:
- jcms-4.1
-
getFileSet
public java.util.Set<FileEntry> getFileSet()
- Returns:
- the list of File
- Since:
- jcms-4.1
-
-