Class CSTRequest

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CSTRequestF1, CSTRequestFGT1

    public abstract class CSTRequest
    extends java.lang.Object
    implements java.io.Serializable
    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 opperations lower and higher portions
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int checkpointReplica
      id of the replica responsible for sending the checkpoint;
      protected int cid  
    • Constructor Summary

      Constructors 
      Constructor Description
      CSTRequest​(int cid)  
    • Field Detail

      • cid

        protected int cid
      • checkpointReplica

        protected int checkpointReplica
        id of the replica responsible for sending the checkpoint;
    • Constructor Detail

      • CSTRequest

        public CSTRequest​(int cid)
    • Method Detail

      • getCID

        public int getCID()
      • getCheckpointReplica

        public int getCheckpointReplica()
      • defineReplicas

        public abstract void defineReplicas​(int[] processes,
                                            int globalCkpPeriod,
                                            int replicaId)