aquiles是.net下基于Thrift
协议访问
Cassandra的第三方类库,官方地址是:
http://aquiles.codeplex.com/
1.下载类库文件:
http://aquiles.codeplex.com/releases
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>