[SOLVED] Project 4 HIGH LEVEL Part 2 Sequence

$25

File Name: Project_4__HIGH_LEVEL_Part_2_Sequence.zip
File Size: 348.54 KB

5/5 - (1 vote)

Project 4 HIGH LEVEL Part 2 Sequence
Client Space
Client(s)
ClientNode
Refer to the Part 1 sequence diagram for details on the gRPC calls. This diagram describes the consistency, inotify, and asynchronous callb
Launch server
Launch client(s)
Start client node
Mount
Start inotify watcher thread Start async callback thread
Handling inotify events
Server Space
acks for Part 2.
Server
ServerNode
Start server node
Start DFSServiceImpl threads
loop
[File Creation]
inotify IN_CREATE
Handle new file created
Cancel request
Request write lock
Write lock response
alt
[ Write Lock Granted ]
Store file
[ Write Lock Denied ]
loop
[File Modification]
inotify IN_MODIFY
Handle file modified
Cancel request
Request write lock
Write lock response
alt
[ Write Lock Granted ]
[ Write Lock Denied ]
Store file
loop
[File Modification]
inotify IN_DELETE
Handle file modified
Cancel request
Request write lock
Write lock response
alt
[ Write Lock Granted ]
Delete file
Handling asynchronous callb
loop
Wait for async response
Handle
Request Async CallbackList
acks
[ Write Lock Denied ]
Queue request
Client(s)
ClientNode
loop
CallbackList
Process Queued Requests Respond with current file list/changes (including file attributes)
Client should then, fetch, store, delete, or do nothing if no change was detected
[Async Request]
[Async Response]
Stores to the server during asynchronous callbacks will still require a write lock
as shown in the inotify sequences.
Server ServerNode

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Project 4 HIGH LEVEL Part 2 Sequence
$25