Examples of tryLockShared()


Examples of com.splunk.shuttl.archiver.bucketlock.BucketLock.tryLockShared()

        new File(path), BucketFormat.SPLUNK_BUCKET);
  }

  private List<BucketLock> createBucketLocks(LocalBucket bucket) {
    BucketLock bucketLock = bucketLocker.getLockForBucket(bucket);
    if (!bucketLock.tryLockShared())
      throw new IllegalStateException("We must ensure that the"
          + " bucket archiver has a " + "lock to the bucket it will transfer");

    BucketLock transferLock = new BucketTransferLocker(
        LocalFileSystemPaths.create()).getLockForBucket(bucket);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.