Skip to content

Commit 1908943

Browse files
committed
release 0.0.4-beta source code for java
1 parent af2995e commit 1908943

File tree

22 files changed

+97
-73
lines changed

22 files changed

+97
-73
lines changed

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
# 0.0.3-beta 2022-12-27
1+
# 0.0.4-beta # 0.0.4-beta 2023-02-20
2+
3+
### G42Cloud SDK CBR
4+
5+
- _Features_
6+
- None
7+
- _Bug Fix_
8+
- None
9+
- _Change_
10+
- The request parameter `policy_id` changed to required of the interface `AssociateVaultPolicy`
11+
12+
### G42Cloud SDK IMS
13+
14+
- _Features_
15+
- None
16+
- _Bug Fix_
17+
- None
18+
- _Change_
19+
- Add the enum values `IsoImage` to the request parameter `type` to the interface `CreateImage`
20+
21+
# 0.0.3-beta 2023-01-06
222

323
### G42Cloud SDK AS
424

core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
<parent>
77
<groupId>io.github.g42cloud-sdk</groupId>
8-
<version>0.0.3-beta</version>
8+
<version>0.0.4-beta</version>
99
<artifactId>g42cloud-sdk</artifactId>
1010
</parent>
1111

1212
<modelVersion>4.0.0</modelVersion>
1313
<packaging>jar</packaging>
1414
<artifactId>g42cloud-sdk-core</artifactId>
15-
<version>0.0.3-beta</version>
15+
<version>0.0.4-beta</version>
1616
<name>G42 Cloud SDK for Java Core</name>
1717
<description>Core library for G42 Cloud Java SDK</description>
1818
<url>https://github.com/g42cloud-sdk/g42cloud-sdk-java</url>

core/src/main/java/com/g42cloud/sdk/core/http/HttpConfig.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import com.g42cloud.sdk.core.utils.RandomUtils;
2727
import okhttp3.ConnectionPool;
2828
import okhttp3.Dispatcher;
29-
import okhttp3.internal.Util;
3029

3130
import javax.net.ssl.SSLSocketFactory;
3231
import javax.net.ssl.X509TrustManager;
@@ -35,8 +34,7 @@
3534
import java.util.List;
3635
import java.util.Objects;
3736
import java.util.concurrent.ExecutorService;
38-
import java.util.concurrent.SynchronousQueue;
39-
import java.util.concurrent.ThreadPoolExecutor;
37+
import java.util.concurrent.ForkJoinPool;
4038
import java.util.concurrent.TimeUnit;
4139

