cassandra的写过程

参考 http://ju.outofmemory.cn/entry/115864

类:  org.apache.cassandra.transport.Message

 

如下:

 

Message, get a new request,type:QUERY      //channelRead0函数

Message, get a new request,customPayload:null
Message, qstate:org.apache.cassandra.service.QueryState@36472632
Message, before execute
QueryMessage, execute, begin               //execute 函数 
QueryMessage, before response
QueryProcessor, process, begin
QueryProcessor, process queryString:insert into usertable(y_id,field1) values('s894','sldf') ;  // public ResultMessage process 函数
QueryProcessor, processStatement. before execute   // public ResultMessage processStatement 函数
StatementType, enum StatementType, insert
StorageProxy, performWrite 

StorageProxy,apply,1111

StoragePorxy, sendToHintedEndpoints
StoragePorxy, sendToHintedEndpoints, insertLocal:true
StorageProxy, performLocally 2

StorageProxy, performLocally, before runnable.run()

Mutation, apply 22

Mutation, apply 11

Keyspace, applyNotDeferrable

Keyspace, apply 222 //主要的操作就在这里完成了


QueryMessage, after response
QueryMessage, before return
Message, after execute  //channelRead0, response = request.execute(qstate, queryStartNanoTime);
Message, before flush 222
Message, after flush 222 //channelRead0,flush(new FlushItem(ctx, response, request.getSourceFrame()));

posted on 2016-12-11 18:07  longbigfish  阅读(153)  评论(0编辑  收藏  举报

导航