@Before public void setup() throws StorageException, InvalidKeyException, URISyntaxException { container = azurite.getContainer("oak-test"); }
private SegmentAzureNodeStoreContainer(AzuriteDockerRule azurite, BlobStoreContainer blob, String dir) throws IOException { this.blob = blob; this.dir = dir == null ? "repository" : dir; try { this.container = azurite.getContainer("oak-test"); this.mappedPort = azurite.getMappedPort(); } catch (InvalidKeyException | URISyntaxException | StorageException e) { throw new IOException(e); } }
protected String getAzurePersistencePathOrUri() { StringBuilder uri = new StringBuilder("az:"); uri.append("http://127.0.0.1:"); uri.append(azurite.getMappedPort()).append("/"); uri.append(AZURE_CONTAINER).append("/"); uri.append(AZURE_DIRECTORY); return uri.toString(); } }
public CloudBlobContainer getContainer(String name) throws URISyntaxException, StorageException, InvalidKeyException { int mappedPort = getMappedPort(); CloudStorageAccount cloud = CloudStorageAccount.parse("DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:" + mappedPort + "/devstoreaccount1;"); CloudBlobContainer container = cloud.createCloudBlobClient().getContainerReference(name); container.deleteIfExists(); container.create(); return container; }
@Before public void setup() throws StorageException, InvalidKeyException, URISyntaxException { container = azurite.getContainer("oak-test"); }
@Before public void setup() throws StorageException, InvalidKeyException, URISyntaxException { container = azurite.getContainer("oak-test"); }
@Before public void setup() throws StorageException, InvalidKeyException, URISyntaxException { container = azurite.getContainer("oak-test"); }
@Before public void setup() throws StorageException, InvalidKeyException, URISyntaxException { container = azurite.getContainer("oak-test"); }
@Before public void setup() throws Exception { container = azurite.getContainer("oak-test"); super.setup(); }
protected SegmentNodeStorePersistence getAzurePersistence() throws Exception { return new AzurePersistence(azurite.getContainer(AZURE_CONTAINER).getDirectoryReference(AZURE_DIRECTORY)); }
@Before public void setup() throws StorageException, InvalidKeyException, URISyntaxException { container = azurite.getContainer("oak-test"); getBlob().createOrReplace(); }
@Before public void setup() throws StorageException, InvalidKeyException, URISyntaxException { container = azurite.getContainer("oak-test"); journal = new AzureJournalFile(container.getDirectoryReference("journal"), "journal.log", 10); }
@Before @Override public void setUp() throws IOException { try { container = azurite.getContainer("oak-test"); archiveManager = new AzurePersistence(container.getDirectoryReference("oak")).createArchiveManager(true, false, new IOMonitorAdapter(), new FileStoreMonitorAdapter()); } catch (StorageException | InvalidKeyException | URISyntaxException e) { throw new IOException(e); } }
@Before @Override public void setUp() throws IOException { try { monitor = new TestFileStoreMonitor(); container = azurite.getContainer("oak-test"); archiveManager = new AzurePersistence(container.getDirectoryReference("oak")).createArchiveManager(true, false, new IOMonitorAdapter(), monitor); } catch (StorageException | InvalidKeyException | URISyntaxException e) { throw new IOException(e); } } }
@Before @Override public void setUp() throws Exception { container = azurite.getContainer("oak-test"); tarFiles = TarFiles.builder() .withDirectory(folder.newFolder()) .withTarRecovery((id, data, recovery) -> { // Intentionally left blank }) .withIOMonitor(new IOMonitorAdapter()) .withFileStoreMonitor(new FileStoreMonitorAdapter()) .withMaxFileSize(MAX_FILE_SIZE) .withPersistence(new AzurePersistence(container.getDirectoryReference("oak"))) .build(); } }
@Before public void setup() throws IOException, InvalidFileStoreVersionException, CommitFailedException, URISyntaxException, InvalidKeyException, StorageException { SegmentNodeStorePersistence sharedPersistence = new AzurePersistence(azurite.getContainer("oak-test").getDirectoryReference("oak")); baseFileStore = FileStoreBuilder .fileStoreBuilder(folder.newFolder()) .withCustomPersistence(sharedPersistence) .build(); base = SegmentNodeStoreBuilders.builder(baseFileStore).build(); NodeBuilder builder = base.getRoot().builder(); builder.child("foo").child("bar").setProperty("version", "v1"); base.merge(builder, EmptyHook.INSTANCE, CommitInfo.EMPTY); baseFileStore.flush(); SegmentNodeStorePersistence localPersistence = new TarPersistence(folder.newFolder()); splitPersistence = new SplitPersistence(sharedPersistence, localPersistence); splitFileStore = FileStoreBuilder .fileStoreBuilder(folder.newFolder()) .withCustomPersistence(splitPersistence) .build(); split = SegmentNodeStoreBuilders.builder(splitFileStore).build(); }
@Before public void setup() throws IOException, InvalidFileStoreVersionException, CommitFailedException, URISyntaxException, InvalidKeyException, StorageException { SegmentNodeStorePersistence sharedPersistence = new AzurePersistence(azurite.getContainer("oak-test").getDirectoryReference("oak")); File dataStoreDir = new File(folder.getRoot(), "blobstore"); BlobStore blobStore = newBlobStore(dataStoreDir);