Package com.morpheusdata.core
Interface MorpheusFileCopyService
public interface MorpheusFileCopyService
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ServiceResponse>
copyToServer
(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength) Copy a file to the target server.io.reactivex.rxjava3.core.Single<ServiceResponse>
copyToServer
(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout) Copy a file to the target server.io.reactivex.rxjava3.core.Single<ServiceResponse>
copyToServer
(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Copy a file to the target server.io.reactivex.rxjava3.core.Single<ServiceResponse>
Expires AND deletes the temporary file content of a file copy urlio.reactivex.rxjava3.core.Single<ServiceResponse>
generateUrl
(String fileName, User user, InputStream sourceStream, Long contentLength) Create a url to copy a file to the target server.io.reactivex.rxjava3.core.Single<ServiceResponse>
generateUrl
(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout) Create a url to copy a file to the target server.io.reactivex.rxjava3.core.Single<ServiceResponse>
generateUrl
(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Create a url to copy a file to the target server.io.reactivex.rxjava3.core.Single<ServiceResponse>
generateUrl
(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand, String contentType) Create a url to copy a file to the target server.
-
Method Details
-
copyToServer
io.reactivex.rxjava3.core.Single<ServiceResponse> copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength) Copy a file to the target server.- Parameters:
server
- The target serverfileName
- name of the copied file for the file copy request URL.filePath
- path on the server, including the file name (/some/path/file.txt), to place the file copy.sourceStream
- sourceInputStream
to copy to the servercontentLength
- size of the file to be copied- Returns:
ServiceResponse
containing the success status of the copy operation
-
copyToServer
io.reactivex.rxjava3.core.Single<ServiceResponse> copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout) Copy a file to the target server.- Parameters:
server
- The target serverfileName
- name of the copied file for the file copy request URL.filePath
- path on the server, including the file name (/some/path/file.txt), to place the file copy.sourceStream
- sourceInputStream
to copy to the servercontentLength
- size of the file to be copiedtimeout
- max timeout to initialize the copy operation- Returns:
ServiceResponse
containing the success status of the copy operation
-
copyToServer
io.reactivex.rxjava3.core.Single<ServiceResponse> copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Copy a file to the target server.- Parameters:
server
- The target serverfileName
- name of the copied file for the file copy request URL.filePath
- path on the server, including the file name (/some/path/file.txt), to place the file copy.sourceStream
- sourceInputStream
to copy to the servercontentLength
- size of the file to be copiedtimeout
- max timeout to initialize the copy operationautoExpand
- automatically expand .tar.gz compressed files during upload- Returns:
ServiceResponse
containing the success status of the copy operation
-
generateUrl
io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand, String contentType) Create a url to copy a file to the target server.- Parameters:
fileName
- name of the copied file for the file copy request URL.sourceStream
- sourceInputStream
to copy to the servercontentLength
- size of the file to be copiedtimeout
- max timeout to initialize the copy operationautoExpand
- automatically expand .tar.gz compressed files during uploadcontentType
- override the application/octet-stream content type when serving the file- Returns:
ServiceResponse
containing the success status of the generate operation and data property containing the url
-
generateUrl
io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Create a url to copy a file to the target server.- Parameters:
fileName
- name of the copied file for the file copy request URL.sourceStream
- sourceInputStream
to copy to the servercontentLength
- size of the file to be copiedtimeout
- max timeout to initialize the copy operationautoExpand
- automatically expand .tar.gz compressed files during upload- Returns:
ServiceResponse
containing the success status of the generate operation and data property containing the url
-
generateUrl
io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout) Create a url to copy a file to the target server.- Parameters:
fileName
- name of the copied file for the file copy request URL.sourceStream
- sourceInputStream
to copy to the servercontentLength
- size of the file to be copiedtimeout
- max timeout to initialize the copy operation- Returns:
ServiceResponse
containing the success status of the generate operation and data property containing the url
-
generateUrl
io.reactivex.rxjava3.core.Single<ServiceResponse> generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength) Create a url to copy a file to the target server.- Parameters:
fileName
- name of the copied file for the file copy request URL.sourceStream
- sourceInputStream
to copy to the servercontentLength
- size of the file to be copied- Returns:
ServiceResponse
containing the success status of the generate operation and data property containing the url
-
deleteUrl
Expires AND deletes the temporary file content of a file copy url- Parameters:
fileCopyUrl
- the original URL submitted- Returns:
ServiceResponse
containing the success status of the copy operation
-