Class CMFileSyncEventStartFileBlockChecksum


public class CMFileSyncEventStartFileBlockChecksum extends CMFileSyncEvent
This class represents a CMFileSyncEvent with which the server notifies the client of the start of sending block checksums of a file.
  • Constructor Details

    • CMFileSyncEventStartFileBlockChecksum

      public CMFileSyncEventStartFileBlockChecksum()
    • CMFileSyncEventStartFileBlockChecksum

      public CMFileSyncEventStartFileBlockChecksum(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:
      file entry index
    • setFileEntryIndex

      public void setFileEntryIndex(int fileEntryIndex)
    • getTotalNumBlocks

      public int getTotalNumBlocks()
      gets the total number of target file blocks.
      Returns:
      total number of blocks of the file
    • setTotalNumBlocks

      public void setTotalNumBlocks(int totalNumBlocks)
    • getBlockSize

      public int getBlockSize()
      gets the block size of the target file.
      Returns:
      block size of the target file
    • setBlockSize

      public void setBlockSize(int blockSize)