Class StsOssClientProvider

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class StsOssClientProvider
    extends java.lang.Object
    implements java.io.Closeable
    STS client provider for Aliyun OSS.
    • Constructor Detail

      • StsOssClientProvider

        public StsOssClientProvider​(alluxio.underfs.UnderFileSystemConfiguration ossConfiguration)
        Constructs a new instance of StsOssClientProvider.
        Parameters:
        ossConfiguration - UnderFileSystemConfiguration for OSS
    • Method Detail

      • init

        public void init()
                  throws java.io.IOException
        Throws:
        java.io.IOException - if failed to init OSS Client
      • createOrRefreshOssStsClient

        protected void createOrRefreshOssStsClient​(alluxio.underfs.UnderFileSystemConfiguration ossConfiguration)
                                            throws java.io.IOException
        Create Or Refresh the STS OSS client.
        Parameters:
        ossConfiguration - OSS UnderFileSystemConfiguration
        Throws:
        java.io.IOException - if failed to create or refresh OSS client
      • getOSSClient

        public com.aliyun.oss.OSS getOSSClient()
        Returns the STS OSS client.
        Returns:
        oss client
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • setOssClientBuilder

        protected void setOssClientBuilder​(com.aliyun.oss.OSSClientBuilder ossClientBuilder)