Package com.splunk.shuttl.archiver.archive.recovery

Examples of com.splunk.shuttl.archiver.archive.recovery.FailedBucketsArchiver


    RegistersArchiverMBean.create().register();

    IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
        .create(LocalFileSystemPaths.create().getSafeDirectory());
    BucketLocker bucketLocker = new ArchiveBucketLocker();
    FailedBucketsArchiver failedBucketsArchiver = new FailedBucketsArchiver(
        bucketMover, bucketLocker);
    ArchiveRestHandler archiveRestHandler = ArchiveRestHandler.create();

    return new ColdToFrozenRetrier(failedBucketsArchiver, archiveRestHandler);
  }
View Full Code Here


   */
  public BucketFreezer getConfiguredBucketFreezer() {
    IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
        .create(LocalFileSystemPaths.create().getSafeDirectory());
    BucketLocker bucketLocker = new ArchiveBucketLocker();
    FailedBucketsArchiver failedBucketsArchiver = new FailedBucketsArchiver(
        bucketMover, bucketLocker);
    ArchiveRestHandler archiveRestHandler = ArchiveRestHandler.create();

    return new BucketFreezer(bucketMover, bucketLocker, archiveRestHandler,
        failedBucketsArchiver);
View Full Code Here

      @Override
      public BucketLock getLockForBucket(Bucket bucket) {
        return new BucketLock(bucket, createDirectory());
      }
    };
    FailedBucketsArchiver failedBucketsArchiver = new FailedBucketsArchiver(
        bucketMover, bucketLocker);

    addsFileToBucket = new AddsFileToBucket();
    retrier = new ColdToFrozenRetrier(failedBucketsArchiver,
        addsFileToBucket);
View Full Code Here

    ArchiveRestHandler internalErrorRestHandler = new ArchiveRestHandler(
        TUtilsMockito.createInternalServerErrorHttpClientMock(), serverMBean);
    ArchiveRestHandler successfulRealRestHandler = new ArchiveRestHandler(
        new DefaultHttpClient(), serverMBean);

    FailedBucketsArchiver noOpFailedBucketsArchiver = mock(FailedBucketsArchiver.class);
    FailedBucketsArchiver realFailedBucketsArchiver = new FailedBucketsArchiver(
        bucketMover, bucketLocker);

    failingBucketFreezerWithoutRecovery = new BucketFreezer(bucketMover,
        bucketLocker, internalErrorRestHandler, noOpFailedBucketsArchiver);
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.archive.recovery.FailedBucketsArchiver

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.