public class StsOssClientProvider
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
StsOssClientProvider(UnderFileSystemConfiguration ossConfiguration)
Constructs a new instance of
StsOssClientProvider. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
createOrRefreshOssStsClient(UnderFileSystemConfiguration ossConfiguration)
Create Or Refresh the STS OSS client.
|
com.aliyun.oss.OSS |
getOSSClient()
Returns the STS OSS client.
|
void |
init()
Init
StsOssClientProvider. |
protected void |
setOssClientBuilder(com.aliyun.oss.OSSClientBuilder ossClientBuilder) |
public StsOssClientProvider(UnderFileSystemConfiguration ossConfiguration)
StsOssClientProvider.ossConfiguration - UnderFileSystemConfiguration for OSSpublic void init()
throws java.io.IOException
StsOssClientProvider.java.io.IOException - if failed to init OSS Clientprotected void createOrRefreshOssStsClient(UnderFileSystemConfiguration ossConfiguration) throws java.io.IOException
ossConfiguration - OSS UnderFileSystemConfigurationjava.io.IOException - if failed to create or refresh OSS clientpublic com.aliyun.oss.OSS getOSSClient()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionprotected void setOssClientBuilder(com.aliyun.oss.OSSClientBuilder ossClientBuilder)
Copyright © 2024. All Rights Reserved.