Package com.splunk.shuttl.archiver.archive

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


      this.archivePathAsserter = archivePathAsserter;
    }

    @Override
    public void run() {
      ArchiveConfiguration config = ArchiveConfiguration
          .createConfigurationFromMBean();
      PathResolver pathResolver = new PathResolver(config);
      String normalBucketName = replicatedBucket.getName().replaceFirst("rb",
          "db");
      Bucket normalBucket = new Bucket(replicatedBucket.getPath(),
View Full Code Here


  private ArchiveFileSystem archiveFileSystem;
  private File archiverData;

  @BeforeMethod
  public void setUp() {
    ArchiveConfiguration config = TUtilsFunctional
        .getLocalConfigurationThatArchivesFormats(asList(
            BucketFormat.SPLUNK_BUCKET, BucketFormat.CSV));
    archiveFileSystem = ArchiveFileSystemFactory.getWithConfiguration(config);
    archiverData = createDirectory();
    bucketArchiver = BucketShuttlerFactory
View Full Code Here

  }

  @Parameters(value = { "splunk.home" })
  public void _givenCsvConfig_archivesThenThawsBucketThatIsEqualToTheOriginalBucket(
      final String splunkHome) throws IllegalIndexException {
    ArchiveConfiguration csvConfig = TUtilsFunctional
        .getLocalCsvArchiveConfigration();
    assertArchiveThenThawedBucketIsImportedFromConfigsFormat(csvConfig,
        splunkHome);
  }
View Full Code Here

    assertTrue(warmToColdRetryScript.canExecute());
    return warmToColdRetryScript;
  }

  private void assertBucketWasArchived(LocalBucket bucket) {
    ArchiveConfiguration config = ArchiveConfiguration
        .createConfigurationFromMBean();
    PathResolver pathResolver = new PathResolver(config);
    ArchiveFileSystem archive = ArchiveFileSystemFactory
        .getWithConfiguration(config);
    try {
View Full Code Here

  }

  @Parameters(value = { "splunk.home" })
  public void _givenTgzConfig_archivesThenThawsBucketThatIsEqualToTheOriginalBucket(
      final String splunkHome) throws IllegalIndexException {
    ArchiveConfiguration tgzConfig = TUtilsFunctional
        .getLocalConfigurationThatArchivesFormats(asList(BucketFormat.SPLUNK_BUCKET_TGZ));
    assertArchiveThenThawedBucketIsImportedFromConfigsFormat(tgzConfig,
        splunkHome);
  }
View Full Code Here

  }

  public void createWithBucket_bucketIsNotAReplicatedBucket_returnsNonModifiedConfig() {
    LocalBucket bucket = TUtilsBucket.createBucket();
    assertFalse(bucket.isReplicatedBucket());
    ArchiveConfiguration actualConfig = configProvider.createWithBucket(bucket);
    assertEquals(config, actualConfig);
  }
View Full Code Here

  public void createWithBucket_replicatedBucket_configWithServerNameForReplicatedBucket() {
    LocalBucket replicatedBucket = TUtilsBucket.createReplicatedBucket();
    String serverName = "serverName";
    when(getsServerNameForBucket.getServerName(replicatedBucket)).thenReturn(
        serverName);
    ArchiveConfiguration configWithServerName = mock(ArchiveConfiguration.class);
    when(config.newConfigWithServerName(serverName)).thenReturn(
        configWithServerName);

    ArchiveConfiguration actualConfig = configProvider
        .createWithBucket(replicatedBucket);
    assertEquals(actualConfig, configWithServerName);
  }
View Full Code Here

        asList(coldToFrozenRetryScript.getAbsolutePath()));
    assertEquals(exit, 0);
  }

  private void asserBucketWasArchived(LocalBucket bucket) throws IOException {
    ArchiveConfiguration config = ArchiveConfiguration
        .createConfigurationFromMBean();
    String archivePath = new PathResolver(config).resolveArchivePath(bucket);
    assertTrue(ArchiveFileSystemFactory.getWithConfiguration(config).exists(
        archivePath));
  }
View Full Code Here

        });
  }

  private void assertBucketWasCopiedToArchiveFileSystem_withTeardown(
      LocalBucket bucket) {
    ArchiveConfiguration config = ArchiveConfiguration
        .createConfigurationFromMBean();
    HadoopArchiveFileSystem fileSystem = (HadoopArchiveFileSystem) ArchiveFileSystemFactory
        .getWithConfiguration(config);
    PathResolver pathResolver = new PathResolver(config);
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.