zoukankan      html  css  js  c++  java
  • 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()));

  • 相关阅读:
    高级数据类型--字典(dict)
    一些JS常用的方法
    怎样提高WebService的性能
    Microsoft Enterprise Library 5.0 系列(三)
    Microsoft Enterprise Library 5.0 系列(四)
    Expression Blend学习二UI布局
    Expression Blend学习四控件
    Expression Blend学习5控件
    Expression Blend学习动画基础
    WPF三维图形
  • 原文地址:https://www.cnblogs.com/bettersky/p/6160107.html
Copyright © 2011-2022 走看看