Class SyncEndMessage

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

public class SyncEndMessage extends Message
Message sent by the client to the server to signal the end of a synchronization session.
  • Constructor Details

    • SyncEndMessage

      public SyncEndMessage()
    • SyncEndMessage

      public SyncEndMessage(boolean isBackup, int filesTransferred, int filesDeleted)
      Creates a new sync end message.
      Parameters:
      isBackup - Whether this was a backup operation (true) or restore operation (false)
      filesTransferred - The number of files transferred
      filesDeleted - The number of files deleted
  • 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
    • isBackup

      public boolean isBackup()
    • setBackup

      public void setBackup(boolean backup)
    • getFilesTransferred

      public int getFilesTransferred()
    • setFilesTransferred

      public void setFilesTransferred(int filesTransferred)
    • getFilesDeleted

      public int getFilesDeleted()
    • setFilesDeleted

      public void setFilesDeleted(int filesDeleted)