mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: extend dfs support PostgresqlSeriesDfsService
This commit is contained in:
parent
1e092bb866
commit
54fadf6368
@ -1,7 +1,6 @@
|
||||
package tech.powerjob.server.extension.dfs;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
@ -17,14 +16,14 @@ public interface DFsService {
|
||||
* @param storeRequest 存储请求
|
||||
* @throws IOException 异常
|
||||
*/
|
||||
void store(StoreRequest storeRequest) throws IOException, SQLException;
|
||||
void store(StoreRequest storeRequest) throws Exception;
|
||||
|
||||
/**
|
||||
* 下载文件
|
||||
* @param downloadRequest 文件下载请求
|
||||
* @throws IOException 异常
|
||||
*/
|
||||
void download(DownloadRequest downloadRequest) throws IOException;
|
||||
void download(DownloadRequest downloadRequest) throws Exception;
|
||||
|
||||
/**
|
||||
* 获取文件元信息
|
||||
@ -32,7 +31,7 @@ public interface DFsService {
|
||||
* @return 存在则返回文件元信息
|
||||
* @throws IOException 异常
|
||||
*/
|
||||
Optional<FileMeta> fetchFileMeta(FileLocation fileLocation) throws IOException;
|
||||
Optional<FileMeta> fetchFileMeta(FileLocation fileLocation) throws Exception;
|
||||
|
||||
/**
|
||||
* 清理 powerjob 认为“过期”的文件
|
||||
|
@ -17,14 +17,6 @@ oms.storage.dfs.mysql_series.username=root
|
||||
oms.storage.dfs.mysql_series.password=No1Bug2Please3!
|
||||
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) #######
|
||||
####### Delete the following code to disable the mail #######
|
||||
spring.mail.host=smtp.163.com
|
||||
|
Loading…
x
Reference in New Issue
Block a user