4240
/**
@@ -71,11 +69,9 @@ public class HttpConfig {
7169

7270
private ConnectionPool connectionPool = new ConnectionPool(5, 5L, TimeUnit.MINUTES);
7371

74-
private ExecutorService executorService = new ThreadPoolExecutor(
75-
0, Integer.MAX_VALUE, 60, TimeUnit.SECONDS,
76-
new SynchronousQueue<>(), Util.threadFactory("OkHttp Dispatcher", false));
72+
private ExecutorService executorService = new ForkJoinPool();
7773

78-
private Dispatcher dispatcher = new Dispatcher(executorService);
74+
private Dispatcher dispatcher;
7975

8076

8177
public int getTimeout() {

core/src/main/java/com/g42cloud/sdk/core/impl/DefaultHttpClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ public DefaultHttpClient withHttpConfig(HttpConfig httpConfig) {
9595
this.httpConfig = httpConfig;
9696
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder();
9797
clientBuilder.connectionPool(httpConfig.getConnectionPool());
98-
clientBuilder.dispatcher(httpConfig.getDispatcher());
98+
if (Objects.nonNull(httpConfig.getDispatcher())) {
99+
clientBuilder.dispatcher(httpConfig.getDispatcher());
100+
}
99101
clientBuilder.connectTimeout(httpConfig.getTimeout(), TimeUnit.SECONDS).readTimeout(DEFAULT_READ_TIMEOUT,
100102
TimeUnit.SECONDS);
101103

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<packaging>pom</packaging>
88
<groupId>io.github.g42cloud-sdk</groupId>
99
<artifactId>g42cloud-sdk</artifactId>
10-
<version>0.0.3-beta</version>
10+
<version>0.0.4-beta</version>
1111
<name>G42 Cloud SDK for Java Parent</name>
1212
<description>G42 Cloud SDK for Java</description>
1313
<url>https://github.com/g42cloud-sdk/g42cloud-sdk-java</url>
@@ -36,11 +36,11 @@
3636

3737
<properties>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39-
<revision>0.0.3-beta</revision>
39+
<revision>0.0.4-beta</revision>
4040
<snakeyaml.version>1.32</snakeyaml.version>
4141
<jackson.version>2.14.1</jackson.version>
4242
<okhttp.version>3.14.9</okhttp.version>
43-
<bgmprovider.version>1.0.4</bgmprovider.version>
43+
<bgmprovider.version>1.0.3</bgmprovider.version>
4444
<junit.version>4.13.1</junit.version>
4545
<slf4j.version>1.7.32</slf4j.version>
4646
<logback.version>1.2.9</logback.version>

services/as/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<groupId>io.github.g42cloud-sdk</groupId>
7-
<version>0.0.3-beta</version>
7+
<version>0.0.4-beta</version>
88
<artifactId>g42cloud-sdk-services</artifactId>
99
<relativePath>..</relativePath>
1010
</parent>
1111
<artifactId>g42cloud-sdk-as</artifactId>
12-
<version>0.0.3-beta</version>
12+
<version>0.0.4-beta</version>
1313
<name>G42Cloud SDK for AS</name>
1414

1515
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>io.github.g42cloud-sdk</groupId>
2020
<artifactId>g42cloud-sdk-core</artifactId>
21-
<version>0.0.3-beta</version>
21+
<version>0.0.4-beta</version>
2222
</dependency>
2323
</dependencies>
2424

services/bms/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<groupId>io.github.g42cloud-sdk</groupId>
7-
<version>0.0.3-beta</version>
7+
<version>0.0.4-beta</version>
88
<artifactId>g42cloud-sdk-services</artifactId>
99
<relativePath>..</relativePath>
1010
</parent>
1111
<artifactId>g42cloud-sdk-bms</artifactId>
12-
<version>0.0.3-beta</version>
12+
<version>0.0.4-beta</version>
1313
<name>G42Cloud SDK for BMS</name>
1414

1515
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>io.github.g42cloud-sdk</groupId>
2020
<artifactId>g42cloud-sdk-core</artifactId>
21-
<version>0.0.3-beta</version>
21+
<version>0.0.4-beta</version>
2222
</dependency>
2323
</dependencies>
2424

services/cbr/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<groupId>io.github.g42cloud-sdk</groupId>
7-
<version>0.0.3-beta</version>
7+
<version>0.0.4-beta</version>
88
<artifactId>g42cloud-sdk-services</artifactId>
99
<relativePath>..</relativePath>
1010
</parent>
1111
<artifactId>g42cloud-sdk-cbr</artifactId>
12-
<version>0.0.3-beta</version>
12+
<version>0.0.4-beta</version>
1313
<name>G42Cloud SDK for CBR</name>
1414

1515
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>io.github.g42cloud-sdk</groupId>
2020
<artifactId>g42cloud-sdk-core</artifactId>
21-
<version>0.0.3-beta</version>
21+
<version>0.0.4-beta</version>
2222
</dependency>
2323
</dependencies>
2424

services/cce/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<groupId>io.github.g42cloud-sdk</groupId>
7-
<version>0.0.3-beta</version>
7+
<version>0.0.4-beta</version>
88
<artifactId>g42cloud-sdk-services</artifactId>
99
<relativePath>..</relativePath>
1010
</parent>
1111
<artifactId>g42cloud-sdk-cce</artifactId>
12-
<version>0.0.3-beta</version>
12+
<version>0.0.4-beta</version>
1313
<name>G42Cloud SDK for CCE</name>
1414

1515
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>io.github.g42cloud-sdk</groupId>
2020
<artifactId>g42cloud-sdk-core</artifactId>
21-
<version>0.0.3-beta</version>
21+
<version>0.0.4-beta</version>
2222
</dependency>
2323
</dependencies>
2424

services/cdn/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<groupId>io.github.g42cloud-sdk</groupId>
7-
<version>0.0.3-beta</version>
7+
<version>0.0.4-beta</version>
88
<artifactId>g42cloud-sdk-services</artifactId>
99
<relativePath>..</relativePath>
1010
</parent>
1111
<artifactId>g42cloud-sdk-cdn</artifactId>
12-
<version>0.0.3-beta</version>
12+
<version>0.0.4-beta</version>
1313
<name>G42Cloud SDK for CDN</name>
1414

1515
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>io.github.g42cloud-sdk</groupId>
2020
<artifactId>g42cloud-sdk-core</artifactId>
21-
<version>0.0.3-beta</version>
21+
<version>0.0.4-beta</version>
2222
</dependency>
2323
</dependencies>
2424

0 commit comments

Comments
 (0)