Package com.splunk.shuttl.archiver

Examples of com.splunk.shuttl.archiver.LocalFileSystemPaths


  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


            getLocalFileSystemPaths());
    assertNotNull(fileSystem);
  }

  private LocalFileSystemPaths getLocalFileSystemPaths() {
    return new LocalFileSystemPaths(createDirectory().getAbsolutePath());
  }
View Full Code Here

    ShuttlServerMBean serverMBean = ShuttlServer
        .getRegisteredServerMBean(logger);
   
    CallCopyBucketEndpoint callCopyBucketEndpoint = CallCopyBucketEndpoint
        .create(serverMBean);
    LocalFileSystemPaths fileSystemPaths = LocalFileSystemPaths.create();

    CopyBucketReceipts receipts = new CopyBucketReceipts(fileSystemPaths);
    ColdBucketCopier coldBucketCopier = new ColdBucketCopier(
        new ColdBucketInterator(EntryPointUtil.getSplunkService(),
            new BucketIteratorFactory()), receipts, new LockedBucketCopier(
View Full Code Here

  private LocalFileSystemPaths fileSystemPaths;
  private LocalBucket bucket;

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

  private BucketLocker realBucketLocker;
  private LocalBucket bucket;

  @BeforeMethod
  public void setUp() {
    realBucketLocker = new CopyBucketLocker(new LocalFileSystemPaths(
        createDirectory()));
    endpoint = mock(CallCopyBucketEndpoint.class);
    receipts = mock(CopyBucketReceipts.class);
    copyBucketEntryPoint = new LockedBucketCopier(realBucketLocker, endpoint,
        receipts);
View Full Code Here

  @BeforeMethod
  public void setUp() throws IllegalIndexException {
    config = TUtilsFunctional.getLocalFileSystemConfiguration();
    archiverData = createDirectory();
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        archiverData.getAbsolutePath());
    bucketArchiver = BucketShuttlerFactory.createWithConfAndLocalPaths(config,
        localFileSystemPaths);
    SplunkIndexesLayer SplunkIndexesLayer = new FakeSplunkIndexesLayer(
        thawLocation);
View Full Code Here

    thawDirectory = createDirectory();
    SplunkIndexesLayer splunkIndexesLayer = new FakeSplunkIndexesLayer(
        thawDirectory);

    archiverData = createDirectory();
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        archiverData.getAbsolutePath());

    csvThawer = BucketThawerFactory
        .createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(
            localCsvArchiveConfigration, splunkIndexesLayer,
View Full Code Here

  @BeforeMethod
  public void setUp() {
    tgzConf = getLocalConfigurationThatArchivesFormats(asList(BucketFormat.SPLUNK_BUCKET_TGZ));
    testDirectory = createDirectory();
    localFileSystemPaths = new LocalFileSystemPaths(
        testDirectory.getAbsolutePath());
    ArchiveFileSystem localFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(tgzConf);

    bucketArchiver = BucketShuttlerFactory
View Full Code Here

  LocalBucket bucket;
  String fileName;

  @BeforeMethod
  public void setUp() {
    real = new LocalFileSystemPaths(createDirectory());
    flatFileStorage = new FlatFileStorage(real);

    bucket = TUtilsBucket.createBucket();
    fileName = "fileName";
  }
View Full Code Here

    archiverData = createDirectory();
    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.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.