Package com.jalios.jstore.jsync
Class ReplicaInfo
- java.lang.Object
-
- com.jalios.jstore.jsync.ReplicaInfo
-
- All Implemented Interfaces:
JaliosConstants
public class ReplicaInfo extends java.lang.Object implements JaliosConstants
This class contains info about a replica- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isEnabled
protected java.util.Date
joinDate
protected java.util.Date
lastAckDate
protected java.util.Date
lastUpdateDate
protected StampTable
progressTable
static java.lang.String
RI_ELT_NAME
static java.lang.String
RI_IS_ENABLED
static java.lang.String
RI_JOIN_DATE
static java.lang.String
RI_LAST_ACK_DATE
static java.lang.String
RI_LAST_UPDATE_DATE
static java.lang.String
RI_URID
static java.lang.String
RI_URL
protected java.lang.String
urid
protected java.lang.String
url
-
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getJoinDate()
Get the value of joinDate.java.util.Date
getLastAckDate()
Get the value of lastAckDate.java.util.Date
getLastUpdateDate()
Get the value of lastUpdateDate.StampTable
getProgressTable()
Get the value of progressTable.java.lang.String
getUrid()
Get the value of urid.java.lang.String
getUrl()
Get the value of url.boolean
isEnabled()
Get the value of isEnabled.boolean
isOutOfDate(StampTable compareTable)
Check if this replica is out of date.boolean
isOutOfDate(StampTable compareTable, boolean skipMe)
Check if this replica is out of date.void
setEnabled(boolean v)
Set the value of isEnabled.void
setJoinDate(java.util.Date v)
Set the value of joinDate.void
setLastAckDate(java.util.Date v)
Set the value of lastAckDate.void
setLastUpdateDate(java.util.Date v)
Set the value of lastUpdateDate.void
setProgressTable(StampTable v)
Set the value of progressTable.void
setUrid(java.lang.String v)
Set the value of urid.void
setUrl(java.lang.String v)
Set the value of url.java.lang.String
toString()
java.lang.String
toXml()
Returns the XML representation for this workflow.java.lang.String
toXml(boolean includeXmlHeader)
-
-
-
Field Detail
-
urid
protected java.lang.String urid
-
progressTable
protected StampTable progressTable
-
url
protected java.lang.String url
-
isEnabled
protected boolean isEnabled
-
joinDate
protected java.util.Date joinDate
-
lastUpdateDate
protected java.util.Date lastUpdateDate
-
lastAckDate
protected java.util.Date lastAckDate
-
RI_ELT_NAME
public static final java.lang.String RI_ELT_NAME
- See Also:
- Constant Field Values
-
RI_URID
public static final java.lang.String RI_URID
- See Also:
- Constant Field Values
-
RI_URL
public static final java.lang.String RI_URL
- See Also:
- Constant Field Values
-
RI_IS_ENABLED
public static final java.lang.String RI_IS_ENABLED
- See Also:
- Constant Field Values
-
RI_JOIN_DATE
public static final java.lang.String RI_JOIN_DATE
- See Also:
- Constant Field Values
-
RI_LAST_UPDATE_DATE
public static final java.lang.String RI_LAST_UPDATE_DATE
- See Also:
- Constant Field Values
-
RI_LAST_ACK_DATE
public static final java.lang.String RI_LAST_ACK_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isOutOfDate
public boolean isOutOfDate(StampTable compareTable)
Check if this replica is out of date. I.E. if its progress table is lesser than the given one.- Parameters:
compareTable
- the progress table used for comparison- Returns:
- true if the progress table is lesser than the compareTable
- Since:
- jcms-4.1
- See Also:
isOutOfDate(StampTable,boolean)
-
isOutOfDate
public boolean isOutOfDate(StampTable compareTable, boolean skipMe)
Check if this replica is out of date. I.E. if its progress table is lesser than the given one.- Parameters:
compareTable
- the progress table used for comparisonskipMe
- if true do not compare stamp of this replica- Returns:
- true if the progress table is lesser than the compareTable
- Since:
- jcms-4.1
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getUrid
public java.lang.String getUrid()
Get the value of urid.- Returns:
- Value of urid.
- Since:
- jcms-4.1
-
setUrid
public void setUrid(java.lang.String v)
Set the value of urid.- Parameters:
v
- Value to assign to urid.- Since:
- jcms-4.1
-
getProgressTable
public StampTable getProgressTable()
Get the value of progressTable.- Returns:
- Value of progressTable.
- Since:
- jcms-4.1
-
setProgressTable
public void setProgressTable(StampTable v)
Set the value of progressTable.- Parameters:
v
- Value to assign to progressTable.- Since:
- jcms-4.1
-
getUrl
public java.lang.String getUrl()
Get the value of url.- Returns:
- Value of url.
- Since:
- jcms-4.1
-
setUrl
public void setUrl(java.lang.String v)
Set the value of url.- Parameters:
v
- Value to assign to url.- Since:
- jcms-4.1
-
isEnabled
public boolean isEnabled()
Get the value of isEnabled.- Returns:
- Value of isEnabled.
- Since:
- jcms-4.1
-
setEnabled
public void setEnabled(boolean v)
Set the value of isEnabled.- Parameters:
v
- Value to assign to isEnabled.- Since:
- jcms-4.1
-
getJoinDate
public java.util.Date getJoinDate()
Get the value of joinDate.- Returns:
- Value of joinDate.
-
setJoinDate
public void setJoinDate(java.util.Date v)
Set the value of joinDate.- Parameters:
v
- Value to assign to joinDate.- Since:
- jcms-4.1
-
getLastUpdateDate
public java.util.Date getLastUpdateDate()
Get the value of lastUpdateDate.- Returns:
- Value of lastUpdateDate.
-
setLastUpdateDate
public void setLastUpdateDate(java.util.Date v)
Set the value of lastUpdateDate.- Parameters:
v
- Value to assign to lastUpdateDate.- Since:
- jcms-4.1
-
getLastAckDate
public java.util.Date getLastAckDate()
Get the value of lastAckDate.- Returns:
- Value of lastAckDate.
- Since:
- jcms-4.1
-
setLastAckDate
public void setLastAckDate(java.util.Date v)
Set the value of lastAckDate.- Parameters:
v
- Value to assign to lastAckDate.- Since:
- jcms-4.1
-
toXml
public java.lang.String toXml()
Returns the XML representation for this workflow.- Returns:
- the XML representation for this workflow.
- Since:
- jcms-5.7.0
-
toXml
public java.lang.String toXml(boolean includeXmlHeader)
-
-