Skip to content

Commit 8085670

Browse files
author
NEVSTOP
committed
添加文档
1 parent 047f9aa commit 8085670

File tree

4 files changed

+63
-1
lines changed

4 files changed

+63
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/*.aliases
22
/*.lvlps
3-
_build/*
3+
_build/*
4+
*.drawio.bkp

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# CSM-FileSync
22

33
基于 Communicable-State-Machine(CSM) 的文件同步模块
4+
5+
![CSM FileSync Module](_doc/CSM%20FileSync%20Module.png)

_doc/CSM FileSync Module.drawio

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/27.0.2 Chrome/134.0.6998.205 Electron/35.3.0 Safari/537.36" version="27.0.2">
2+
<diagram name="第 1 页" id="8m91V9avulrdhInj36Ro">
3+
<mxGraphModel dx="2066" dy="1209" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0" />
6+
<mxCell id="1" parent="0" />
7+
<mxCell id="qE5QjX-OEgGUaivpO23c-16" value="CSM FileSync Module" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fontSize=36;" vertex="1" parent="1">
8+
<mxGeometry x="344" y="200" width="956" height="670" as="geometry" />
9+
</mxCell>
10+
<mxCell id="qE5QjX-OEgGUaivpO23c-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="qE5QjX-OEgGUaivpO23c-1" target="qE5QjX-OEgGUaivpO23c-2">
11+
<mxGeometry relative="1" as="geometry" />
12+
</mxCell>
13+
<mxCell id="qE5QjX-OEgGUaivpO23c-1" value="&lt;div&gt;监控文件夹&lt;/div&gt;&lt;font style=&quot;font-size: 16px;&quot;&gt;Monitoring&amp;nbsp;&lt;span style=&quot;background-color: light-dark(rgb(255, 255, 255), rgb(18, 18, 18)); color: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));&quot;&gt;Folder&lt;/span&gt;&lt;/font&gt;" style="html=1;verticalLabelPosition=middle;align=center;labelBackgroundColor=#ffffff;verticalAlign=middle;strokeWidth=2;strokeColor=#0080F0;shadow=0;dashed=0;shape=mxgraph.ios7.icons.folder;fontSize=24;labelPosition=center;" vertex="1" parent="1">
14+
<mxGeometry x="460" y="330" width="240" height="170" as="geometry" />
15+
</mxCell>
16+
<mxCell id="qE5QjX-OEgGUaivpO23c-2" value="&lt;div&gt;&lt;font&gt;本地备份文件夹&lt;/font&gt;&lt;/div&gt;&lt;font style=&quot;font-size: 16px;&quot;&gt;Backup&amp;nbsp;&lt;/font&gt;&lt;span style=&quot;font-size: 16px; background-color: light-dark(rgb(255, 255, 255), rgb(18, 18, 18)); color: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));&quot;&gt;Folder&lt;/span&gt;" style="html=1;verticalLabelPosition=middle;align=center;labelBackgroundColor=#ffffff;verticalAlign=middle;strokeWidth=2;strokeColor=#0080F0;shadow=0;dashed=0;shape=mxgraph.ios7.icons.folder;fontSize=24;labelPosition=center;" vertex="1" parent="1">
17+
<mxGeometry x="460" y="600" width="240" height="170" as="geometry" />
18+
</mxCell>
19+
<mxCell id="qE5QjX-OEgGUaivpO23c-6" value="FTP/NAS" style="sketch=0;aspect=fixed;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=middle;verticalAlign=middle;align=center;fillColor=#00188D;shape=mxgraph.mscae.enterprise.shared_folder;fontSize=24;fontColor=#FFFFFF;" vertex="1" parent="1">
20+
<mxGeometry x="900" y="314" width="190" height="220.93" as="geometry" />
21+
</mxCell>
22+
<mxCell id="qE5QjX-OEgGUaivpO23c-7" value="" style="endArrow=none;dashed=1;html=1;dashPattern=1 3;strokeWidth=2;rounded=0;" edge="1" parent="1">
23+
<mxGeometry width="50" height="50" relative="1" as="geometry">
24+
<mxPoint x="800" y="830" as="sourcePoint" />
25+
<mxPoint x="800" y="270" as="targetPoint" />
26+
</mxGeometry>
27+
</mxCell>
28+
<mxCell id="qE5QjX-OEgGUaivpO23c-8" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
29+
<mxGeometry width="50" height="50" relative="1" as="geometry">
30+
<mxPoint x="720" y="416.71" as="sourcePoint" />
31+
<mxPoint x="860" y="416.71" as="targetPoint" />
32+
</mxGeometry>
33+
</mxCell>
34+
<mxCell id="qE5QjX-OEgGUaivpO23c-9" value="" style="whiteSpace=wrap;html=1;shape=mxgraph.basic.document" vertex="1" parent="1">
35+
<mxGeometry x="120" y="362.5" width="50" height="60" as="geometry" />
36+
</mxCell>
37+
<mxCell id="qE5QjX-OEgGUaivpO23c-10" value="" style="whiteSpace=wrap;html=1;shape=mxgraph.basic.document" vertex="1" parent="1">
38+
<mxGeometry x="140" y="382.5" width="50" height="60" as="geometry" />
39+
</mxCell>
40+
<mxCell id="qE5QjX-OEgGUaivpO23c-11" value="" style="whiteSpace=wrap;html=1;shape=mxgraph.basic.document" vertex="1" parent="1">
41+
<mxGeometry x="160" y="407.5" width="50" height="60" as="geometry" />
42+
</mxCell>
43+
<mxCell id="qE5QjX-OEgGUaivpO23c-12" value="&lt;font style=&quot;font-size: 16px;&quot;&gt;拷贝文件到监控文件夹&lt;/font&gt;" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;dashed=1;" edge="1" parent="1">
44+
<mxGeometry x="-0.0588" y="-20" width="50" height="50" relative="1" as="geometry">
45+
<mxPoint x="220" y="410" as="sourcePoint" />
46+
<mxPoint x="440" y="410" as="targetPoint" />
47+
<mxPoint as="offset" />
48+
</mxGeometry>
49+
</mxCell>
50+
<mxCell id="qE5QjX-OEgGUaivpO23c-13" value="配置控制:Enable Backup" style="ellipse;html=1;aspect=fixed;fillColor=#d5e8d4;strokeColor=#82b366;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;" vertex="1" parent="1">
51+
<mxGeometry x="590" y="534.9300000000001" width="30" height="30" as="geometry" />
52+
</mxCell>
53+
<mxCell id="qE5QjX-OEgGUaivpO23c-15" value="&lt;h1 style=&quot;margin-top: 0px;&quot;&gt;本地数据文件备份&lt;/h1&gt;&lt;p&gt;&lt;font style=&quot;font-size: 16px;&quot;&gt;CSM FileSync 模块用于将本地的数据文件备份到网络服务器中。目前支持 文件拷贝(针对NAS)/FTP协议,其他协议可以继承 Protocol.lvclass 实现拓展。&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;font-size: 16px;&quot;&gt;其他特点:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font style=&quot;font-size: 16px;&quot;&gt;支持本地冗余备份&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;监控文件夹目录结构会保存到服务器&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;支持续传,程序再次启动后会继续未完成任务&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;可通过继承拓展其他协议&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;" style="text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;" vertex="1" parent="1">
54+
<mxGeometry x="830" y="580" width="420" height="250" as="geometry" />
55+
</mxCell>
56+
</root>
57+
</mxGraphModel>
58+
</diagram>
59+
</mxfile>

_doc/CSM FileSync Module.png

101 KB
Loading

0 commit comments

Comments
 (0)