From a74076a85f6316def20c4beb698f0961af512ee1 Mon Sep 17 00:00:00 2001 From: "Dylan.Liu" Date: Tue, 12 Jan 2021 14:53:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?DEC-16802=20fix:=20FineFileServer.getInstan?= =?UTF-8?q?ce().getRepoConfig()=20=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BE=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/cluster/resource/FineFileServerKit.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java diff --git a/src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java b/src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java new file mode 100644 index 0000000..d2eab61 --- /dev/null +++ b/src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java @@ -0,0 +1,17 @@ +package com.fanruan.api.cluster.resource; + +import com.fr.decision.fileserver.FineFileServer; +import com.fr.io.config.RepositoryConfig; + +/** + * @author Dylan.Liu + * @version 10.0 + * Created by Dylan.Liu on 2021/1/12 + */ +public class FineFileServerKit { + + public static T getRepoConfig() throws Exception { + return FineFileServer.getInstance().getRepoConfig(); + } + +} -- 2.28.0 From c7b4de009473a51dbea334252d393a811d95c6c0 Mon Sep 17 00:00:00 2001 From: "Dylan.Liu" Date: Tue, 12 Jan 2021 14:57:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?DEC-16802=20fix:=20FineFileServer.getInstan?= =?UTF-8?q?ce().getRepoConfig()=20=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BE=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fanruan/api/cluster/resource/FineFileServerKit.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java b/src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java index d2eab61..eadcef1 100644 --- a/src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java +++ b/src/main/java/com/fanruan/api/cluster/resource/FineFileServerKit.java @@ -4,12 +4,20 @@ import com.fr.decision.fileserver.FineFileServer; import com.fr.io.config.RepositoryConfig; /** + * 文件服务器Kit. + * * @author Dylan.Liu * @version 10.0 * Created by Dylan.Liu on 2021/1/12 */ public class FineFileServerKit { + /** + * 获取文件服务器当前配置. + * + * @return 文件服务器当前配置 + * @throws Exception 获取配置失败时异常 + */ public static T getRepoConfig() throws Exception { return FineFileServer.getInstance().getRepoConfig(); } -- 2.28.0