Examples of HdfsStatsCleaner


Examples of org.apache.blur.agent.cleaners.HdfsStatsCleaner

  @Test
  public void shouldDeleteOldStats() {
    Calendar overTwoWeeksAgo = TimeHelper.getTimeAgo(16 * 24 * 60 * 60 * 1000);
    jdbc.update("insert into hdfs_stats (created_at) values (?)", overTwoWeeksAgo);

    Thread testStatsCleaner = new Thread(new HdfsStatsCleaner(database), "Hdfs Stats Cleaner Test Thread");
    testStatsCleaner.start();
    try {
      testStatsCleaner.join();
    } catch (InterruptedException e) {
      fail("The test QueriesCleaner failed while waiting for it to finish!");
View Full Code Here

Examples of org.apache.blur.agent.cleaners.HdfsStatsCleaner

  @Test
  public void shouldNotDeleteYoungStats() {
    Calendar underTwoWeeksAgo = TimeHelper.getTimeAgo(8 * 24 * 60 * 60 * 1000);
    jdbc.update("insert into hdfs_stats (created_at) values (?)", underTwoWeeksAgo);

    Thread testStatsCleaner = new Thread(new HdfsStatsCleaner(database), "Hdfs Stats Cleaner Test Thread");
    testStatsCleaner.start();
    try {
      testStatsCleaner.join();
    } catch (InterruptedException e) {
      fail("The test QueriesCleaner failed while waiting for it to finish!");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.