协思

协作、思考、感悟、进步

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
aquiles是.net下基于Thrift协议访问Cassandra的第三方类库,官方地址是:
 
1.下载类库文件:
 
2.添加引用
Aquiles.Core.dll
Aquiles.Cassandra10.dll
Thrift.dll
 
3.添加配置文件
<?xml version="1.0" encoding="utf-8" ?>
<configuration>

  <configSections>
    <section name="aquilesConfiguration" type="Aquiles.Core.Configuration.AquilesConfigurationSection,Aquiles.Core"/>
  </configSections>

  <aquilesConfiguration>
    <clusters>
      <add friendlyName="Test_Cluster">
        <connection poolType="SIZECONTROLLEDPOOL" factoryType="FRAMED">
        </connection>
        <endpointManager type="ROUNDROBIN" defaultTimeout="6000">
          <cassandraEndpoints>
            <add address="*.*.*.*" port="9160"/>
            <add address="*.*.*.*" port="9160"/>
            <add address="*.*.*.*" port="9160"/>
          </cassandraEndpoints>
        </endpointManager>
      </add>
    </clusters>
  </aquilesConfiguration>

  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>

</configuration>

 

posted on 2013-07-24 17:10  协思  阅读(814)  评论(0编辑  收藏  举报