Package com.splunk.shuttl.archiver.bucketlock

Examples of com.splunk.shuttl.archiver.bucketlock.BucketLockerInTestDir


    tempTestDirectory = createDirectory();
    archiveRestHandler = mock(ArchiveRestHandler.class);
    failedBucketsArchiver = mock(FailedBucketsArchiver.class);
    bucketFreezer = new BucketFreezer(
        IndexPreservingBucketMover.create(tempTestDirectory),
        new BucketLockerInTestDir(tempTestDirectory), archiveRestHandler,
        failedBucketsArchiver);
  }
View Full Code Here


  @BeforeMethod
  public void setUp() {
    listsBucketsFiltered = mock(ListsBucketsFiltered.class);
    getsBucketsFromArchive = mock(GetsBucketsFromArchive.class);
    localBuckets = mock(LocalBucketStorage.class);
    thawBucketLocker = new BucketLockerInTestDir(createDirectory());
    bucketThawer = new BucketThawer(listsBucketsFiltered,
        getsBucketsFromArchive, localBuckets, thawBucketLocker);

    index = "foo";
    earliestTime = new Date();
View Full Code Here

      File movedBucketsLocation = createDirectoryInParent(tempDirectory,
          ArchiverEndToEndTest.class.getName() + "-safeBuckets");
      IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
          .create(movedBucketsLocation);
      BucketLocker bucketLocker = new BucketLockerInTestDir(
          createDirectoryInParent(tempDirectory, "bucketlocks"));
      ShuttlServerMBean serverMBean = ShuttlServer.getMBeanProxy();
      ArchiveRestHandler archiveRestHandler = new ArchiveRestHandler(
          new DefaultHttpClient(), serverMBean);
View Full Code Here

  BucketLocker bucketLocker;

  @BeforeMethod(groups = { "fast-unit" })
  public void setUp() {
    bucketMover = mock(IndexPreservingBucketMover.class);
    bucketLocker = new BucketLockerInTestDir(createDirectory());
    sharedLockBucketHandler = mock(SharedLockBucketHandler.class);
    failedBucketsArchiver = new FailedBucketsArchiver(bucketMover, bucketLocker);
  }
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.bucketlock.BucketLockerInTestDir

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.