public interface DFsService
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
cleanExpiredFiles(String bucket,
int days)
清理 powerjob 认为“过期”的文件
部分存储系统自带生命周期管理(如阿里云OSS,则不需要单独实现该方法)
|
void |
download(DownloadRequest downloadRequest)
下载文件
|
Optional<FileMeta> |
fetchFileMeta(FileLocation fileLocation)
获取文件元信息
|
void |
store(StoreRequest storeRequest)
存储文件
|
void store(StoreRequest storeRequest) throws IOException
storeRequest - 存储请求IOException - 异常void download(DownloadRequest downloadRequest) throws IOException
downloadRequest - 文件下载请求IOException - 异常Optional<FileMeta> fetchFileMeta(FileLocation fileLocation) throws IOException
fileLocation - 文件位置IOException - 异常default void cleanExpiredFiles(String bucket, int days)
bucket - bucketdays - 天数,需要清理超过 X 天的文件Copyright © 2023. All rights reserved.