YashKumarVerma / project-os-healing-os

comparative analysis of scheduling algorithms
https://github.com/YashKumarVerma/self-healing-remote
0 stars 3 forks source link

Watchman #2

Open YashKumarVerma opened 3 years ago

YashKumarVerma commented 3 years ago

This module has the following features. All commands are executed pass through the watcher.

Flow

user -> opens utility -> enters command -> command goes to watcher -> watcher adds entry to logs -> executes -> shows output to user

Watcher is responsible for commands which user enters to access our features. For example, user enters the following commands and all this happens.

ls
# system command runs, returns output

mkdir dir1
# directory created

:checkpoint create
# this would  invoke an internal function (watcher does this, just calling that function) which in turn does whats' required. For instance, in this example, it creates a checkpoint in the system timeline.

:checkpoint revert
# this would take system to last known checkpoint

Note that the commands that the watcher identifies would be provided as a Array, and the implementation of such commands is not part of watcher. Watcher only calls the functions responsible for the actions.

yashkumarverma-assistant[bot] commented 3 years ago

Thanks @YashKumarVerma, for raising the issue! 🙌 One of our team mates will revert on this soon. ✅