Class FileSyncMessage

java.lang.Object
org.kendar.sync.lib.protocol.Message
org.kendar.sync.lib.protocol.FileSyncMessage

public class FileSyncMessage extends Message
Message sent by the client to the server with a list of files in the source directory. Used during both backup and restore operations.
  • Constructor Details

    • FileSyncMessage

      public FileSyncMessage()
  • Method Details

    • getMessageType

      public MessageType getMessageType()
      Description copied from class: Message
      Gets the message type for this message.
      Specified by:
      getMessageType in class Message
      Returns:
      The message type
    • deserialize

      protected Message deserialize(ByteContainer buffer)
      Specified by:
      deserialize in class Message
    • serialize

      protected void serialize(ByteContainer buffer)
      Specified by:
      serialize in class Message
    • getPartNumber

      public int getPartNumber()
    • setPartNumber

      public void setPartNumber(int partNumber)
    • getTotalParts

      public int getTotalParts()
    • setTotalParts

      public void setTotalParts(int totalParts)
    • getChanges

      public List<LogEntry> getChanges()
    • setChanges

      public void setChanges(List<LogEntry> changes)
    • getLastlyUpdateTime

      public Instant getLastlyUpdateTime()
    • setLastlyUpdateTime

      public void setLastlyUpdateTime(Instant lastlyUpdateTime)