Package com.splunk.shuttl.archiver.thaw

Examples of com.splunk.shuttl.archiver.thaw.SplunkIndexesLayer


    }
  }

  private List<Bucket> filteredBucketsInThaw(List<String> indexes,
      Date earliest, Date latest) throws IllegalIndexException {
    SplunkIndexesLayer splunkIndexesLayer = SplunkIndexedLayerFactory.create();
    List<Bucket> filteredBuckets = new java.util.ArrayList<Bucket>();
    for (String index : indexes) {
      List<LocalBucket> buckets = ThawedBuckets.getBucketsFromThawLocation(
          index, splunkIndexesLayer.getThawLocation(index));
      filteredBuckets.addAll(BucketFilter.filterBuckets(buckets, earliest,
          latest));
    }
    return filteredBuckets;
  }
View Full Code Here


  }

  private File getShuttlThawLocation(String splunkUsername,
      String splunkPassword, String splunkHost, String splunkPort)
      throws IllegalIndexException {
    SplunkIndexesLayer splunkIndexesLayer = new SplunkIndexesLayer(
        TUtilsEndToEnd.getLoggedInService(splunkHost, splunkPort,
            splunkUsername, splunkPassword));
    return splunkIndexesLayer.getThawLocation(TUtilsEndToEnd.REAL_SPLUNK_INDEX);
  }
View Full Code Here

      throw new UnknownIndexPathException(bucketPath);
  }

  public static String getIndexNameByBucketPath(File bucketDir,
      Service splunkService) {
    return new IndexScanner(new IndexStoragePaths(new SplunkIndexesLayer(
        splunkService))).getIndex(bucketDir);
  }
View Full Code Here

    archiverData = createDirectory();
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        archiverData.getAbsolutePath());
    bucketArchiver = BucketShuttlerFactory.createWithConfAndLocalPaths(config,
        localFileSystemPaths);
    SplunkIndexesLayer SplunkIndexesLayer = new FakeSplunkIndexesLayer(
        thawLocation);
    thawLocation = createDirectory();

    bucketThawer = BucketThawerFactory
        .createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(config,
View Full Code Here

  @BeforeMethod
  public void setUp() throws IllegalIndexException {
    localCsvArchiveConfigration = TUtilsFunctional
        .getLocalCsvArchiveConfigration();
    thawDirectory = createDirectory();
    SplunkIndexesLayer splunkIndexesLayer = new FakeSplunkIndexesLayer(
        thawDirectory);

    archiverData = createDirectory();
    LocalFileSystemPaths localFileSystemPaths = new LocalFileSystemPaths(
        archiverData.getAbsolutePath());
View Full Code Here

    tempDirectory = createDirectory();

    Service service = TUtilsEndToEnd.getLoggedInService(splunkHost, splunkPort,
        splunkUserName, splunkPw);
    assertTrue(service.getIndexes().containsKey(thawIndex));
    splunkIndexesLayer = new SplunkIndexesLayer(service);

    try {
      thawDirectoryLocation = splunkIndexesLayer.getThawLocation(thawIndex);
      thawDirectoryLocation.mkdirs();
    } catch (IllegalIndexException e) {
View Full Code Here

  public void _givenTgzConfig_thawsTgzBucketToSplunkBucket()
      throws IllegalIndexException {
    File thawDir = createDirectory();

    Bucket bucket = getTgzBucketArchived();
    SplunkIndexesLayer splunkIndexesLayer = new FakeSplunkIndexesLayer(thawDir);

    BucketThawer bucketThawer = BucketThawerFactory
        .createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(tgzConf,
            splunkIndexesLayer, localFileSystemPaths);
View Full Code Here

    bucketArchiver = BucketShuttlerFactory
        .createWithConfFileSystemAndLocalPaths(config, archiveFileSystem,
            localFileSystemPaths);
    thawDirectory = TUtilsFile.createDirectory();

    SplunkIndexesLayer splunkIndexesLayer = new FakeSplunkIndexesLayer(
        thawDirectory);

    bucketThawer = BucketThawerFactory
        .createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(config,
            splunkIndexesLayer, localFileSystemPaths);
View Full Code Here

    bucketArchiver = BucketShuttlerFactory
        .createWithConfFileSystemAndLocalPaths(config, glacierArchive,
            localFileSystemPaths);

    SplunkIndexesLayer splunkIndexesLayer = new FakeSplunkIndexesLayer(
        createDirectory());

    bucketThawer = BucketThawerFactory.create(config, splunkIndexesLayer,
        localFileSystemPaths, glacierArchive);
  }
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.thaw.SplunkIndexesLayer

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.