4. ● an application server
● implementing java ee spec
○ JSP (servlet)
○ JAX-RS (rest api)
○ EJB (serve business logic, persistent, transaction)
○ 。。。
● each spec impl is modular via jboss as configuration file
----------------------------------------------------------------------------------------jboss-as
5. ● jboss as confiuration file
○ server
■ extensions
● extension (define module)
■ profile
● subsystem (module specific configuration)
■ socket-binding-group (bind interface config)
● configuration file is loaded by "jboss-modules" project
----------------------------------------------------------------------------------------jboss-as
15. AsyncTaskManager
● what is async task?
○ vdsm commands related to storage actions
○ monitoring tasks from vdsm:"vdsClient -s 0 getAllTasks"
● timely check if task finished
------------------------------------------------------------------------ovirt-engine-backend
16. ResourceManager
● manage cluster
○ schedule update from each vdsm in cluster
● manage storage pool (data center)
○ schedule update from each spm in data center
------------------------------------------------------------------------ovirt-engine-backend
17. InMemoryLockManager
● entry point to acquire command’s lock
● hold all commands’s locks
------------------------------------------------------------------------ovirt-engine-backend
18. ovirt backend Command
● bll command
○ what? take care of a business logic
○ how? interact with DAO(db), backend service, vds command
● vds command
○ simple: invoke vdsm API
------------------------------------------------------------------------ovirt-engine-backend
19. bll command’s basic flow
● canDoAction
● executeCommand
● endAction (may not execute if no task)
------------------------------------------------------------------------ovirt-engine-backend
20. bll command & async task
● invoke vds command that contains async task
● get a task id and hand it to AsyncTaskManager
● endAction() is called when task is done
------------------------------------------------------------------------ovirt-engine-backend
21. bll command & monitoring
● step & job
● monitoring step & job
○ add step/job
○ end step/job
● frontend fetch from db timely
●
------------------------------------------------------------------------ovirt-engine-backend