use of com.yelp.nrtsearch.server.backup.ArchiverImpl in project nrtsearch by Yelp.
the class WarmerTest method setup.
@Before
public void setup() throws IOException {
Path s3Directory = folder.newFolder("s3").toPath();
Path archiverDirectory = folder.newFolder("archiver").toPath();
api = S3Mock.create(8011, s3Directory.toAbsolutePath().toString());
api.start();
s3 = new AmazonS3Client(new AnonymousAWSCredentials());
s3.setEndpoint("http://127.0.0.1:8011");
String bucketName = "warmer-unittest";
s3.createBucket(bucketName);
archiver = new ArchiverImpl(s3, bucketName, archiverDirectory, new TarImpl(TarImpl.CompressionMode.LZ4));
warmer = new Warmer(archiver, service, index, 2);
}
use of com.yelp.nrtsearch.server.backup.ArchiverImpl in project nrtsearch by Yelp.
the class LuceneServerTest method setUpArchiver.
private Archiver setUpArchiver() throws IOException {
Path s3Directory = folder.newFolder("s3").toPath();
Path archiverDirectory = folder.newFolder("archiver").toPath();
api = S3Mock.create(8011, s3Directory.toAbsolutePath().toString());
api.start();
s3 = new AmazonS3Client(new AnonymousAWSCredentials());
s3.setEndpoint("http://127.0.0.1:8011");
String bucketName = "warmer-unittest";
s3.createBucket(bucketName);
return new ArchiverImpl(s3, bucketName, archiverDirectory, new TarImpl(TarImpl.CompressionMode.LZ4));
}
use of com.yelp.nrtsearch.server.backup.ArchiverImpl in project nrtsearch by Yelp.
the class ReplicationTestFailureScenarios method setUp.
@Before
public void setUp() throws IOException {
// setup S3 for backup/restore
s3Directory = folder.newFolder("s3").toPath();
archiverDirectory = folder.newFolder("archiver").toPath();
api = S3Mock.create(8011, s3Directory.toAbsolutePath().toString());
api.start();
s3 = new AmazonS3Client(new AnonymousAWSCredentials());
s3.setEndpoint("http://127.0.0.1:8011");
s3.createBucket(BUCKET_NAME);
archiver = new ArchiverImpl(s3, BUCKET_NAME, archiverDirectory, new TarImpl(Tar.CompressionMode.LZ4));
startPrimaryServer();
startSecondaryServer();
}
Aggregations