Class CMFileSyncEventFileBlockChecksum


public class CMFileSyncEventFileBlockChecksum extends CMFileSyncEvent
This class represents a CMFileSyncEvent with which the server sends the client an array of block checksums of a file.
  • Constructor Details

    • CMFileSyncEventFileBlockChecksum

      public CMFileSyncEventFileBlockChecksum()
    • CMFileSyncEventFileBlockChecksum

      public CMFileSyncEventFileBlockChecksum(ByteBuffer msg)
  • Method Details

    • getByteNum

      public 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 an index of a file entry for synchronization.
      Returns:
      an index of a file entry for synchronization
    • setFileEntryIndex

      public void setFileEntryIndex(int fileEntryIndex)
    • getTotalNumBlocks

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

      public void setTotalNumBlocks(int totalNumBlocks)
    • getStartBlockIndex

      public int getStartBlockIndex()
      gets the index of a starting file block in this event.
      Returns:
      an index of a starting file block
    • setStartBlockIndex

      public void setStartBlockIndex(int startBlockIndex)
    • getNumCurrentBlocks

      public int getNumCurrentBlocks()
      gets the number of file blocks in this event.
      Returns:
      number of file blocks in this event.
    • setNumCurrentBlocks

      public void setNumCurrentBlocks(int numCurrentBlocks)
    • getChecksumArray

      public CMFileSyncBlockChecksum[] getChecksumArray()
      gets the array of file block checksum in this event.
      Returns:
      an array of file block checksum
    • setChecksumArray

      public void setChecksumArray(CMFileSyncBlockChecksum[] checksumArray)