Skip to content

Commit 2212854

Browse files
committed
OAK-11267: Upgrade Azure SDK V8 to V12 for oak-blob-azure
1 parent b07f748 commit 2212854

30 files changed

+3437
-848
lines changed

oak-blob-cloud-azure/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,15 @@
4141
com.fasterxml.jackson.annotation;resolution:=optional,
4242
com.fasterxml.jackson.databind*;resolution:=optional,
4343
com.fasterxml.jackson.dataformat.xml;resolution:=optional,
44+
com.fasterxml.jackson.dataformat.xml.annotation;resolution:=optional,
4445
com.fasterxml.jackson.datatype*;resolution:=optional,
4546
com.azure.identity.broker.implementation;resolution:=optional,
4647
com.azure.xml;resolution:=optional,
48+
com.azure.storage.common*;resolution:=optional,
49+
com.azure.storage.internal*;resolution:=optional,
50+
com.microsoft.aad.*;resolution:=optional,
4751
com.microsoft.aad.msal4jextensions*;resolution:=optional,
52+
com.microsoft.aad.msal4jextensions.persistence*;resolution:=optional,
4853
com.sun.net.httpserver;resolution:=optional,
4954
sun.misc;resolution:=optional,
5055
net.jcip.annotations;resolution:=optional,
@@ -68,6 +73,13 @@
6873
azure-core,
6974
azure-identity,
7075
azure-json,
76+
azure-xml,
77+
azure-storage-blob,
78+
azure-storage-common,
79+
azure-storage-internal-avro,
80+
com.microsoft.aad,
81+
com.microsoft.aad.msal4jextensions,
82+
com.microsoft.aad.msal4jextensions.persistence,
7183
guava,
7284
jsr305,
7385
reactive-streams,
@@ -170,6 +182,11 @@
170182
<groupId>com.microsoft.azure</groupId>
171183
<artifactId>azure-storage</artifactId>
172184
</dependency>
185+
<dependency>
186+
<groupId>com.azure</groupId>
187+
<artifactId>azure-storage-blob</artifactId>
188+
<version>12.27.1</version>
189+
</dependency>
173190
<dependency>
174191
<groupId>com.microsoft.azure</groupId>
175192
<artifactId>azure-keyvault-core</artifactId>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package org.apache.jackrabbit.oak.blob.cloud.azure.blobstorage;
20+
21+
import org.apache.jackrabbit.core.data.DataIdentifier;
22+
import org.apache.jackrabbit.core.data.DataRecord;
23+
import org.apache.jackrabbit.core.data.DataStoreException;
24+
import org.apache.jackrabbit.oak.plugins.blob.datastore.directaccess.DataRecordDownloadOptions;
25+
import org.apache.jackrabbit.oak.plugins.blob.datastore.directaccess.DataRecordUpload;
26+
import org.apache.jackrabbit.oak.plugins.blob.datastore.directaccess.DataRecordUploadException;
27+
import org.apache.jackrabbit.oak.plugins.blob.datastore.directaccess.DataRecordUploadOptions;
28+
import org.apache.jackrabbit.oak.spi.blob.AbstractSharedBackend;
29+
import org.jetbrains.annotations.NotNull;
30+
31+
import java.net.URI;
32+
import java.util.Properties;
33+
34+
35+
public abstract class AbstractAzureBlobStoreBackend extends AbstractSharedBackend {
36+
37+
protected abstract DataRecordUpload initiateHttpUpload(long maxUploadSizeInBytes, int maxNumberOfURIs, @NotNull final DataRecordUploadOptions options);
38+
protected abstract DataRecord completeHttpUpload(@NotNull String uploadTokenStr) throws DataRecordUploadException, DataStoreException;
39+
protected abstract void setHttpDownloadURIExpirySeconds(int seconds);
40+
protected abstract void setHttpUploadURIExpirySeconds(int seconds);
41+
protected abstract void setHttpDownloadURICacheSize(int maxSize);
42+
protected abstract URI createHttpDownloadURI(@NotNull DataIdentifier identifier, @NotNull DataRecordDownloadOptions downloadOptions);
43+
public abstract void setProperties(final Properties properties);
44+
45+
}

0 commit comments

Comments
 (0)