public class CloudFileServiceFastDFSImpl extends java.lang.Object implements CloudFileService
| 构造器和说明 |
|---|
CloudFileServiceFastDFSImpl(org.noear.solon.core.AppContext appContext,
CloudProps cloudProps) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.noear.solon.core.handle.Result<java.lang.Object> |
delete(java.lang.String bucket,
java.lang.String key)
删除文件
|
org.noear.solon.core.handle.Result |
deleteBatch(java.lang.String bucket,
java.util.Collection<java.lang.String> keys)
批量删除文件
|
boolean |
exists(java.lang.String bucket,
java.lang.String key)
是否存在
|
Media |
get(java.lang.String bucket,
java.lang.String key)
获取文件
|
org.csource.fastdfs.StorageClient |
getClient()
获取真实客户端
|
java.lang.String |
getTempUrl(java.lang.String bucket,
java.lang.String key,
java.time.Duration duration)
获取文件临时地址
|
org.noear.solon.core.handle.Result<java.lang.Object> |
put(java.lang.String bucket,
java.lang.String key,
Media media)
推入文件
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, deleteBatch, exists, get, getTempUrl, getTempUrl, getTempUrl, putpublic CloudFileServiceFastDFSImpl(org.noear.solon.core.AppContext appContext,
CloudProps cloudProps)
public org.csource.fastdfs.StorageClient getClient()
public boolean exists(java.lang.String bucket,
java.lang.String key)
throws CloudFileException
CloudFileServiceexists 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic java.lang.String getTempUrl(java.lang.String bucket,
java.lang.String key,
java.time.Duration duration)
throws CloudFileException
CloudFileServicegetTempUrl 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic Media get(java.lang.String bucket, java.lang.String key) throws CloudFileException
CloudFileServiceget 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic org.noear.solon.core.handle.Result<java.lang.Object> put(java.lang.String bucket,
java.lang.String key,
Media media)
throws CloudFileException
CloudFileServiceput 在接口中 CloudFileServicebucket - 存储桶key - 存储键media - 媒体CloudFileExceptionpublic org.noear.solon.core.handle.Result<java.lang.Object> delete(java.lang.String bucket,
java.lang.String key)
throws CloudFileException
CloudFileServicedelete 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic org.noear.solon.core.handle.Result deleteBatch(java.lang.String bucket,
java.util.Collection<java.lang.String> keys)
throws CloudFileException
CloudFileServicedeleteBatch 在接口中 CloudFileServicebucket - 存储桶keys - 存储键集合CloudFileException