类 ObsClient

java.lang.Object
com.obs.services.internal.RestConnectionService
com.obs.services.internal.RestStorageService
com.obs.services.internal.service.AbstractRequestConvertor
com.obs.services.internal.service.AclHeaderConvertor
com.obs.services.internal.service.RequestConvertor
com.obs.services.internal.service.ObsBucketBaseService
com.obs.services.internal.service.ObsBucketAdvanceService
com.obs.services.internal.service.ObsObjectBaseService
com.obs.services.internal.service.ObsMultipartObjectService
所有已实现的接口:
IFSClient, IObsBucketExtendClient, IObsClient, Closeable, AutoCloseable
直接已知子类:
CryptoObsClient, ObsClientAsync, OefClient, SecretFlexibleBucketObsClient

public class ObsClient extends AbstractBatchClient
ObsClient
  • 构造器详细资料

    • ObsClient

      public ObsClient(String endPoint)
      Constructor
      参数:
      endPoint - OBS endpoint
    • ObsClient

      public ObsClient(ObsConfiguration config)
      Constructor
      参数:
      config - Configuration parameters of ObsClient
    • ObsClient

      public ObsClient(String accessKey, String secretKey, String endPoint)
      Constructor
      参数:
      accessKey - AK in the access key
      secretKey - SK in the access key
      endPoint - OBS endpoint
    • ObsClient

      public ObsClient(String accessKey, String secretKey, ObsConfiguration config)
      Constructor
      参数:
      accessKey - AK in the access key
      secretKey - SK in the access key
      config - Configuration parameters of ObsClient
    • ObsClient

      public ObsClient(String accessKey, String secretKey, String securityToken, String endPoint)
      Constructor
      参数:
      accessKey - AK in the temporary access key
      secretKey - SK in the temporary access key
      securityToken - Security token
      endPoint - OBS endpoint
    • ObsClient

      public ObsClient(String accessKey, String secretKey, String securityToken, ObsConfiguration config)
      Constructor
      参数:
      accessKey - AK in the temporary access key
      secretKey - SK in the temporary access key
      securityToken - Security token
      config - Configuration parameters of ObsClient
    • ObsClient

      public ObsClient(IObsCredentialsProvider provider, String endPoint)
    • ObsClient

      public ObsClient(IObsCredentialsProvider provider, ObsConfiguration config)
  • 方法详细资料

    • readAheadObjects

      public ReadAheadResult readAheadObjects(ReadAheadRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Read ahead objects.
      参数:
      request - Request parameters for reading ahead objects
      返回:
      Response to the request for reading ahead objects
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • deleteReadAheadObjects

      public ReadAheadResult deleteReadAheadObjects(String bucketName, String prefix) throws ObsException
      从接口复制的说明: IObsClient
      Delete the read-ahead cache.
      参数:
      bucketName - Bucket name
      prefix - Name prefix of objects to be read ahead
      返回:
      Response to the request for reading ahead objects
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • queryReadAheadObjectsTask

      public ReadAheadQueryResult queryReadAheadObjectsTask(String bucketName, String taskId) throws ObsException
      从接口复制的说明: IObsClient
      Query the progress of a read-ahead task.
      参数:
      bucketName - Bucket name
      taskId - ID of the read-ahead task
      返回:
      Response to the request for querying the progress of the read-ahead task
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • newBucket

      public ObsFSBucket newBucket(NewBucketRequest request) throws ObsException
      从接口复制的说明: IFSClient
      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
    • newFile

      public ObsFSFile newFile(NewFileRequest request) throws ObsException
      从接口复制的说明: IFSClient
      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

      public ObsFSFolder newFolder(NewFolderRequest request) throws ObsException
      从接口复制的说明: IFSClient
      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
    • writeFile

      public ObsFSFile writeFile(WriteFileRequest request) throws ObsException
      从接口复制的说明: IFSClient
      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
    • setProvider

      public void setProvider(IObsCredentialsProvider provider)