Package org.kendar.sync.lib.protocol
Class FileSyncMessage
java.lang.Object
org.kendar.sync.lib.protocol.Message
org.kendar.sync.lib.protocol.FileSyncMessage
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Messagedeserialize(ByteContainer buffer) Gets the message type for this message.intintprotected voidserialize(ByteContainer buffer) voidsetChanges(List<LogEntry> changes) voidsetLastlyUpdateTime(Instant lastlyUpdateTime) voidsetPartNumber(int partNumber) voidsetTotalParts(int totalParts) Methods inherited from class org.kendar.sync.lib.protocol.Message
deserialize, deserialize, getConnectionId, getPacketId, getSessionId, initialize, registerMessageType, serialize
-
Constructor Details
-
FileSyncMessage
public FileSyncMessage()
-
-
Method Details
-
getMessageType
Description copied from class:MessageGets the message type for this message.- Specified by:
getMessageTypein classMessage- Returns:
- The message type
-
deserialize
- Specified by:
deserializein classMessage
-
serialize
-
getPartNumber
public int getPartNumber() -
setPartNumber
public void setPartNumber(int partNumber) -
getTotalParts
public int getTotalParts() -
setTotalParts
public void setTotalParts(int totalParts) -
getChanges
-
setChanges
-
getLastlyUpdateTime
-
setLastlyUpdateTime
-