Package com.splunk.shuttl.archiver.archive

Examples of com.splunk.shuttl.archiver.archive.ArchiveRestHandler


    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


      IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
          .create(movedBucketsLocation);
      BucketLocker bucketLocker = new BucketLockerInTestDir(
          createDirectoryInParent(tempDirectory, "bucketlocks"));
      ShuttlServerMBean serverMBean = ShuttlServer.getMBeanProxy();
      ArchiveRestHandler archiveRestHandler = new ArchiveRestHandler(
          new DefaultHttpClient(), serverMBean);

      return new BucketFreezer(bucketMover, bucketLocker, archiveRestHandler,
          mock(FailedBucketsArchiver.class));
    }
View Full Code Here

    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(
        new DefaultHttpClient(), serverMBean);

    FailedBucketsArchiver noOpFailedBucketsArchiver = mock(FailedBucketsArchiver.class);
    FailedBucketsArchiver realFailedBucketsArchiver = new FailedBucketsArchiver(
        bucketMover, bucketLocker);
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.archive.ArchiveRestHandler

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.