Examples of ArchiveFileSystem


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

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

          "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

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

   * 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

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

  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

Examples of org.jboss.shrinkwrap.vfs3.ArchiveFileSystem

  
   private VirtualFile mount(Archive<?> archive) throws IOException
   {
      final TempDir tempDir = tempFileProvider.createTempDir(archive.getName());
      VirtualFile virtualFile = VFS.getChild(UUID.randomUUID().toString()).getChild(archive.getName());
      vfsHandles.add(VFS.mount(virtualFile, new ArchiveFileSystem(archive, tempDir)));
      mountZipFiles(virtualFile);
      return virtualFile;
   }
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.