Class ReplicationStartSyncMessage

  • All Implemented Interfaces:
    Packet

    public class ReplicationStartSyncMessage
    extends PacketImpl
    This message may signal start or end of the replication synchronization.

    At start, it sends all fileIDs used in a given journal live server to the backup, so the backup can reserve those IDs.

    • Constructor Detail

      • ReplicationStartSyncMessage

        public ReplicationStartSyncMessage​(boolean beforeTwoEighteen)
      • ReplicationStartSyncMessage

        public ReplicationStartSyncMessage​(boolean beforeTwoEighteen,
                                           List<Long> filenames)
      • ReplicationStartSyncMessage

        public ReplicationStartSyncMessage​(boolean beforeTwoEighteen,
                                           String nodeID,
                                           long nodeDataVersion)
      • ReplicationStartSyncMessage

        public ReplicationStartSyncMessage​(boolean beforeTwoEighteen,
                                           String nodeID)
    • Method Detail

      • expectedEncodeSize

        public int expectedEncodeSize()
      • isServerToFailBack

        public boolean isServerToFailBack()
        Returns:
        whether the server is configured to allow for fail-back
      • isSynchronizationFinished

        public boolean isSynchronizationFinished()
        Returns:
        true if the live has finished synchronizing its data and the backup is therefore up-to-date, false otherwise.
      • getFileIds

        public long[] getFileIds()
      • getNodeID

        public String getNodeID()