Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
added more methods as obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Berardi committed Jan 3, 2013
1 parent 3bb3dc8 commit b94c720
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 23 deletions.
3 changes: 3 additions & 0 deletions src/Apache/Cassandra/Cassandra.cs
Expand Up @@ -443,6 +443,7 @@ public interface Iface {
/// @deprecated This is now a no-op. Please use the CQL3 specific methods instead. /// @deprecated This is now a no-op. Please use the CQL3 specific methods instead.
/// </summary> /// </summary>
/// <param name="version"></param> /// <param name="version"></param>
[Obsolete("This is now a no-op. Please use the CQL3 specific methods instead.", error: true)]
void set_cql_version(string version); void set_cql_version(string version);
#if SILVERLIGHT #if SILVERLIGHT
IAsyncResult Begin_set_cql_version(AsyncCallback callback, object state, string version); IAsyncResult Begin_set_cql_version(AsyncCallback callback, object state, string version);
Expand Down Expand Up @@ -1196,6 +1197,7 @@ public List<KeySlice> End_get_indexed_slices(IAsyncResult asyncResult)
/// <param name="index_clause"></param> /// <param name="index_clause"></param>
/// <param name="column_predicate"></param> /// <param name="column_predicate"></param>
/// <param name="consistency_level"></param> /// <param name="consistency_level"></param>
[Obsolete("use get_range_slices instead with range.row_filter specified", error: false)]
public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level)
{ {
#if !SILVERLIGHT #if !SILVERLIGHT
Expand Down Expand Up @@ -3526,6 +3528,7 @@ public void End_set_cql_version(IAsyncResult asyncResult)
/// @deprecated This is now a no-op. Please use the CQL3 specific methods instead. /// @deprecated This is now a no-op. Please use the CQL3 specific methods instead.
/// </summary> /// </summary>
/// <param name="version"></param> /// <param name="version"></param>
[Obsolete("This is now a no-op. Please use the CQL3 specific methods instead.", error: true)]
public void set_cql_version(string version) public void set_cql_version(string version)
{ {
#if !SILVERLIGHT #if !SILVERLIGHT
Expand Down
52 changes: 31 additions & 21 deletions src/Apache/Cassandra/CfDef.cs
Expand Up @@ -345,6 +345,7 @@ public double Dclocal_read_repair_chance
/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public double Row_cache_size public double Row_cache_size
{ {
get get
Expand All @@ -361,6 +362,7 @@ public double Row_cache_size
/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public double Key_cache_size public double Key_cache_size
{ {
get get
Expand All @@ -377,6 +379,7 @@ public double Key_cache_size
/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public int Row_cache_save_period_in_seconds public int Row_cache_save_period_in_seconds
{ {
get get
Expand All @@ -390,9 +393,10 @@ public int Row_cache_save_period_in_seconds
} }
} }


/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public int Key_cache_save_period_in_seconds public int Key_cache_save_period_in_seconds
{ {
get get
Expand All @@ -406,9 +410,10 @@ public int Key_cache_save_period_in_seconds
} }
} }


/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public int Memtable_flush_after_mins public int Memtable_flush_after_mins
{ {
get get
Expand All @@ -422,9 +427,10 @@ public int Memtable_flush_after_mins
} }
} }


/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public int Memtable_throughput_in_mb public int Memtable_throughput_in_mb
{ {
get get
Expand All @@ -438,9 +444,10 @@ public int Memtable_throughput_in_mb
} }
} }


/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public double Memtable_operations_in_millions public double Memtable_operations_in_millions
{ {
get get
Expand All @@ -454,9 +461,10 @@ public double Memtable_operations_in_millions
} }
} }


/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public double Merge_shards_chance public double Merge_shards_chance
{ {
get get
Expand All @@ -470,9 +478,10 @@ public double Merge_shards_chance
} }
} }


/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public string Row_cache_provider public string Row_cache_provider
{ {
get get
Expand All @@ -486,9 +495,10 @@ public string Row_cache_provider
} }
} }


/// <summary> /// <summary>
/// @deprecated /// @deprecated
/// </summary> /// </summary>
[Obsolete("in Cassandra 1.2", error: false)]
public int Row_cache_keys_to_save public int Row_cache_keys_to_save
{ {
get get
Expand Down
2 changes: 1 addition & 1 deletion src/Apache/Cassandra/KsDef.cs
Expand Up @@ -72,7 +72,7 @@ public string Strategy_class
/// <summary> /// <summary>
/// @deprecated ignored /// @deprecated ignored
/// </summary> /// </summary>
[Obsolete("ignored by Cassandra 1.2", error:false)] [Obsolete("ignored by Cassandra 1.2", error:false)]
public int Replication_factor public int Replication_factor
{ {
get get
Expand Down
2 changes: 1 addition & 1 deletion src/Operations/CassandraClientWrapper.cs
Expand Up @@ -5,7 +5,7 @@


namespace FluentCassandra.Operations namespace FluentCassandra.Operations
{ {
public class CassandraClientWrapper : Apache.Cassandra.Cassandra.Iface public class CassandraClientWrapper //: Apache.Cassandra.Cassandra.Iface
{ {
private readonly Apache.Cassandra.Cassandra.Iface _client; private readonly Apache.Cassandra.Cassandra.Iface _client;


Expand Down

0 comments on commit b94c720

Please sign in to comment.