Class CMFileSyncEventRequestNewFiles


public class CMFileSyncEventRequestNewFiles extends CMFileSyncEvent
This class represents a CMFileSyncEvent with which the server requests the transmission of new files for the synchronization from the client.
  • Constructor Details

    • CMFileSyncEventRequestNewFiles

      public CMFileSyncEventRequestNewFiles()
    • CMFileSyncEventRequestNewFiles

      public CMFileSyncEventRequestNewFiles(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
    • getRequesterName

      public String getRequesterName()
      gets the requester (server) name
      Returns:
      requester (server) name
    • setRequesterName

      public void setRequesterName(String requesterName)
    • getNumRequestedFiles

      public int getNumRequestedFiles()
      gets the number of requested new files.
      Returns:
      number of requested new files
    • setNumRequestedFiles

      public void setNumRequestedFiles(int numRequestedFiles)
    • getRequestedFileList

      public List<Path> getRequestedFileList()
      gets the list of new file paths that will be transferred.
      Returns:
      a list of new file paths.
      The path is an absolute path of the file sender.
    • setRequestedFileList

      public void setRequestedFileList(List<Path> requestedFileList)