Package com.splunk.shuttl.archiver.bucketlock

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


  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();

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


   *           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();

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

  @BeforeMethod
  public void setUp() {
    safeBucketDirectory = createDirectory();
    bucketMover = IndexPreservingBucketMover.create(safeBucketDirectory);
    bucketLocker = new BucketLocker() {

      @Override
      public BucketLock getLockForBucket(Bucket bucket) {
        return new BucketLock(bucket, createDirectory());
      }
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

    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(
        new DefaultHttpClient(), serverMBean);
View Full Code Here

TOP

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

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.