类 PutObjectsRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractBulkRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.PutObjectsRequest
Request parameters for uploading objects in a batch.
-
字段概要
字段修饰符和类型字段说明private AccessControlListprivate longprivate longprivate Map<ExtensionObjectPermissionEnum, Set<String>> private Stringprivate UploadObjectsProgressListenerprivate longprivate Stringprivate SseCHeaderprivate SseKmsHeaderprivate Stringprivate intprivate long从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractBulkRequest
taskQueueNum, taskThreadNum从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
bucketName, httpMethod, userHeaders -
构造器概要
构造器构造器说明PutObjectsRequest(String bucketName, String folderPath) ConstructorPutObjectsRequest(String bucketName, List<String> filePaths) Constructor -
方法概要
修饰符和类型方法说明getAcl()Obtain the ACL of the object.Obtain all OBS extended permissions.longObtain the threshold size of a file for starting multipart upload.Obtain the callback object of an upload task.longObtain the callback threshold of the data transfer listener.getDomainIdsByGrantPermission(ExtensionObjectPermissionEnum extensionPermissionEnum) Obtain the list of user IDs with the specified OBS extension permissions.Obtain the set of relationships between users and OBS extension permissions.Obtain the list of local paths of the batch uploaded files.Obtain the local path of the uploaded folder.getGrantPermissionsByDomainId(String domainId) Obtain the OBS extension permissions of a specified user.longObtain the part size set for uploading an object.Obtain the specific folder to which the file is uploaded.Obtain SSE-C encryption headers of the object.Obtain SSE-KMS encryption headers of the object.Obtain the redirection address after a successfully responded request.intObtain the maximum number of threads used for processing upload tasks concurrently.longObtain the interval for updating the task progress information.Obtain the progress listener of the bulk task.voidgrantExtensionPermission(String domainId, ExtensionObjectPermissionEnum extensionPermissionEnum) Grant the OBS extension permissions to a user.voidsetAcl(AccessControlList acl) Set the object ACL.voidsetBigfileThreshold(long bigfileThreshold) Set the threshold size of a file for starting multipart upload.voidSet the callback object of an upload task.voidsetDetailProgressInterval(long detailProgressInterval) Set the callback threshold of the data transfer listener.voidsetExtensionPermissionMap(Map<ExtensionObjectPermissionEnum, Set<String>> extensionPermissionMap) Set the set of relationships between users and OBS extension permissions.voidsetPartSize(long partSize) Set the part size for uploading the object.voidSet the specific folder to which the file is uploaded.voidsetSseCHeader(SseCHeader sseCHeader) Set SSE-C encryption headers of the object.voidsetSseKmsHeader(SseKmsHeader sseKmsHeader) Set SSE-KMS encryption headers of the object.voidsetSuccessRedirectLocation(String successRedirectLocation) Set the redirection address after a successfully responded request.voidsetTaskNum(int taskNum) Set the maximum number of threads used for processing upload tasks concurrently.voidsetTaskProgressInterval(long taskProgressInterval) Set the interval for updating the task progress information.voidSet the progress listener of the bulk task.toString()voidwithdrawExtensionPermission(String domainId, ExtensionObjectPermissionEnum extensionPermissionEnum) Withdraw the OBS extension permissions from a user.voidwithdrawExtensionPermissions(String domainId) Withdraw all OBS extension permissions from a user.从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractBulkRequest
getProgressInterval, getProgressListener, getTaskQueueNum, getTaskThreadNum, setProgressInterval, setProgressListener, setTaskQueueNum, setTaskThreadNum从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
-
字段详细资料
-
folderPath
-
prefix
-
filePaths
-
callback
-
partSize
private long partSize -
bigfileThreshold
private long bigfileThreshold -
taskNum
private int taskNum -
listener
-
taskProgressInterval
private long taskProgressInterval -
detailProgressInterval
private long detailProgressInterval -
extensionPermissionMap
-
acl
-
successRedirectLocation
-
sseKmsHeader
-
sseCHeader
-
-
构造器详细资料
-
PutObjectsRequest
Constructor- 参数:
bucketName- Bucket namefolderPath- Local path from which the folder is uploaded
-
PutObjectsRequest
Constructor- 参数:
bucketName- Bucket namefilePaths- List of local paths from which a batch of files are uploaded
-
-
方法详细资料
-
getFolderPath
Obtain the local path of the uploaded folder.- 返回:
- folderPath Local path from which the folder is uploaded
-
getFilePaths
Obtain the list of local paths of the batch uploaded files.- 返回:
- filePaths List of local paths from which a batch of files are uploaded
-
getCallback
Obtain the callback object of an upload task.- 返回:
- callback Callback object
-
setCallback
Set the callback object of an upload task.- 参数:
callback- Callback object
-
getPartSize
public long getPartSize()Obtain the part size set for uploading an object.- 返回:
- partSize Part size
-
setPartSize
public void setPartSize(long partSize) Set the part size for uploading the object.- 参数:
partSize- Part size
-
getBigfileThreshold
public long getBigfileThreshold()Obtain the threshold size of a file for starting multipart upload.- 返回:
- bigfileThreshold Threshold size of a file for multipart upload
-
setBigfileThreshold
public void setBigfileThreshold(long bigfileThreshold) Set the threshold size of a file for starting multipart upload.- 参数:
bigfileThreshold- Threshold size of a file for multipart upload
-
getTaskNum
public int getTaskNum()Obtain the maximum number of threads used for processing upload tasks concurrently.- 返回:
- Maximum number of threads used for processing upload tasks concurrently
-
setTaskNum
public void setTaskNum(int taskNum) Set the maximum number of threads used for processing upload tasks concurrently.- 参数:
taskNum- Maximum number of threads used for processing upload tasks concurrently
-
getPrefix
Obtain the specific folder to which the file is uploaded.- 返回:
- prefix Folder
-
setPrefix
Set the specific folder to which the file is uploaded.- 参数:
prefix- Folder
-
getUploadObjectsProgressListener
Obtain the progress listener of the bulk task.- 返回:
- Progress listener
-
setUploadObjectsProgressListener
Set the progress listener of the bulk task.- 参数:
listener- Progress listener
-
getTaskProgressInterval
public long getTaskProgressInterval()Obtain the interval for updating the task progress information.- 返回:
- taskProgressInterval Interval for updating the task progress
-
setTaskProgressInterval
public void setTaskProgressInterval(long taskProgressInterval) Set the interval for updating the task progress information.- 参数:
taskProgressInterval- Interval for updating the task progress
-
getDetailProgressInterval
public long getDetailProgressInterval()Obtain the callback threshold of the data transfer listener. The default value is 100 KB.- 返回:
- Callback threshold of the data transfer listener
-
setDetailProgressInterval
public void setDetailProgressInterval(long detailProgressInterval) Set the callback threshold of the data transfer listener. The default value is 100 KB.- 参数:
detailProgressInterval- Callback threshold of the data transfer listener
-
getSseKmsHeader
Obtain SSE-KMS encryption headers of the object.- 返回:
- SSE-KMS encryption headers
-
setSseKmsHeader
Set SSE-KMS encryption headers of the object.- 参数:
sseKmsHeader- SSE-KMS encryption headers
-
getSseCHeader
Obtain SSE-C encryption headers of the object.- 返回:
- SSE-C encryption headers
-
setSseCHeader
Set SSE-C encryption headers of the object.- 参数:
sseCHeader- SSE-C encryption headers
-
getAcl
Obtain the ACL of the object.- 返回:
- Object ACL
-
setAcl
Set the object ACL.- 参数:
acl- Object ACL
-
getSuccessRedirectLocation
Obtain the redirection address after a successfully responded request.- 返回:
- Redirection address
-
setSuccessRedirectLocation
Set the redirection address after a successfully responded request.- 参数:
successRedirectLocation- Redirection address
-
grantExtensionPermission
public void grantExtensionPermission(String domainId, ExtensionObjectPermissionEnum extensionPermissionEnum) Grant the OBS extension permissions to a user.- 参数:
domainId- User's domain IDextensionPermissionEnum- OBS extension permissions
-
withdrawExtensionPermission
public void withdrawExtensionPermission(String domainId, ExtensionObjectPermissionEnum extensionPermissionEnum) Withdraw the OBS extension permissions from a user.- 参数:
domainId- User's domain IDextensionPermissionEnum- OBS extension permissions
-
withdrawExtensionPermissions
Withdraw all OBS extension permissions from a user.- 参数:
domainId- User's domain ID
-
getAllGrantPermissions
Obtain all OBS extended permissions.- 返回:
- OBS List of extension permissions
-
getDomainIdsByGrantPermission
public Set<String> getDomainIdsByGrantPermission(ExtensionObjectPermissionEnum extensionPermissionEnum) Obtain the list of user IDs with the specified OBS extension permissions.- 参数:
extensionPermissionEnum- OBS extension permissions- 返回:
- List of user IDs
-
getGrantPermissionsByDomainId
Obtain the OBS extension permissions of a specified user.- 参数:
domainId- User ID- 返回:
- OBS Extension permission set
-
getExtensionPermissionMap
Obtain the set of relationships between users and OBS extension permissions.- 返回:
- Set of relationships between users and OBS extended permissions
-
setExtensionPermissionMap
public void setExtensionPermissionMap(Map<ExtensionObjectPermissionEnum, Set<String>> extensionPermissionMap) Set the set of relationships between users and OBS extension permissions.- 参数:
extensionPermissionMap- Set of relationships between users and OBS extended permissions
-
toString
- 覆盖:
toString在类中GenericRequest
-