DavidAlphaFox / egfs

Automatically exported from code.google.com/p/egfs
0 stars 0 forks source link

Read Sequence #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
大家到http://www.websequencediagrams.com/  上去出图,讨论一下read 
sequence.
====================================================

Client->MetadataServer: {open, FileName, Mode}
activate MetadataServer
note right of MetadataServer: getFileHandle
MetadataServer->Client: {ok,FileID} | {error,Reason}
deactivate MetadataServer
loop read_chunks
Client->MetadataServer: {locatechunk, FileID, ChunkIndex}
activate MetadataServer
note right of MetadataServer: locatechunk
MetadataServer->Client: {ok, ChunkID, NodeList} | {error, Reason}
deactivate MetadataServer
Client->DataServer: {readchunk, ChunkID, NodeID, Byterange}
activate DataServer
DataServer->Client: gen_tcp:connect
DataServer->Client: gen_tcp:send
DataServer->Client: {tcp, Socket, Binary}
DataServer->Client: {tcp_closed, Socket}
deactivate DataServer
end
Client->MetadataServer: {close, FileName}

Original issue reported on code.google.com by huangxia...@gmail.com on 16 Dec 2008 at 7:29