Class CSTRequestF1
- java.lang.Object
-
- bftsmart.statemanagement.durability.CSTRequest
-
- bftsmart.statemanagement.durability.CSTRequestF1
-
- All Implemented Interfaces:
java.io.Serializable
public class CSTRequestF1 extends CSTRequest
This class is used to define the roles in the Collaborative State Transfer protocol. The recovering replica uses this class to define which replicas should send the checkpoint, log of operations lower and higher portions- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class bftsmart.statemanagement.durability.CSTRequest
checkpointReplica, cid
-
-
Constructor Summary
Constructors Constructor Description CSTRequestF1(int cid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineReplicas(int[] otherReplicas, int globalCkpPeriod, int me)
Define and set the attributes of this CST Request according to the algorithm described in the durability state transfer paper.java.net.InetSocketAddress
getAddress()
int
getLogLower()
int
getLogLowerSize()
int
getLogUpper()
int
getLogUpperSize()
void
setAddress(java.net.InetSocketAddress address)
void
setLogLower(int logLower)
void
setLogUpper(int logUpper)
-
Methods inherited from class bftsmart.statemanagement.durability.CSTRequest
getCheckpointReplica, getCID
-
-
-
-
Method Detail
-
getLogUpper
public int getLogUpper()
-
setLogUpper
public void setLogUpper(int logUpper)
-
getLogLower
public int getLogLower()
-
setLogLower
public void setLogLower(int logLower)
-
getLogUpperSize
public int getLogUpperSize()
-
defineReplicas
public void defineReplicas(int[] otherReplicas, int globalCkpPeriod, int me)
Define and set the attributes of this CST Request according to the algorithm described in the durability state transfer paper. In summary, the algorithm defines that, in a situation with three seeders, the seeder in the middle (the one that took the checkpoint just after the oldest) must send the checkpoint. The oldest must send the log of the period between the middle checkpoint until the checkpoint of the newest replica. The newest replica must send the log from the begging to the CID requested.- Specified by:
defineReplicas
in classCSTRequest
-
getAddress
public java.net.InetSocketAddress getAddress()
-
setAddress
public void setAddress(java.net.InetSocketAddress address)
-
getLogLowerSize
public int getLogLowerSize()
-
-