Package | Description |
---|---|
com.netease.cloud.services.nos | |
com.netease.cloud.services.nos.model |
Classes modeling the various types represented by Nos.
|
com.netease.cloud.services.nos.transfer | |
com.netease.cloud.services.nos.transfer.internal |
Modifier and Type | Method and Description |
---|---|
PutObjectResult |
Nos.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified NOS bucket.
|
PutObjectResult |
NosClient.putObject(PutObjectRequest putObjectRequest) |
Modifier and Type | Method and Description |
---|---|
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 Nos.
|
PutObjectRequest |
PutObjectRequest.withInputStream(InputStream inputStream)
Sets the input stream containing the data to be uploaded to Nos.
|
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 Nos how to handle the uploaded
data (e.g.
|
PutObjectRequest |
PutObjectRequest.withProgressListener(ProgressListener progressListener)
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.withStorageClass(StorageClass storageClass)
Sets the optional Nos storage class to use when storing the new object.
|
PutObjectRequest |
PutObjectRequest.withStorageClass(String storageClass)
Sets the optional Nos storage class to use when storing the new object.
|
Modifier and Type | Method and Description |
---|---|
Upload |
TransferManager.upload(PutObjectRequest putObjectRequest)
Schedules a new transfer to upload data to Nos.
|
Modifier and Type | Method and Description |
---|---|
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)
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).
|
Constructor and Description |
---|
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.
|
UploadPartRequestFactory(PutObjectRequest putObjectRequest,
String uploadId,
long optimalPartSize) |
Copyright © 2017. All Rights Reserved.