Interface FileJMSService
public interface FileJMSService
Service interface for file operations via JMS
Copyright 2023 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadFile(String pathOnServer, File targetFile, Duration maxWaitTime) Download a fileuploadFile(File file, Duration maxWaitTime) Upload a file
-
Method Details
-
downloadFile
Download a file- Parameters:
pathOnServer- the fully qualified path of the file on the remote systemtargetFile- the local target filemaxWaitTime- the maximum time to wait for the response. If null, the timeout never expires!- Throws:
IOException- if the download operation has failed
-
uploadFile
Upload a file- Parameters:
file- the local file to be uploadedmaxWaitTime- the maximum time to wait for the response. If null, the timeout never expires!- Returns:
- the fully qualified path of the file created on the server
- Throws:
RemoteOperationException- if the upload operation has failedFileNotFoundException- if the specified local file could not be found
-