Interface FileKAFKAService


public interface FileKAFKAService

Service interface for file operations via Kafka

Copyright 2021 (C) by Martin Ganserer

Version:
1.0.0
Author:
Martin Ganserer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    downloadFile(String pathOnServer, File targetFile)
    Download a file
    Upload a file
  • Method Details

    • downloadFile

      void downloadFile(String pathOnServer, File targetFile) throws IOException
      Download a file
      Parameters:
      pathOnServer - the fully qualified path of the file on the remote system
      targetFile - the local target file
      Throws:
      IOException - if the download operation has failed
    • uploadFile

      String uploadFile(File file) throws FileNotFoundException
      Upload a file
      Parameters:
      file - the local file to be uploaded
      Returns:
      the fully qualified path of the file created on the server
      Throws:
      RemoteOperationException - if the upload operation has failed
      FileNotFoundException - if the specified local file could not be found