Package com.splunk.shuttl.archiver.archive

Examples of com.splunk.shuttl.archiver.archive.ArchiveConfiguration


    Runnable r = new BucketShuttlerRunner(bucketShuttler, bucket, bucketLock);
    new Thread(r).run();
  }

  private BucketShuttler createShuttler(LocalBucket bucket) {
    ArchiveConfiguration config = configProvider.createWithBucket(bucket);
    BucketShuttler bucketShuttler = shuttlProvider.createWithConfig(config);
    return bucketShuttler;
  }
View Full Code Here


  /**
   * Default {@link BucketThawer} as configured with .conf files.
   */
  public static BucketThawer createDefaultThawer() {
    SplunkIndexesLayer splunkIndexesLayer = SplunkIndexedLayerFactory.create();
    ArchiveConfiguration config = ArchiveConfiguration.getSharedInstance();
    return createWithConfigAndSplunkSettingsAndLocalFileSystemPaths(config,
        splunkIndexesLayer, LocalFileSystemPaths.create());
  }
View Full Code Here

  public static GlacierArchiveFileSystem create(
      LocalFileSystemPaths localFileSystemPaths) {
    AWSCredentialsImpl credentials = AWSCredentialsImpl.create();
    GlacierClient client = GlacierClient.create(credentials);
    ArchiveFileSystem s3 = S3ArchiveFileSystemFactory.createS3n();
    ArchiveConfiguration config = ArchiveConfiguration.getSharedInstance();
    return create(localFileSystemPaths, client, s3, config);
  }
View Full Code Here

  @POST
  @Produces(MediaType.TEXT_PLAIN)
  public void archiveBucket(@FormParam("path") String path,
      @FormParam("index") String index) {
    try {
      ArchiveConfiguration config = ArchiveConfiguration.getSharedInstance();

      if (isPathReplicatedBucketWithRawdataOnly(path)) {
        try {
          deletePath(path, index);
        } catch (IOException e) {
View Full Code Here

    logger.info(happened("Received REST request to list indexes", "endpoint",
        ENDPOINT_LIST_INDEXES));

    ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
        .getConfiguredArchiveFileSystem();
    ArchiveConfiguration archiveConfiguration = ArchiveConfiguration
        .getSharedInstance();
    PathResolver pathResolver = new PathResolver(archiveConfiguration);
    ArchivedIndexesLister indexesLister = new ArchivedIndexesLister(
        pathResolver, archiveFileSystem);
View Full Code Here

    BucketSizeResolver bucketSizeResolver = getBucketSizeResolver();
    return bucketSizeResolver.resolveBucketSize(bucket);
  }

  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

  /**
   * @return a {@link PathResolver} configured with
   *         {@link ArchiverConfiguration}.
   */
  public static PathResolver getConfigured() {
    ArchiveConfiguration archiveConfiguration = ArchiveConfiguration
        .getSharedInstance();
    return new PathResolver(archiveConfiguration);
  }
View Full Code Here

  /**
   * @return {@link ArchiveFileSystem} as configured.
   */
  public static ArchiveFileSystem getConfiguredArchiveFileSystem() {
    ArchiveConfiguration config = ArchiveConfiguration.getSharedInstance();
    return getWithConfiguration(config);
  }
View Full Code Here

  private MetadataStore metadataStore;
  private String fileName;

  @BeforeMethod
  public void setUp() {
    ArchiveConfiguration config = TUtilsFunctional
        .getLocalFileSystemConfiguration();
    localFileSystem = ArchiveFileSystemFactory.getWithConfiguration(config);

    pathResolver = new PathResolver(config);
    localFileSystemPaths = new LocalFileSystemPaths(createDirectory());
View Full Code Here

  private File archiverData;

  @BeforeMethod
  public void setUp() {
    archiverData = createDirectory();
    ArchiveConfiguration csvConfig = TUtilsFunctional
        .getLocalCsvArchiveConfigration();
    ArchiveFileSystem localFileSystem = ArchiveFileSystemFactory
        .getWithConfiguration(csvConfig);
    csvBucketArchiver = BucketShuttlerFactory
        .createWithConfFileSystemAndLocalPaths(csvConfig, localFileSystem,
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.archive.ArchiveConfiguration

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.