public class AsperaTransactionImpl extends Object implements AsperaTransaction
AsperaTransaction.AsperaTransactionState| Modifier and Type | Field and Description |
|---|---|
protected ProgressListenerChain |
listenerChain
Hook for adding/removing more progress listeners.
|
protected static InternalLogApi |
log |
| Constructor and Description |
|---|
AsperaTransactionImpl(String xferid,
String bucketName,
String key,
String fileName,
TransferProgress transferProgress,
ProgressListenerChain listenerChain) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProgressListener(ProgressListener listener)
Adds the specified progress listener to the list of listeners
receiving updates about this transfer's progress.
|
boolean |
cancel()
Cancel the AsperaTransaction transfer
|
protected void |
finalize() |
String |
getBucketName()
The name of the bucket where the object is being transfered from/to.
|
String |
getKey()
The key under which this object is stored in Amazon S3.
|
TransferProgress |
getProgress()
Returns progress information about this transfer.
|
ProgressListenerChain |
getProgressListenerChain() |
com.ibm.aspera.faspmanager2.ITransferListener |
getTransferListener() |
boolean |
isDone()
Returns whether or not the transfer is finished (i.e.
|
boolean |
onQueue()
Returns whether or not the transfer is queueing.
|
boolean |
pause()
Pause the AsperaTransaction transfer
|
boolean |
progress()
Returns whether or not the transfer is in a state of progress
|
void |
removeProgressListener(ProgressListener listener)
Removes the specified progress listener from the list of progress
listeners receiving updates about this transfer's progress.
|
boolean |
resume()
Resume the AsperaTransaction transfer
|
AsperaResult |
waitForCompletion() |
protected static final InternalLogApi log
protected final ProgressListenerChain listenerChain
public AsperaTransactionImpl(String xferid, String bucketName, String key, String fileName, TransferProgress transferProgress, ProgressListenerChain listenerChain)
public boolean pause()
AsperaTransferpause in interface AsperaTransferpublic boolean resume()
AsperaTransferresume in interface AsperaTransferpublic boolean cancel()
AsperaTransfercancel in interface AsperaTransferpublic boolean isDone()
AsperaTransferisDone in interface AsperaTransfertrue if this transfer is finished (i.e. completed successfully
or failed). Returns false if otherwise.public boolean progress()
AsperaTransferprogress in interface AsperaTransfertrue if this transfer is progressing.
Returns false if otherwise.public boolean onQueue()
AsperaTransferonQueue in interface AsperaTransfertrue if this transfer is queueing.
Returns false if otherwise.public String getBucketName()
AsperaTransfergetBucketName in interface AsperaTransferpublic String getKey()
AsperaTransfergetKey in interface AsperaTransferpublic AsperaResult waitForCompletion() throws AsperaTransferException, InterruptedException
waitForCompletion in interface AsperaTransactionAsperaTransferExceptionInterruptedExceptionpublic void addProgressListener(ProgressListener listener)
AsperaTransactionaddProgressListener in interface AsperaTransactionlistener - The progress listener to add.public void removeProgressListener(ProgressListener listener)
AsperaTransactionremoveProgressListener in interface AsperaTransactionlistener - The progress listener to remove.public ProgressListenerChain getProgressListenerChain()
getProgressListenerChain in interface AsperaTransactionpublic TransferProgress getProgress()
AsperaTransactiongetProgress in interface AsperaTransactionpublic com.ibm.aspera.faspmanager2.ITransferListener getTransferListener()
getTransferListener in interface AsperaTransactionCopyright © 2025. All rights reserved.