Package com.splunk.shuttl.archiver.filesystem.transaction

Examples of com.splunk.shuttl.archiver.filesystem.transaction.Transaction


   * @return the transferred bucket.
   */
  public LocalBucket transferBucketToThaw(Bucket bucket) throws IOException {
    File temp = thawLocationProvider.getThawTransferLocation(bucket);
    File dst = thawLocationProvider.getLocationInThawForBucket(bucket);
    Transaction getBucketTransaction = GetBucketTransaction.create(
        archiveFileSystem, bucket, temp.getAbsolutePath(),
        dst.getAbsolutePath());
    transactionExecuter.execute(getBucketTransaction);

    return bucketFactory.createWithIndexDirectoryAndSize(bucket.getIndex(),
View Full Code Here


    String remotePathForMetadata = pathResolver.resolvePathForBucketMetadata(
        bucket, metadataFile);
    File metadataTransfersDir = localFileSystemPaths
        .getMetadataTransfersDirectory(bucket);

    Transaction getBucketSizeTransaction = GetFileTransaction.create(
        archiveFileSystem, remotePathForMetadata,
        metadataTransfersDir.getAbsolutePath(), metadataFile.getAbsolutePath());

    executeTransaction(bucket, metadataFile, getBucketSizeTransaction);
  }
View Full Code Here

  public void transferBucketToArchive(Bucket bucket) {
    String destination = pathResolver.resolveArchivePath(bucket);
    String tempPath = pathResolver.resolveTempPathForBucket(bucket);
    logger.info(will("attempting to transfer bucket to archive", "bucket",
        bucket, "destination", destination));
    Transaction bucketTransaction = PutBucketTransaction.create(
        archiveFileSystem, bucket, tempPath, destination);

    // TODO: Merge the bucket transaction and the bucketsize transaction. They
    // should be able to be run at once with
    // transactionExecuter.execute(Transaction... transactions)
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.filesystem.transaction.Transaction

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.