Package com.jalios.jstore.jsync
Class JoinMessage
- java.lang.Object
-
- com.jalios.jstore.jsync.Message
-
- com.jalios.jstore.jsync.JoinMessage
-
public class JoinMessage extends Message
This class represents a JSync JoinMessage. Example of JoinMessage<?xml version='1.0' encoding='UTF-8'?> <jsync version='1.0'> <join urid='r1' url='http://host/r1' isLogDir='true' prefixLineCount='3579'> <pt> <stamp urid='r1' time='1234' /> <stamp urid='r2' time='2345' /> <stamp urid='r3' time='3456' /> </pt> </join> </jsync>
- Author:
- Olivier Dedieu
-
-
Constructor Summary
Constructors Constructor Description JoinMessage(java.lang.String urid, java.lang.String url, StampTable progressTable)
Constructs a new JoinMessageJoinMessage(java.lang.String urid, java.lang.String url, StampTable progressTable, long prefixLineCount)
Constructs a new JoinMessageJoinMessage(org.jdom.Element root)
Constructs a new JoinMessage from an XML element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPrefixLineCount()
StampTable
getProgressTable()
java.lang.String
getUrl()
boolean
isLogDir()
java.lang.String
toXml()
-
Methods inherited from class com.jalios.jstore.jsync.Message
getTime, getUrid, getXmlFooter, getXmlHeader, parse, stampToXml, toString
-
-
-
-
Constructor Detail
-
JoinMessage
public JoinMessage(java.lang.String urid, java.lang.String url, StampTable progressTable)
Constructs a new JoinMessage- Parameters:
urid
- the urid of the senderurl
- the url of the senderprogressTable
- the progressTable of the sender- Since:
- jcms-4.1
-
JoinMessage
public JoinMessage(java.lang.String urid, java.lang.String url, StampTable progressTable, long prefixLineCount)
Constructs a new JoinMessage- Parameters:
urid
- the urid of the senderurl
- the url of the senderprogressTable
- the progressTable of the senderprefixLineCount
- the line count of all the prefix files- Since:
- jcms-10.0.8
-
JoinMessage
public JoinMessage(org.jdom.Element root)
Constructs a new JoinMessage from an XML element- Parameters:
root
- the root element (i.e. the<join>
tag)- Since:
- jcms-4.1
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
- Returns:
- the url of the sender
- Since:
- jcms-4.1
-
getProgressTable
public StampTable getProgressTable()
- Returns:
- the progressTable of this message
- Since:
- jcms-4.1
-
isLogDir
public boolean isLogDir()
-
getPrefixLineCount
public long getPrefixLineCount()
-
-