接口 IFSClient
- 所有已知实现类:
AbstractBatchClient,AbstractBucketAdvanceClient,AbstractBucketClient,AbstractClient,AbstractDeprecatedBucketClient,AbstractFileClient,AbstractMultipartObjectClient,AbstractObjectClient,AbstractPFSClient,CryptoObsClient,ObsClient,ObsClientAsync,OefClient,SecretFlexibleBucketObsClient,SecretFlexibleObsClient
public interface IFSClient
Gateway interface for OBS files
-
方法概要
修饰符和类型方法说明appendFile(WriteFileRequest request) Append data to a file.voidclose()Disable ObsClient and release connection resources.delete access label of the folder s3 protocol is not supporteddropFile(DropFileRequest request) Delete a file.dropFolder(DropFolderRequest request) Delete a folder.getAccessLabelFs(GetAccessLabelRequest request) get access label of the folder s3 protocol is not supportedgetAttribute(GetAttributeRequest request) Obtain file or folder properties.Check whether the file gateway feature is enabled for the bucket.obtain current folder contentSummaryobtain folder contentSummaryobtain folder contentSummarynewBucket(NewBucketRequest request) Create a bucket.newFile(NewFileRequest request) Create a file.newFolder(NewFolderRequest request) Create a folder.readFile(ReadFileRequest request) Obtain the file content.renameFile(RenameRequest request) Rename a file.renameFolder(RenameRequest request) Rename a folder.setAccessLabelFs(SetAccessLabelRequest request) set access label for a folder s3 protocol is not supportedSpecify whether to enable the file gateway feature for the bucket.truncateFile(TruncateFileRequest request) Truncate a file.writeFile(WriteFileRequest request) Write data to a file.
-
方法详细资料
-
close
Disable ObsClient and release connection resources.- 抛出:
IOException- ioException
-
newBucket
Create a bucket.- 参数:
request- Request parameters for creating a bucket- 返回:
- Bucket supporting the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setBucketFSStatus
Specify whether to enable the file gateway feature for the bucket.- 参数:
request- Request parameters for specifying whether to enable the file gateway feature for the bucket- 返回:
- Common response headers
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getBucketFSStatus
Check whether the file gateway feature is enabled for the bucket.- 参数:
request- Request parameters for checking whether the file gateway feature is enabled for the bucket- 返回:
- Response to the check of whether the file gateway feature is enabled for the bucket
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
newFile
Create a file.- 参数:
request- Request parameters for creating a file- 返回:
- Files in the bucket that supports the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
newFolder
Create a folder.- 参数:
request- Request parameters for creating a folder- 返回:
- Folders in the bucket that supports the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getAttribute
Obtain file or folder properties.- 参数:
request- Request parameters for obtaining filer or folder properties- 返回:
- File or folder properties
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
readFile
Obtain the file content.- 参数:
request- Request parameters for obtaining the file content- 返回:
- Response to the request for obtaining file content
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
writeFile
Write data to a file.- 参数:
request- Request parameters for writing data to a file- 返回:
- Files in the bucket that supports the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
appendFile
Append data to a file.- 参数:
request- Request parameters for writing data to a file- 返回:
- Files in the bucket that supports the file interface
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
renameFile
Rename a file.- 参数:
request- Request parameters for renaming a file- 返回:
- Response to the request for renaming a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
renameFolder
Rename a folder.- 参数:
request- Request parameters for renaming a folder- 返回:
- Response to the request for renaming a folder
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
truncateFile
Truncate a file.- 参数:
request- Request parameters for truncating a file- 返回:
- Response to the request for truncating a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
dropFile
Delete a file.- 参数:
request- Request parameters for deleting a file- 返回:
- Response to the request for deleting a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
dropFolder
Delete a folder.- 参数:
request- Request parameters for deleting a folder- 返回:
- Batch task execution status
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
listContentSummary
obtain folder contentSummary- 参数:
request- Request parameters for obtain folder contentSummary- 返回:
- Response to the request for obtain folder contentSummary
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails- 从以下版本开始:
- 3.20.5
-
listContentSummaryFs
ListContentSummaryFsResult listContentSummaryFs(ListContentSummaryFsRequest request) throws ObsException obtain folder contentSummary- 参数:
request- Request parameters for obtain folder contentSummary- 返回:
- Response to the request for obtain folder contentSummary
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getContentSummaryFs
obtain current folder contentSummary- 参数:
request- Request parameters for obtain current folder contentSummary- 返回:
- Response to the request for obtain current folder contentSummary
- 抛出:
ObsException- ObsException OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
setAccessLabelFs
set access label for a folder s3 protocol is not supported- 参数:
request- Request parameters for access label setting- 返回:
- Response to the request for access label setting
- 抛出:
ObsException- ObsException OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
getAccessLabelFs
get access label of the folder s3 protocol is not supported- 参数:
request- Request parameters for getting access label- 返回:
- Response to the request for getting access label
- 抛出:
ObsException- ObsException OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
deleteAccessLabelFs
delete access label of the folder s3 protocol is not supported- 参数:
request- Request parameters for deleting access label- 返回:
- Response to the request for deleting access label
- 抛出:
ObsException- ObsException OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-