Package com.splunk.shuttl.archiver

Examples of com.splunk.shuttl.archiver.LocalFileSystemPaths


  private ThawBucketLocker thawBucketLocker;
  private LocalFileSystemPaths localFileSystemPaths;

  @BeforeMethod
  public void setUp() {
    localFileSystemPaths = new LocalFileSystemPaths(createDirectory());
    thawBucketLocker = new ThawBucketLocker(localFileSystemPaths);
  }
View Full Code Here


    ArchiveConfiguration config = TUtilsFunctional
        .getLocalFileSystemConfiguration();
    localFileSystem = ArchiveFileSystemFactory.getWithConfiguration(config);

    pathResolver = new PathResolver(config);
    localFileSystemPaths = new LocalFileSystemPaths(createDirectory());
    flatFileStorage = new FlatFileStorage(localFileSystemPaths);
    metadataStore = new MetadataStore(pathResolver, flatFileStorage,
        localFileSystem, new TransactionExecuter(), localFileSystemPaths);

    remoteBucket = TUtilsBucket.createRemoteBucket();
View Full Code Here

        .getLocalCsvArchiveConfigration();
    ArchiveFileSystem localFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(csvConfig);
    csvBucketArchiver = BucketShuttlerFactory
        .createWithConfFileSystemAndLocalPaths(csvConfig, localFileSystem,
            new LocalFileSystemPaths(archiverData.getAbsolutePath()));
    PathResolver pathResolver = new PathResolver(csvConfig);
    ArchivedIndexesLister indexesLister = new ArchivedIndexesLister(
        pathResolver, localFileSystem);
    bucketsLister = new ArchiveBucketsLister(localFileSystem, indexesLister,
        pathResolver);
View Full Code Here

  public void setUp() {
    config = TUtilsFunctional.getLocalFileSystemConfiguration();
    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    archiverData = createDirectory();
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        archiverData.getAbsolutePath());
    PathResolver pathResolver = new PathResolver(config);
    archiveBucketSize = ArchiveBucketSize.create(pathResolver,
        archiveFileSystem, localFileSystemPaths);
    listsBucketsFiltered = ListsBucketsFilteredFactory.create(config);
View Full Code Here

  public void setUp() throws IllegalIndexException {
    thawIndex = "someIndex";
    config = getLocalFileSystemConfiguration();
    archiveFileSystem = ArchiveFileSystemFactory.getWithConfiguration(config);
    archiverData = createDirectory();
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        archiverData.getAbsolutePath());
    bucketArchiver = BucketShuttlerFactory
        .createWithConfFileSystemAndLocalPaths(config, archiveFileSystem,
            localFileSystemPaths);
    thawDirectory = TUtilsFile.createDirectory();
View Full Code Here

  private BucketExportController bucketExportController;
  private LocalFileSystemPaths localFileSystemPaths;

  @BeforeMethod
  public void setUp() {
    localFileSystemPaths = new LocalFileSystemPaths(createDirectory());
    bucketExportController = BucketExportController
        .create(CsvExporter.create(BucketToCsvFileExporter
            .create(localFileSystemPaths)), TgzFormatExporter
            .create(CreatesBucketTgz.create(localFileSystemPaths)));
  }
View Full Code Here

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

  }

  private void setup(ArchiveConfiguration config) throws IllegalIndexException {
    GlacierClient client = new GlacierClient(new FakeArchiveTransferManager(
        createDirectory()), "vault", new HashMap<String, String>());
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        createDirectory());

    GlacierArchiveFileSystem glacierArchive = getGlacierArchiveFileSystem(
        client, localFileSystemPaths, config);
View Full Code Here

  private GetsBucketsExportFile getsBucketsExportFile;
  private Bucket bucket;

  @BeforeMethod
  public void setUp() {
    getsBucketsExportFile = new GetsBucketsExportFile(new LocalFileSystemPaths(
        createDirectory()));
    bucket = TUtilsBucket.createBucket();
  }
View Full Code Here

public class CreatesBucketTgzIntegrationTest {

  public void _usingRealClasses_tgzBucketFileExists() {
    CreatesBucketTgz createsBucketTgz = new CreatesBucketTgz(
        ShellExecutor.getInstance(), new GetsBucketsExportFile(
            new LocalFileSystemPaths(createDirectory())));

    LocalBucket bucket = TUtilsBucket.createBucket();
    File tgz = createsBucketTgz.createTgz(bucket);
    assertTrue(tgz.exists());
    assertNotEquals(0, tgz.length());
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.LocalFileSystemPaths

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.