Package com.splunk.shuttl.archiver.filesystem

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


  private BucketArchiver bucketArchiver;

  @BeforeMethod
  public void setUp() {
    config = TUtilsFunctional.getLocalFileSystemConfiguration();
    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    archiverData = createDirectory();
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        archiverData.getAbsolutePath());
    PathResolver pathResolver = new PathResolver(config);
View Full Code Here


          "db");
      Bucket normalBucket = new Bucket(replicatedBucket.getPath(),
          replicatedBucket.getIndex(), normalBucketName,
          replicatedBucket.getFormat());
      String archivePath = pathResolver.resolveArchivePath(normalBucket);
      ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
          .getWithConfiguration(config);
      try {
        archivePathAsserter.assertStateOfArchivePathOnFileSystem(archivePath,
            archiveFileSystem);
      } catch (IOException e) {
View Full Code Here

   * logic. It serves as the metadata store for glacier.
   */
  private GlacierArchiveFileSystem getGlacierArchiveFileSystem(
      GlacierClient client, LocalFileSystemPaths localPaths,
      ArchiveConfiguration csvConfig) {
    ArchiveFileSystem metaStore = ArchiveFileSystemFactory
        .getWithConfiguration(csvConfig);
    return GlacierArchiveFileSystemFactory.create(localPaths, client,
        metaStore, csvConfig);
  }
View Full Code Here

  private void assertBucketWasArchived(LocalBucket bucket) {
    ArchiveConfiguration config = ArchiveConfiguration
        .createConfigurationFromMBean();
    PathResolver pathResolver = new PathResolver(config);
    ArchiveFileSystem archive = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    try {
      assertTrue(archive.exists(pathResolver.resolveArchivePath(bucket)));
    } catch (Exception e) {
      TUtilsTestNG.failForException(null, e);
    }
  }
View Full Code Here

TOP

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

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.