程序包 | 说明 |
---|---|
com.sinacloud.scs.services.scs | |
com.sinacloud.scs.services.scs.model |
Classes modeling the various types represented by Amazon S3.
|
com.sinacloud.scs.services.scs.transfer |
Transfer management.
|
com.sinacloud.scs.services.scs.transfer.internal |
限定符和类型 | 方法和说明 |
---|---|
PutObjectResult |
SCS.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified SCS bucket.
|
PutObjectResult |
SCSClient.putObject(PutObjectRequest putObjectRequest) |
限定符和类型 | 方法和说明 |
---|---|
PutObjectRequest |
PutObjectRequest.withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new object.
|
PutObjectRequest |
PutObjectRequest.withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new
object to.
|
PutObjectRequest |
PutObjectRequest.withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new
object.
|
PutObjectRequest |
PutObjectRequest.withFile(File file)
Sets the file containing the data to be uploaded to Amazon S3.
|
PutObjectRequest |
PutObjectRequest.withGeneralProgressListener(ProgressListener generalProgressListener)
Sets the optional progress listener for receiving updates about object
upload status, and returns this updated object so that additional method
calls can be chained together.
|
PutObjectRequest |
PutObjectRequest.withInputStream(InputStream inputStream)
Sets the input stream containing the data to be uploaded to Amazon S3.
|
PutObjectRequest |
PutObjectRequest.withKey(String key)
Sets the key under which to store the new object.
|
PutObjectRequest |
PutObjectRequest.withMetadata(ObjectMetadata metadata)
Sets the optional metadata instructing Amazon S3 how to handle the
uploaded data (e.g. custom user metadata, hooks for specifying content
type, etc.).
|
PutObjectRequest |
PutObjectRequest.withProgressListener(ProgressListener progressListener)
已过时。
use
withGeneralProgressListener(ProgressListener) instead. |
PutObjectRequest |
PutObjectRequest.withRedirectLocation(String redirectLocation)
Sets the optional redirect location for the new object.Returns this
PutObjectRequest , enabling additional method calls to be chained
together. |
PutObjectRequest |
PutObjectRequest.withStorageClass(StorageClass storageClass)
Sets the optional Amazon S3 storage class to use when storing the new
object.
|
PutObjectRequest |
PutObjectRequest.withStorageClass(String storageClass)
Sets the optional Amazon S3 storage class to use when storing the new
object.
|
限定符和类型 | 方法和说明 |
---|---|
Upload |
TransferManager.upload(PutObjectRequest putObjectRequest)
Schedules a new transfer to upload data to Amazon S3.
|
限定符和类型 | 方法和说明 |
---|---|
static long |
TransferManagerUtils.calculateOptimalPartSize(PutObjectRequest putObjectRequest,
TransferManagerConfiguration configuration)
Returns the optimal part size, in bytes, for each individual part upload
in a multipart upload.
|
static long |
TransferManagerUtils.getContentLength(PutObjectRequest putObjectRequest)
Returns the size of the data in this request, otherwise -1 if the content
length is unknown.
|
static File |
TransferManagerUtils.getRequestFile(PutObjectRequest putObjectRequest)
Convenience method for getting the file specified in a request.
|
static boolean |
TransferManagerUtils.isUploadParallelizable(PutObjectRequest putObjectRequest,
boolean isUsingEncryption)
Returns true if the specified upload request can use parallel part
uploads for increased performance.
|
static boolean |
TransferManagerUtils.shouldUseMultipartUpload(PutObjectRequest putObjectRequest,
TransferManagerConfiguration configuration)
Returns true if the the specified request should be processed as a
multipart upload (instead of a single part upload).
|
构造器和说明 |
---|
UploadCallable(TransferManager transferManager,
ExecutorService threadPool,
UploadImpl upload,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain) |
UploadCallable(TransferManager transferManager,
ExecutorService threadPool,
UploadImpl upload,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain)
|
UploadMonitor(TransferManager manager,
UploadImpl transfer,
ExecutorService threadPool,
UploadCallable multipartUploadCallable,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain)
Constructs a new upload watcher, which immediately submits itself to the
thread pool.
|
UploadMonitor(TransferManager manager,
UploadImpl transfer,
ExecutorService threadPool,
UploadCallable multipartUploadCallable,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain)
|
UploadPartRequestFactory(PutObjectRequest putObjectRequest,
String uploadId,
long optimalPartSize) |
Copyright © 2016. All rights reserved.