public void checkDatafromCassandraDatastax(int uID, int noOfReplicas, int noOfSamples,
      String lcheckfile, int rate, int delayTime, String logFileName) {
    Double sum = 0.0;
    int minute = noOfSamples / (rate * 60) + delayTime;
    int[] samplesPerMinute = new int[minute]; // stores the samples per
    // minute based on the time
    // stamp of the time when
    // the client send message
    // to server
    int[] samplesPerMinuteServerTime = new int[minute]; // stores the
    // samples per
    // minute based on
    // the time stamp of
    // the time when
    // Cassandra saves
    // message
    for (int minuteIdx = 0; minuteIdx < minute; minuteIdx++) {
      samplesPerMinute[minuteIdx] = 0;
      samplesPerMinuteServerTime[minuteIdx] = 0;
    }
    try {
      int tsID = 0;
      uconn.cse.cassperf.datastaxcassandraclient.GetDataFromDataCF iGFCF =
          new uconn.cse.cassperf.datastaxcassandraclient.GetDataFromDataCF();
      // DateFormat dateFormat = new
      // SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
      // Date date = new Date();
      String startTime = ""; // get the time when
      // sensor starts to put
      // data to the backend
      BufferedReader br = new BufferedReader(new FileReader(logFileName));
      try {
        String line = br.readLine();
        while (line != null) {
          if (line.contains("startTime")) {
            startTime = line.split("-")[1];
          }
          line = br.readLine();
        }
      } finally {
        br.close();
      }
      String[] parsedStartTime = startTime.split("\\s+");
      System.out.println("Time client called server :" + parsedStartTime[0]);
      System.out.println("Time client called server :" + parsedStartTime[1]);
      ResultSet result0 = iGFCF.execute("Data", uID, 0, rate - 1, false, rate);
      while (tsID < noOfSamples - rate + 1) {
        result0 = iGFCF.execute("Data", uID, tsID, tsID + rate - 1, false, rate);
        tsID += rate;
        // sum += result0.all().size();
        // s =
        sum += result0.all().size();;
        // System.out.println("size " + sum + " : " + s);
      }
      // }

      System.out.println("Finish checking: " + tsID + " size " + sum + " / " + noOfSamples + " : "
          + (sum / noOfSamples));
      System.out.println("rate:" + rate);
      System.out.println("drop:" + (noOfSamples - sum));
      System.out.println("ratio:" + sum / noOfSamples);
      for (int minuteIdx = 0; minuteIdx < minute; minuteIdx++)
        System.out.println("minute " + minuteIdx + " : " + samplesPerMinute[minuteIdx]);
      for (int minuteIdx = 0; minuteIdx < minute; minuteIdx++)
        System.out.println("minuteServerTime " + minuteIdx + " : "
            + samplesPerMinuteServerTime[minuteIdx]);
    } catch (Exception e) {// Catch exception if any
      System.out.println("Finish checking: sum " + sum + " / " + noOfSamples + " : "
          + (sum / noOfSamples));
      System.out.println("rate:" + rate);
      System.out.println("drop:" + (noOfSamples - sum));
      System.out.println("ratio:" + sum / noOfSamples);
      for (int minuteIdx = 0; minuteIdx < minute; minuteIdx++)
        System.out.println("minute " + minuteIdx + " : " + samplesPerMinute[minuteIdx]);
      for (int minuteIdx = 0; minuteIdx < minute; minuteIdx++)
        System.out.println("minuteServerTime " + minuteIdx + " : "
            + samplesPerMinuteServerTime[minuteIdx]);
      System.err.println("Error: " + e.getMessage());
      e.printStackTrace();
    }
  }