Package com.jalios.jstore.jsync
Class AckMessage
- java.lang.Object
-
- com.jalios.jstore.jsync.Message
-
- com.jalios.jstore.jsync.AckMessage
-
public class AckMessage extends Message
This class represents a JSync AckMessage. Example of AckMessage<?xml version='1.0' encoding='UTF-8'?> <jsync version='1.0'> <ack urid='r1' status='200'> <stamp urid='r1' time='1234' /> <stamp urid='r2' time='2345' /> <stamp urid='r3' time='3456' /> </ack> </jsync>
- Author:
- Olivier Dedieu
-
-
Constructor Summary
Constructors Constructor Description AckMessage(java.lang.String urid, int status, StampTable progressTable)
Constructs a new AckMessageAckMessage(org.jdom.Element root)
Constructs a new AckMessage from an XML element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StampTable
getProgressTable()
int
getStatus()
java.lang.String
toXml()
-
Methods inherited from class com.jalios.jstore.jsync.Message
getTime, getUrid, getXmlFooter, getXmlHeader, parse, stampToXml, toString
-
-
-
-
Constructor Detail
-
AckMessage
public AckMessage(java.lang.String urid, int status, StampTable progressTable)
Constructs a new AckMessage- Parameters:
urid
- the urid of the sender (i.e. replica that sends this message)status
- the status of the messageprogressTable
- the progressTable of the sender- Since:
- jcms-4.1
-
AckMessage
public AckMessage(org.jdom.Element root)
Constructs a new AckMessage from an XML element- Parameters:
root
- the root element (i.e. the<ack>
tag)- Since:
- jcms-4.1
-
-
Method Detail
-
getStatus
public int getStatus()
- Returns:
- the status of this message
- Since:
- jcms-4.1
-
getProgressTable
public StampTable getProgressTable()
- Returns:
- the progressTable of this message
- Since:
- jcms-4.1
-
-