Class CMFileSyncEventStartFileBlockChecksumAck


public class CMFileSyncEventStartFileBlockChecksumAck extends CMFileSyncEvent
This class represents a CMFileSyncEvent with which the client acknowledges the reception of the start of sending block checksums of a file from the server.
  • Constructor Details

    • CMFileSyncEventStartFileBlockChecksumAck

      public CMFileSyncEventStartFileBlockChecksumAck()
    • CMFileSyncEventStartFileBlockChecksumAck

      public CMFileSyncEventStartFileBlockChecksumAck(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 target file entry
      Returns:
      the index of target file entry
    • setFileEntryIndex

      public void setFileEntryIndex(int fileEntryIndex)
    • getTotalNumBlocks

      public int getTotalNumBlocks()
      gets the total number of blocks of the target file.
      Returns:
      total number of target file blocks
    • 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)
    • getReturnCode

      public int getReturnCode()
      gets the return code.
      Returns:
      return code
      1 if successful; 0 otherwise.
    • setReturnCode

      public void setReturnCode(int returnCode)