feat: extend dfs support PostgresqlSeriesDfsService

This commit is contained in:
tjq 2024-03-16 22:01:12 +08:00
parent 1e092bb866
commit 54fadf6368
2 changed files with 3 additions and 12 deletions

View File

@ -1,7 +1,6 @@
package tech.powerjob.server.extension.dfs; package tech.powerjob.server.extension.dfs;
import java.io.IOException; import java.io.IOException;
import java.sql.SQLException;
import java.util.Optional; import java.util.Optional;
/** /**
@ -17,14 +16,14 @@ public interface DFsService {
* @param storeRequest 存储请求 * @param storeRequest 存储请求
* @throws IOException 异常 * @throws IOException 异常
*/ */
void store(StoreRequest storeRequest) throws IOException, SQLException; void store(StoreRequest storeRequest) throws Exception;
/** /**
* 下载文件 * 下载文件
* @param downloadRequest 文件下载请求 * @param downloadRequest 文件下载请求
* @throws IOException 异常 * @throws IOException 异常
*/ */
void download(DownloadRequest downloadRequest) throws IOException; void download(DownloadRequest downloadRequest) throws Exception;
/** /**
* 获取文件元信息 * 获取文件元信息
@ -32,7 +31,7 @@ public interface DFsService {
* @return 存在则返回文件元信息 * @return 存在则返回文件元信息
* @throws IOException 异常 * @throws IOException 异常
*/ */
Optional<FileMeta> fetchFileMeta(FileLocation fileLocation) throws IOException; Optional<FileMeta> fetchFileMeta(FileLocation fileLocation) throws Exception;
/** /**
* 清理 powerjob 认为过期的文件 * 清理 powerjob 认为过期的文件

View File

@ -17,14 +17,6 @@ oms.storage.dfs.mysql_series.username=root
oms.storage.dfs.mysql_series.password=No1Bug2Please3! oms.storage.dfs.mysql_series.password=No1Bug2Please3!
oms.storage.dfs.mysql_series.auto_create_table=true oms.storage.dfs.mysql_series.auto_create_table=true
#postgresql
#oms.storage.dfs.postgresql_series.driver=org.postgresql.Driver
#oms.storage.dfs.postgresql_series.url=jdbc:postgresql://127.0.0.15432/powerjob-daily
#oms.storage.dfs.postgresql_series.username=root
#oms.storage.dfs.postgresql_series.password=root
#oms.storage.dfs.postgresql_series.auto_create_table=true
####### Email properties(Non-core configuration properties) ####### ####### Email properties(Non-core configuration properties) #######
####### Delete the following code to disable the mail ####### ####### Delete the following code to disable the mail #######
spring.mail.host=smtp.163.com spring.mail.host=smtp.163.com