Replies: 2 comments 1 reply
-
Translate It To Chinese: AppManager的命令处理和DecApp状态管理逻辑当前,AppManager对DecApp的操作,是定义了一系列AppCmd来实现的。这些AppCmd是原子化的。目前重要的AppCmd有:
但是,除了上述的原子操作之外,还存在一些对App的复杂操作,比如:
当前的实现中,这些复杂操作,会被翻译成原子操作的集合,顺序去执行:
这种设计的初衷,是为了方便CYFS浏览器中,App管理页面的产品交互设计。复杂操作如何翻译,是可以根据交互需求,方便的做修改的。 但在实践中,我们发现:
上述的操作翻译问题,也和下边的状态恢复问题有关 AppManager如何恢复DecApp的状态考虑下列场景:AppManager要重启某个DecApp
其他的操作翻译,也会出现类似的情况 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
AppManager's command processing and DecApp state management logic
Currently, AppManager's operation of DecApp is implemented by defining a series of AppCmd. These AppCmd are atomized. The important AppCmd at present are
However, in addition to the above atomic operations, there are some complex operations on App, such as
In the current implementation, these complex operations are translated into a collection of atomic operations, which are executed in the following order.
This design was originally intended to facilitate the design of product interactions on the App Management page in the CYFS browser. How to translate complex operations can be easily modified according to interaction requirements.
However, in practice, we found that.
The above operation translation problem is also related to the following state recovery problem
How AppManager restores the state of DecApp
Consider the following scenario: AppManager wants to restart a DecApp
Similar situation occurs for other operation translations
Beta Was this translation helpful? Give feedback.
All reactions