public class CIPostJobImpl extends AbstractTransfer implements CIPostJob
Transfer.TransferStatelistenerChain, monitor, state, stateChangeListeners| Constructor and Description |
|---|
CIPostJobImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
COSObject cosObject,
TransferStateChangeListener listener,
GetObjectRequest getObjectRequest,
File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Cancels this download.
|
void |
abortWithoutNotifyingStateChangeListener()
Cancels this download, but skip notifying the state change listeners.
|
String |
getBucketName()
The name of the bucket where the object is being downloaded from.
|
String |
getKey()
The key under which this object was stored in Qcloud COS.
|
ObjectMetadata |
getObjectMetadata()
Returns the ObjectMetadata for the object being downloaded.
|
CIServiceRequest |
getRequest() |
void |
setRequest(CIServiceRequest request) |
void |
setState(Transfer.TransferState state)
This method is also responsible for firing COMPLETED signal to the
listeners.
|
addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, unwrapExecutionException, waitForCompletion, waitForExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, waitForExceptionpublic CIPostJobImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, COSObject cosObject, TransferStateChangeListener listener, GetObjectRequest getObjectRequest, File file)
public ObjectMetadata getObjectMetadata()
public String getBucketName()
public String getKey()
public void abort()
throws IOException
abort in interface CIPostJobIOExceptionpublic void abortWithoutNotifyingStateChangeListener()
throws IOException
IOExceptionpublic void setState(Transfer.TransferState state)
setState in class AbstractTransferpublic CIServiceRequest getRequest()
public void setRequest(CIServiceRequest request)
Copyright © 2023. All rights reserved.