com.jalios.jstore.jsync
Class ReplicaInfo

java.lang.Object
  extended by com.jalios.jstore.jsync.ReplicaInfo

public class ReplicaInfo
extends Object

This class contains info about a replica

Version:
$Revision: 14756 $
Author:
Olivier Dedieu

Field Summary
protected  boolean isEnabled
           
protected  Date joinDate
           
protected  Date lastAckDate
           
protected  Date lastUpdateDate
           
protected  StampTable progressTable
           
static String REVISION
           
protected  String urid
           
protected  String url
           
 
Method Summary
 Date getJoinDate()
          Get the value of joinDate.
 Date getLastAckDate()
          Get the value of lastAckDate.
 Date getLastUpdateDate()
          Get the value of lastUpdateDate.
 StampTable getProgressTable()
          Get the value of progressTable.
 String getUrid()
          Get the value of urid.
 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(Date v)
          Set the value of joinDate.
 void setLastAckDate(Date v)
          Set the value of lastAckDate.
 void setLastUpdateDate(Date v)
          Set the value of lastUpdateDate.
 void setProgressTable(StampTable v)
          Set the value of progressTable.
 void setUrid(String v)
          Set the value of urid.
 void setUrl(String v)
          Set the value of url.
 String 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

urid

protected String urid

progressTable

protected StampTable progressTable

url

protected String url

isEnabled

protected boolean isEnabled

joinDate

protected Date joinDate

lastUpdateDate

protected Date lastUpdateDate

lastAckDate

protected Date lastAckDate
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 comparison
skipMe - 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 String toString()
Overrides:
toString in class Object

getUrid

public String getUrid()
Get the value of urid.

Returns:
Value of urid.
Since:
jcms-4.1

setUrid

public void setUrid(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 String getUrl()
Get the value of url.

Returns:
Value of url.
Since:
jcms-4.1

setUrl

public void setUrl(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 Date getJoinDate()
Get the value of joinDate.

Returns:
Value of joinDate.

setJoinDate

public void setJoinDate(Date v)
Set the value of joinDate.

Parameters:
v - Value to assign to joinDate.
Since:
jcms-4.1

getLastUpdateDate

public Date getLastUpdateDate()
Get the value of lastUpdateDate.

Returns:
Value of lastUpdateDate.

setLastUpdateDate

public void setLastUpdateDate(Date v)
Set the value of lastUpdateDate.

Parameters:
v - Value to assign to lastUpdateDate.
Since:
jcms-4.1

getLastAckDate

public Date getLastAckDate()
Get the value of lastAckDate.

Returns:
Value of lastAckDate.
Since:
jcms-4.1

setLastAckDate

public void setLastAckDate(Date v)
Set the value of lastAckDate.

Parameters:
v - Value to assign to lastAckDate.
Since:
jcms-4.1


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