com.jalios.jstore.jsync
Class AckMessage

java.lang.Object
  extended by com.jalios.jstore.jsync.Message
      extended by 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>
 

Version:
$Revision: 27753 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
AckMessage(org.jdom.Element root)
          Constructs a new AckMessage from an XML element
AckMessage(String urid, int status, StampTable progressTable)
          Constructs a new AckMessage
 
Method Summary
 StampTable getProgressTable()
           
 int getStatus()
           
 String toXml()
           
 
Methods inherited from class com.jalios.jstore.jsync.Message
getUrid, getXmlFooter, getXmlHeader, parse, stampToXml, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

AckMessage

public AckMessage(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 message
progressTable - 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

toXml

public String toXml()
Specified by:
toXml in class Message
Returns:
an XML representation of this message
Since:
jcms-4.1


Copyright © 2001-2010 Jalios SA. All Rights Reserved.