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()
AsperaTransfer
pause
in interface AsperaTransfer
public boolean resume()
AsperaTransfer
resume
in interface AsperaTransfer
public boolean cancel()
AsperaTransfer
cancel
in interface AsperaTransfer
public boolean isDone()
AsperaTransfer
isDone
in interface AsperaTransfer
true
if this transfer is finished (i.e. completed successfully
or failed). Returns false
if otherwise.public boolean progress()
AsperaTransfer
progress
in interface AsperaTransfer
true
if this transfer is progressing.
Returns false
if otherwise.public boolean onQueue()
AsperaTransfer
onQueue
in interface AsperaTransfer
true
if this transfer is queueing.
Returns false
if otherwise.public String getBucketName()
AsperaTransfer
getBucketName
in interface AsperaTransfer
public String getKey()
AsperaTransfer
getKey
in interface AsperaTransfer
public AsperaResult waitForCompletion() throws AsperaTransferException, InterruptedException
waitForCompletion
in interface AsperaTransaction
AsperaTransferException
InterruptedException
public void addProgressListener(ProgressListener listener)
AsperaTransaction
addProgressListener
in interface AsperaTransaction
listener
- The progress listener to add.public void removeProgressListener(ProgressListener listener)
AsperaTransaction
removeProgressListener
in interface AsperaTransaction
listener
- The progress listener to remove.public ProgressListenerChain getProgressListenerChain()
getProgressListenerChain
in interface AsperaTransaction
public TransferProgress getProgress()
AsperaTransaction
getProgress
in interface AsperaTransaction
public com.ibm.aspera.faspmanager2.ITransferListener getTransferListener()
getTransferListener
in interface AsperaTransaction
Copyright © 2024. All rights reserved.