Package com.splunk.shuttl.archiver.thaw

Examples of com.splunk.shuttl.archiver.thaw.BucketThawer


          "From and to date must be provided on the form yyyy-DD-mm");
    }

    logMetricsAtEndpoint(ENDPOINT_BUCKET_THAW);
    // thaw
    BucketThawer bucketThawer = BucketThawerFactory.createDefaultThawer();
    bucketThawer.thawBuckets(index, fromDate, toDate);

    JSONObject json = convertThawInfoToJSON(bucketThawer);
    List<JSONObject> jsons = RequestOnSearchPeers.createPost(
        ENDPOINT_BUCKET_THAW, index, from, to).execute().jsons;
    jsons.add(json);
View Full Code Here


    File thawDir = createDirectory();

    Bucket bucket = getTgzBucketArchived();
    SplunkIndexesLayer splunkIndexesLayer = new FakeSplunkIndexesLayer(thawDir);

    BucketThawer bucketThawer = BucketThawerFactory
        .createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(tgzConf,
            splunkIndexesLayer, localFileSystemPaths);

    bucketThawer.thawBuckets(bucket.getIndex(), bucket.getEarliest(),
        bucket.getLatest());

    List<LocalBucket> buckets = bucketThawer.getThawedBuckets();
    assertEquals(1, buckets.size());
    Bucket thawedBucket = buckets.get(0);
    File thawedBucketDir = new File(thawedBucket.getPath());
    assertTrue(thawedBucketDir.isDirectory());
    assertTrue(thawedBucketDir.exists());
View Full Code Here

    assertEquals(b2.getName(), flushedBucket.getName());
    assertEquals(b2.getIndex(), flushedBucket.getIndex());
  }

  private void thawBuckets(Date early, Date later) {
    BucketThawer bucketThawer = BucketThawerFactory
        .createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(config,
            splunkIndexesLayer, localFileSystemPaths);

    bucketThawer.thawBuckets(index, early, later);
  }
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.thaw.BucketThawer

Copyright © 2018 www.massapicom. 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.