ContainerFacade .md
... ...
@@ -0,0 +1,150 @@
1
+# ContainerFacade 引擎容器门面类
2
+用于封装对引擎容器(`EngineContainer`)的统一访问接口,简化对模型、App 元数据等内容的调用,同时支持远程内存同步和初态模型注入等操作。
3
+
4
+---
5
+
6
+## 类路径
7
+```plain
8
+java
9
+
10
+
11
+复制编辑
12
+package com.sie.snest.engine.facade;
13
+```
14
+
15
+---
16
+
17
+## 引用类
18
+```plain
19
+java
20
+
21
+
22
+复制编辑
23
+import com.sie.snest.engine.container.AppContainer;
24
+import com.sie.snest.engine.container.EngineContainer;
25
+import com.sie.snest.engine.model.BaseMeta;
26
+import com.sie.snest.engine.model.ModelMeta;
27
+import com.sie.snest.engine.model.loaders.AppDataInfo;
28
+```
29
+
30
+---
31
+
32
+## 方法说明
33
+### `getAppDataInfo(String appName, String tag)`
34
+```plain
35
+java
36
+
37
+
38
+复制编辑
39
+public static AppDataInfo getAppDataInfo(String appName, String tag)
40
+```
41
+
42
+根据应用名和版本获取应用元数据。
43
+
44
+#### 参数:
45
++ `appName`:应用名称。
46
++ `tag`:应用版本标识。
47
+
48
+#### 返回:
49
++ `AppDataInfo`:应用数据元信息对象。
50
+
51
+---
52
+
53
+### `getModels(String appName, String tag)`
54
+```plain
55
+java
56
+
57
+
58
+复制编辑
59
+public static List<ModelMeta> getModels(String appName, String tag)
60
+```
61
+
62
+获取指定应用的模型列表。
63
+
64
+#### 参数:
65
++ `appName`:应用名称。
66
++ `tag`:应用版本标识。
67
+
68
+#### 返回:
69
++ `List<ModelMeta>`:模型元数据列表。
70
+
71
+---
72
+
73
+### `syncRemoteMemory2Local()`
74
+```plain
75
+java
76
+
77
+
78
+复制编辑
79
+public static void syncRemoteMemory2Local()
80
+```
81
+
82
+触发远程内存同步至本地容器操作。
83
+
84
+---
85
+
86
+### `writeToImap(String mapType)`
87
+```plain
88
+java
89
+
90
+
91
+复制编辑
92
+public static void writeToImap(String mapType)
93
+```
94
+
95
+将数据写入指定类型的内存映射结构。
96
+
97
+#### 参数:
98
++ `mapType`:映射类型标识。
99
+
100
+---
101
+
102
+### `deleteImapKey(Collection<String> keys, String mapType)`
103
+```plain
104
+java
105
+
106
+
107
+复制编辑
108
+public static void deleteImapKey(Collection<String> keys, String mapType)
109
+```
110
+
111
+从内存映射中删除指定的键。
112
+
113
+#### 参数:
114
++ `keys`:需要删除的键集合。
115
++ `mapType`:映射类型标识。
116
+
117
+---
118
+
119
+### `registerBaseMetaBatchToBussiness(List<BaseMeta> baseMetas, AppContainer newAppContainer)`
120
+```plain
121
+java
122
+
123
+
124
+复制编辑
125
+public void registerBaseMetaBatchToBussiness(List<BaseMeta> baseMetas, AppContainer newAppContainer)
126
+```
127
+
128
+批量注入初态模型到业务容器,并统一进行分布式同步。
129
+
130
+#### 参数:
131
++ `baseMetas`:初态模型列表。
132
++ `newAppContainer`:新应用容器实例。
133
+
134
+---
135
+
136
+### `registerBaseMetaBatchToWorkflow(List<BaseMeta> baseMetas, AppContainer newAppContainer)`
137
+```plain
138
+java
139
+
140
+
141
+复制编辑
142
+public void registerBaseMetaBatchToWorkflow(List<BaseMeta> baseMetas, AppContainer newAppContainer)
143
+```
144
+
145
+批量注入初态模型到工作流容器。
146
+
147
+#### 参数:
148
++ `baseMetas`:初态模型列表。
149
++ `newAppContainer`:新应用容器实例。
150
+