Package com.jalios.jcms.replica
Class ReplicaSummary
- java.lang.Object
-
- com.jalios.jcms.replica.ReplicaSummary
-
public class ReplicaSummary extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReplicaSummary()
ReplicaSummary(JSyncReplica replica)
ReplicaSummary(ReplicaInfo replicaInfo)
ReplicaSummary(java.lang.String urid, java.lang.String url, java.util.Date joinDate, StampTable progressTable, boolean enabled, java.util.Date lastUpdateDate, java.util.Date lastAckDate, java.util.Map<java.lang.String,ReplicaInfo> replicaMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getJoinDate()
java.util.Date
getLastAckDate()
java.util.Date
getLastUpdateDate()
StampTable
getProgressTable()
java.util.Map<java.lang.String,ReplicaInfo>
getReplicaMap()
java.lang.String
getUrid()
java.lang.String
getUrl()
boolean
isEnabled()
boolean
isLeader()
boolean
isOutOfDate(StampTable compareTable)
boolean
isOutOfDate(StampTable compareTable, boolean skipMe)
void
setEnabled(boolean enabled)
void
setJoinDate(java.util.Date v)
void
setLastAckDate(java.util.Date lastAckDate)
void
setLastUpdateDate(java.util.Date lastUpdateDate)
void
setLeader(boolean isLeader)
void
setProgressTable(StampTable progressTable)
void
setReplicaMap(java.util.Map<java.lang.String,ReplicaInfo> replicaMap)
void
setUrid(java.lang.String v)
void
setUrl(java.lang.String v)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ReplicaSummary
public ReplicaSummary(java.lang.String urid, java.lang.String url, java.util.Date joinDate, StampTable progressTable, boolean enabled, java.util.Date lastUpdateDate, java.util.Date lastAckDate, java.util.Map<java.lang.String,ReplicaInfo> replicaMap)
-
ReplicaSummary
public ReplicaSummary()
-
ReplicaSummary
public ReplicaSummary(ReplicaInfo replicaInfo)
-
ReplicaSummary
public ReplicaSummary(JSyncReplica replica)
-
-
Method Detail
-
isOutOfDate
public boolean isOutOfDate(StampTable compareTable)
-
isOutOfDate
public boolean isOutOfDate(StampTable compareTable, boolean skipMe)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getUrid
public java.lang.String getUrid()
-
setUrid
public void setUrid(java.lang.String v)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String v)
-
getJoinDate
public java.util.Date getJoinDate()
-
setJoinDate
public void setJoinDate(java.util.Date v)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getProgressTable
public StampTable getProgressTable()
-
setProgressTable
public void setProgressTable(StampTable progressTable)
-
getLastUpdateDate
public java.util.Date getLastUpdateDate()
-
setLastUpdateDate
public void setLastUpdateDate(java.util.Date lastUpdateDate)
-
getLastAckDate
public java.util.Date getLastAckDate()
-
setLastAckDate
public void setLastAckDate(java.util.Date lastAckDate)
-
isLeader
public boolean isLeader()
-
setLeader
public void setLeader(boolean isLeader)
-
getReplicaMap
public java.util.Map<java.lang.String,ReplicaInfo> getReplicaMap()
-
setReplicaMap
public void setReplicaMap(java.util.Map<java.lang.String,ReplicaInfo> replicaMap)
-
-