Package com.splunk.shuttl.archiver.filesystem

Examples of com.splunk.shuttl.archiver.filesystem.PathResolver


    ThawBucketTransferer thawBucketTransferer = getThawBucketTransferer(
        archiveFileSystem, thawLocationProvider);
    ListsBucketsFiltered listsBucketsFiltered = ListsBucketsFilteredFactory
        .create(configuration);
    PathResolver pathResolver = new PathResolver(configuration);
    BucketSizeResolver bucketSizeResolver = new BucketSizeResolver(
        ArchiveBucketSize.create(pathResolver, archiveFileSystem,
            localFileSystemPaths));
    GetsBucketsFromArchive getsBucketsFromArchive = new GetsBucketsFromArchive(
        thawBucketTransferer, BucketImportController.create(),
View Full Code Here


  private static BucketCopierDependencies getDependencies(
      ArchiveConfiguration config, ArchiveFileSystem archiveFileSystem,
      LocalFileSystemPaths localFileSystemPaths) {
    BucketToCsvFileExporter bucketToCsvFileExporter = BucketToCsvFileExporter
        .create(localFileSystemPaths);
    PathResolver pathResolver = new PathResolver(config);
    ArchiveBucketSize archiveBucketSize = ArchiveBucketSize.create(
        pathResolver, archiveFileSystem, localFileSystemPaths);

    TgzFormatExporter tgzFormatExporter = TgzFormatExporter
        .create(CreatesBucketTgz.create(localFileSystemPaths));
View Full Code Here

  }

  public static MetadataStore create(ArchiveConfiguration config,
      ArchiveFileSystem archiveFileSystem,
      LocalFileSystemPaths localFileSystemPaths) {
    return new MetadataStore(new PathResolver(config), new FlatFileStorage(
        localFileSystemPaths), archiveFileSystem, new TransactionExecuter(),
        localFileSystemPaths);
  }
View Full Code Here

   * @return instance configured with specified config.
   */
  public static BucketFormatResolver create(ArchiveConfiguration config) {
    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    PathResolver pathResolver = new PathResolver(config);
    BucketFormatChooser bucketFormatChooser = new BucketFormatChooser(config);
    return new BucketFormatResolver(pathResolver, archiveFileSystem,
        bucketFormatChooser);
  }
View Full Code Here

   * @return instance configured with the configuration.
   */
  public static ArchiveBucketsLister create(ArchiveConfiguration config) {
    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    PathResolver pathResolver = new PathResolver(config);

    ArchivedIndexesLister indexesLister = new ArchivedIndexesLister(
        pathResolver, archiveFileSystem);
    return new ArchiveBucketsLister(archiveFileSystem, indexesLister,
        pathResolver);
View Full Code Here

  /**
   * @param config
   * @return
   */
  public static ArchivedIndexesLister create(ArchiveConfiguration config) {
    return new ArchivedIndexesLister(new PathResolver(config),
        ArchiveFileSystemFactory.getWithConfiguration(config));
  }
View Full Code Here

    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getConfiguredArchiveFileSystem();
    ArchiveConfiguration archiveConfiguration = ArchiveConfiguration
        .getSharedInstance();
    PathResolver pathResolver = new PathResolver(archiveConfiguration);
    ArchivedIndexesLister indexesLister = new ArchivedIndexesLister(
        pathResolver, archiveFileSystem);

    JSONObject json = JsonUtils.writeKeyValueAsJson(
        JsonObjectNames.INDEX_COLLECTION, indexesLister.listIndexes());
View Full Code Here

  private static BucketSizeResolver getBucketSizeResolver() {
    ArchiveConfiguration config = ArchiveConfiguration.getSharedInstance();
    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    LocalFileSystemPaths localFileSystemPaths = LocalFileSystemPaths.create();
    return new BucketSizeResolver(ArchiveBucketSize.create(new PathResolver(
        config), archiveFileSystem, localFileSystemPaths));
  }
View Full Code Here

    bucketThawer = BucketThawerFactory
        .createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(config,
            SplunkIndexesLayer, localFileSystemPaths);

    PathResolver pathResolver = new PathResolver(config);
    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    archiveBucketSize = ArchiveBucketSize.create(pathResolver,
        archiveFileSystem, localFileSystemPaths);
  }
View Full Code Here

    config = getLocalFileSystemConfiguration();
    archiveFileSystem = ArchiveFileSystemFactory.getWithConfiguration(config);
    bucketArchiver = BucketShuttlerFactory
        .createWithConfFileSystemAndLocalPaths(config, archiveFileSystem,
            new LocalFileSystemPaths(archiverData.getAbsolutePath()));
    pathResolver = new PathResolver(config);
  }
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.filesystem.PathResolver

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.