java.lang.Object
org.yamcs.client.filetransfer.FileTransferClient
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFileTransferClient(YamcsClient baseClient, String instance, String serviceName) -
Method Summary
Modifier and TypeMethodDescriptioncancel(long id) Cancel an on-going file transferCompletableFuture<org.yamcs.protobuf.TransferInfo>Initiate file downloadCompletableFuture<org.yamcs.protobuf.TransferInfo>getTransfer(long id) CompletableFuture<List<org.yamcs.protobuf.TransferInfo>>List the on-going file transferspause(long id) Pause an on-going file transferresume(long id) Resume an on-going file transferCompletableFuture<org.yamcs.protobuf.TransferInfo>upload(ObjectId source, String remotePath, FileTransferClient.UploadOptions.UploadOption... options) Initiate file uploadCompletableFuture<org.yamcs.protobuf.TransferInfo>upload(ObjectId source, FileTransferClient.UploadOptions.UploadOption... options)
-
Constructor Details
-
FileTransferClient
-
-
Method Details
-
getInstance
-
listTransfers
List the on-going file transfers- Returns:
-
getTransfer
-
upload
public CompletableFuture<org.yamcs.protobuf.TransferInfo> upload(ObjectId source, FileTransferClient.UploadOptions.UploadOption... options) -
upload
public CompletableFuture<org.yamcs.protobuf.TransferInfo> upload(ObjectId source, String remotePath, FileTransferClient.UploadOptions.UploadOption... options) Initiate file upload -
download
public CompletableFuture<org.yamcs.protobuf.TransferInfo> download(String remotePath, ObjectId target) Initiate file download -
pause
Pause an on-going file transfer -
resume
Resume an on-going file transfer -
cancel
Cancel an on-going file transfer
-