public class JSyncPreviousReplicaManager extends java.lang.Object implements JSyncConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
SC_BAD_ADDRESS, SC_BAD_LEADER, SC_BAD_MESSAGE, SC_DISCONNECTED, SC_INTERNAL_SERVER_ERROR, SC_JOIN_REJECTED, SC_LEADER_CANNOT_JOIN, SC_NO_ACK, SC_NO_SEND, SC_OK, SC_UNKNOWN, SC_UNKNOWN_URID, SC_URID_ALREADY_ADDED, STATUS_DISCONNECTED, STATUS_LEADER, STATUS_LONE, STATUS_MEMBER, STATUS_SUBLEADER
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
Modifier and Type | Method and Description |
---|---|
static void |
addReplica(ReplicaInfo replica,
java.util.Date joinDate) |
void |
addReplicaUrl(ReplicaInfo replica,
java.util.Date joinDate) |
static JSyncPreviousReplicaManager |
getInstance(boolean suggestJoin,
java.lang.String explicitReplicaList,
java.io.File previouslyConnectedReplicaFile,
JSyncReplica replica)
Returns the manager
|
java.util.Set<java.lang.String> |
getPreviousReplica()
Gives the list of url of replica previously connected (as far as we remember it)
and not connected now.
|
void |
setExplicitReplicaList(java.lang.String explicitReplicaList) |
void |
setPreviouslyConnectedReplicaFile(java.io.File previouslyConnectedReplicaFile) |
void |
setSuggestJoin(boolean suggestJoin) |
public static final java.lang.String REVISION
public static JSyncPreviousReplicaManager getInstance(boolean suggestJoin, java.lang.String explicitReplicaList, java.io.File previouslyConnectedReplicaFile, JSyncReplica replica)
public void setSuggestJoin(boolean suggestJoin)
public void setExplicitReplicaList(java.lang.String explicitReplicaList)
public void setPreviouslyConnectedReplicaFile(java.io.File previouslyConnectedReplicaFile)
public java.util.Set<java.lang.String> getPreviousReplica()
public static void addReplica(ReplicaInfo replica, java.util.Date joinDate)
public void addReplicaUrl(ReplicaInfo replica, java.util.Date joinDate)
Copyright © 2001-2018 Jalios SA. All Rights Reserved.