Class CMFileSyncEventUpdateExistingFile


public class CMFileSyncEventUpdateExistingFile extends CMFileSyncEvent
This class represents a CMFileSyncEvent with which the client notifies the server of how to update of an existing file for synchronization.
  • Constructor Details

    • CMFileSyncEventUpdateExistingFile

      public CMFileSyncEventUpdateExistingFile()
    • CMFileSyncEventUpdateExistingFile

      public CMFileSyncEventUpdateExistingFile(ByteBuffer msg)
  • Method Details

    • getByteNum

      protected int getByteNum()
      Overrides:
      getByteNum in class CMEvent
    • marshallBody

      protected void marshallBody()
      Specified by:
      marshallBody in class CMEvent
    • unmarshallBody

      protected void unmarshallBody(ByteBuffer msg)
      Specified by:
      unmarshallBody in class CMEvent
    • toString

      public String toString()
      Overrides:
      toString in class CMEvent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CMEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getFileEntryIndex

      public int getFileEntryIndex()
      gets the index of the target file entry.
      Returns:
      index of the target file entry
    • setFileEntryIndex

      public void setFileEntryIndex(int fileEntryIndex)
    • getNumNonMatchBytes

      public int getNumNonMatchBytes()
      gets the number of updated bytes that should be overwritten to the file.
      Returns:
      number of updated bytes
    • setNumNonMatchBytes

      public void setNumNonMatchBytes(int numNonMatchBytes)
    • getNonMatchBytes

      public byte[] getNonMatchBytes()
      gets the array of updated bytes that should be overwritten to the file.
      Returns:
      the array of updated bytes
    • setNonMatchBytes

      public void setNonMatchBytes(byte[] nonMatchBytes)
    • getMatchBlockIndex

      public int getMatchBlockIndex()
      gets the index of a matching block that is not modified.
      Returns:
      matching block index
    • setMatchBlockIndex

      public void setMatchBlockIndex(int matchBlockIndex)