public interface IFSClient
Modifier and Type | Method and Description |
---|---|
ObsFSFile |
appendFile(WriteFileRequest request)
Append data to a file.
|
void |
close()
Disable ObsClient and release connection resources.
|
DropFileResult |
dropFile(DropFileRequest request)
Delete a file.
|
TaskProgressStatus |
dropFolder(DropFolderRequest request)
Delete a folder.
|
ObsFSAttribute |
getAttribute(GetAttributeRequest request)
Obtain file or folder properties.
|
GetBucketFSStatusResult |
getBucketFSStatus(GetBucketFSStatusRequest request)
Check whether the file gateway feature is enabled for the bucket.
|
ObsFSBucket |
newBucket(NewBucketRequest request)
Create a bucket.
|
ObsFSFile |
newFile(NewFileRequest request)
Create a file.
|
ObsFSFolder |
newFolder(NewFolderRequest request)
Create a folder.
|
ReadFileResult |
readFile(ReadFileRequest request)
Obtain the file content.
|
RenameResult |
renameFile(RenameRequest request)
Rename a file.
|
RenameResult |
renameFolder(RenameRequest request)
Rename a folder.
|
HeaderResponse |
setBucketFSStatus(SetBucketFSStatusRequest request)
Specify whether to enable the file gateway feature for the bucket.
|
TruncateFileResult |
truncateFile(TruncateFileRequest request)
Truncate a file.
|
ObsFSFile |
writeFile(WriteFileRequest request)
Write data to a file.
|
void close() throws IOException
IOException
ObsFSBucket newBucket(NewBucketRequest request) throws ObsException
request
- Request parameters for creating a bucketObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsHeaderResponse setBucketFSStatus(SetBucketFSStatusRequest request) throws ObsException
request
- Request parameters for specifying whether to enable the file gateway feature for the bucketObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsGetBucketFSStatusResult getBucketFSStatus(GetBucketFSStatusRequest request) throws ObsException
request
- Request parameters for checking whether the file gateway feature is enabled for the bucketObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsObsFSFile newFile(NewFileRequest request) throws ObsException
request
- Request parameters for creating a fileObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsObsFSFolder newFolder(NewFolderRequest request) throws ObsException
request
- Request parameters for creating a folderObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsObsFSAttribute getAttribute(GetAttributeRequest request) throws ObsException
request
- Request parameters for obtaining filer or folder propertiesObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsReadFileResult readFile(ReadFileRequest request) throws ObsException
request
- Request parameters for obtaining the file contentObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsObsFSFile writeFile(WriteFileRequest request) throws ObsException
request
- Request parameters for writing data to a fileObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsObsFSFile appendFile(WriteFileRequest request) throws ObsException
request
- Request parameters for writing data to a fileObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsRenameResult renameFile(RenameRequest request) throws ObsException
request
- Request parameters for renaming a fileObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsRenameResult renameFolder(RenameRequest request) throws ObsException
request
- Request parameters for renaming a folderObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsTruncateFileResult truncateFile(TruncateFileRequest request) throws ObsException
request
- Request parameters for truncating a fileObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsDropFileResult dropFile(DropFileRequest request) throws ObsException
request
- Request parameters for deleting a fileObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsTaskProgressStatus dropFolder(DropFolderRequest request) throws ObsException
request
- Request parameters for deleting a folderObsException
- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failsCopyright © 2019. All rights reserved.