DavidAlphaFox / egfs

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

Read sequence diagram #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Client->MetadataServer: {open, FileName, [Mode]} %Filename is the fullpath
activate MetadataServer
note right of MetadataServer: getFileHandle
MetadataServer->Client: {ok,FileID} / {error,Reason}
deactivate MetadataServer
loop read_chunks

Client->MetadataServer: {seekchunk,FileID,ChunkNo}
activate MetadataServer
note right of MetadataServer: seekChunk
MetadataServer->Client: {ok,ChunkID,NodeList} | {error,Reason}
deactivate MetadataServer

Client->DataServer: {readchunk, ChunkID, NodeID, Offset, Length}
activate DataServer
DataServer->Client: gen_tcp:connect
DataServer->Client: gen_tcp:receive
DataServer->Client: {tcp, Socket, Binary}
DataServer->Client: {tcp_closed, Socket}
DataServer->Client: {finish, State}
deactivate DataServer
end

Client->MetadataServer: {close}

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

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by huangxia...@gmail.com on 16 Dec 2008 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by huangxia...@gmail.com on 16 Dec 2008 at 7:18