Exemplo n.º 1
0
 /// <summary>
 ///  Wait until all nodes agree on the same schema version
 /// </summary>
 /// <param name="keyspace"></param>
 private void waitForCreation(String keyspace)
 {
     while (true)
     {
         Dictionary <String, List <String> > versions = client.describe_schema_versions();
         // only 1 version, return
         if (versions != null && versions.Count == 1)
         {
             return;
         }
         // sleep and try again
         try
         {
             Thread.Sleep(100);
         }
         catch (ThreadInterruptedException e)
         {
         }
     }
 }
 public override void Execute(Apache.Cassandra.Cassandra.Client cassandraClient)
 {
     Output = cassandraClient.describe_schema_versions();
 }