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

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


  }

  private static ColdToFrozenRetrier createRetrier() {
    RegistersArchiverMBean.create().register();

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


   *
   * @throws ArchiverMBeanNotRegisteredException
   *           if archiver MBean is not registered.
   */
  public BucketFreezer getConfiguredBucketFreezer() {
    IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
        .create(LocalFileSystemPaths.create().getSafeDirectory());
    BucketLocker bucketLocker = new ArchiveBucketLocker();
    FailedBucketsArchiver failedBucketsArchiver = new FailedBucketsArchiver(
        bucketMover, bucketLocker);
    ArchiveRestHandler archiveRestHandler = ArchiveRestHandler.create();
View Full Code Here

        throws InstanceNotFoundException {
      File tempDirectory = createDirectory();

      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(
View Full Code Here

    ShuttlServerMBean serverMBean = ShuttlServer.getMBeanProxy();
    localFileSystemPaths = LocalFileSystemPaths.create();
    pathResolver = new PathResolver(config);
    hadoopFileSystem = getHadoopFileSystem(hadoopHost, hadoopPort);

    IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
        .create(localFileSystemPaths.getSafeDirectory());
    BucketLocker bucketLocker = new ArchiveBucketLocker();
    ArchiveRestHandler internalErrorRestHandler = new ArchiveRestHandler(
        TUtilsMockito.createInternalServerErrorHttpClientMock(), serverMBean);
    ArchiveRestHandler successfulRealRestHandler = new ArchiveRestHandler(
View Full Code Here

    asserBucketWasArchived(bucket);
  }

  private LocalBucket putBucketInSafeDirectory() {
    File safeDir = LocalFileSystemPaths.create().getSafeDirectory();
    IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
        .create(safeDir);
    LocalBucket bucket = TUtilsBucket.createBucket();
    bucketMover.moveBucket(bucket);
    return bucket;
  }
View Full Code Here

TOP

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

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.