Skip to content

Commit c05af6d

Browse files
committed
Support restart node list and re-elect zookeeper.
1 parent a48818c commit c05af6d

11 files changed

+247
-3
lines changed

aliyun-java-sdk-clickhouse/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-12 Version: 3.1.9
2+
- Support restart node list and re-elect zookeeper.
3+
14
2024-02-04 Version: 3.1.8
25
-support modify cluster disk performance level
36

aliyun-java-sdk-clickhouse/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-clickhouse</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.1.8</version>
7+
<version>3.1.9</version>
88
<name>aliyun-java-sdk-clickhouse</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -91,7 +91,7 @@ http://www.aliyun.com</description>
9191
<plugin>
9292
<groupId>org.apache.maven.plugins</groupId>
9393
<artifactId>maven-gpg-plugin</artifactId>
94-
<version>1.5</version>
94+
<version>3.1.0</version>
9595
<executions>
9696
<execution>
9797
<id>sign-artifacts</id>

aliyun-java-sdk-clickhouse/src/main/java/com/aliyuncs/clickhouse/model/v20191111/CreateDBInstanceRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public class CreateDBInstanceRequest extends RpcAcsRequest<CreateDBInstanceRespo
5353

5454
private String vSwitchId;
5555

56+
private Boolean autoRenew;
57+
5658
private String zoneId;
5759

5860
private String clientToken;
@@ -243,6 +245,17 @@ public void setVSwitchId(String vSwitchId) {
243245
}
244246
}
245247

248+
public Boolean getAutoRenew() {
249+
return this.autoRenew;
250+
}
251+
252+
public void setAutoRenew(Boolean autoRenew) {
253+
this.autoRenew = autoRenew;
254+
if(autoRenew != null){
255+
putQueryParameter("AutoRenew", autoRenew.toString());
256+
}
257+
}
258+
246259
public String getZoneId() {
247260
return this.zoneId;
248261
}

aliyun-java-sdk-clickhouse/src/main/java/com/aliyuncs/clickhouse/model/v20191111/DescribeDBClusterAttributeResponse.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ public static class DBCluster {
146146

147147
private Map<Object,Object> zoneIdVswitchMap;
148148

149+
private Map<Object,Object> availableUpgradeMajorVersion;
150+
151+
private String appointmentRestartNodeTime;
152+
153+
private String appointmentRestartNodeList;
154+
155+
private String appointmentElectZookeeperTime;
156+
157+
private Boolean appointmentElectZookeeperDisableWrite;
158+
149159
private List<Tag> tags;
150160

151161
private ScaleOutStatus scaleOutStatus;
@@ -542,6 +552,46 @@ public void setZoneIdVswitchMap(Map<Object,Object> zoneIdVswitchMap) {
542552
this.zoneIdVswitchMap = zoneIdVswitchMap;
543553
}
544554

555+
public Map<Object,Object> getAvailableUpgradeMajorVersion() {
556+
return this.availableUpgradeMajorVersion;
557+
}
558+
559+
public void setAvailableUpgradeMajorVersion(Map<Object,Object> availableUpgradeMajorVersion) {
560+
this.availableUpgradeMajorVersion = availableUpgradeMajorVersion;
561+
}
562+
563+
public String getAppointmentRestartNodeTime() {
564+
return this.appointmentRestartNodeTime;
565+
}
566+
567+
public void setAppointmentRestartNodeTime(String appointmentRestartNodeTime) {
568+
this.appointmentRestartNodeTime = appointmentRestartNodeTime;
569+
}
570+
571+
public String getAppointmentRestartNodeList() {
572+
return this.appointmentRestartNodeList;
573+
}
574+
575+
public void setAppointmentRestartNodeList(String appointmentRestartNodeList) {
576+
this.appointmentRestartNodeList = appointmentRestartNodeList;
577+
}
578+
579+
public String getAppointmentElectZookeeperTime() {
580+
return this.appointmentElectZookeeperTime;
581+
}
582+
583+
public void setAppointmentElectZookeeperTime(String appointmentElectZookeeperTime) {
584+
this.appointmentElectZookeeperTime = appointmentElectZookeeperTime;
585+
}
586+
587+
public Boolean getAppointmentElectZookeeperDisableWrite() {
588+
return this.appointmentElectZookeeperDisableWrite;
589+
}
590+
591+
public void setAppointmentElectZookeeperDisableWrite(Boolean appointmentElectZookeeperDisableWrite) {
592+
this.appointmentElectZookeeperDisableWrite = appointmentElectZookeeperDisableWrite;
593+
}
594+
545595
public List<Tag> getTags() {
546596
return this.tags;
547597
}

aliyun-java-sdk-clickhouse/src/main/java/com/aliyuncs/clickhouse/model/v20191111/DescribeDBClustersResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public static class DBCluster {
9797

9898
private String vpcCloudInstanceId;
9999

100+
private String scaleOutDisableWriteWindows;
101+
100102
private String dBClusterId;
101103

102104
private String connectionString;
@@ -135,6 +137,8 @@ public static class DBCluster {
135137

136138
private String resourceGroupId;
137139

140+
private String dbVersion;
141+
138142
private List<Tag> tags;
139143

140144
private ScaleOutStatus scaleOutStatus;
@@ -219,6 +223,14 @@ public void setVpcCloudInstanceId(String vpcCloudInstanceId) {
219223
this.vpcCloudInstanceId = vpcCloudInstanceId;
220224
}
221225

226+
public String getScaleOutDisableWriteWindows() {
227+
return this.scaleOutDisableWriteWindows;
228+
}
229+
230+
public void setScaleOutDisableWriteWindows(String scaleOutDisableWriteWindows) {
231+
this.scaleOutDisableWriteWindows = scaleOutDisableWriteWindows;
232+
}
233+
222234
public String getDBClusterId() {
223235
return this.dBClusterId;
224236
}
@@ -371,6 +383,14 @@ public void setResourceGroupId(String resourceGroupId) {
371383
this.resourceGroupId = resourceGroupId;
372384
}
373385

386+
public String getDbVersion() {
387+
return this.dbVersion;
388+
}
389+
390+
public void setDbVersion(String dbVersion) {
391+
this.dbVersion = dbVersion;
392+
}
393+
374394
public List<Tag> getTags() {
375395
return this.tags;
376396
}

aliyun-java-sdk-clickhouse/src/main/java/com/aliyuncs/clickhouse/model/v20191111/DescribeTransferHistoryResponse.java

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,30 @@ public static class HistoryDetail {
4949

5050
private String sourceDBCluster;
5151

52+
private String sourceControlVersion;
53+
5254
private String targetDBCluster;
5355

56+
private String targetControlVersion;
57+
5458
private String status;
5559

5660
private String progress;
5761

62+
private String disableWriteWindows;
63+
64+
private Long unsyncedBytes;
65+
66+
private Long unsyncedParts;
67+
68+
private Double partsPerMinute;
69+
70+
private Long bytesPerMinute;
71+
72+
private String subJob;
73+
74+
private String subJobStatus;
75+
5876
public String getSourceDBCluster() {
5977
return this.sourceDBCluster;
6078
}
@@ -63,6 +81,14 @@ public void setSourceDBCluster(String sourceDBCluster) {
6381
this.sourceDBCluster = sourceDBCluster;
6482
}
6583

84+
public String getSourceControlVersion() {
85+
return this.sourceControlVersion;
86+
}
87+
88+
public void setSourceControlVersion(String sourceControlVersion) {
89+
this.sourceControlVersion = sourceControlVersion;
90+
}
91+
6692
public String getTargetDBCluster() {
6793
return this.targetDBCluster;
6894
}
@@ -71,6 +97,14 @@ public void setTargetDBCluster(String targetDBCluster) {
7197
this.targetDBCluster = targetDBCluster;
7298
}
7399

100+
public String getTargetControlVersion() {
101+
return this.targetControlVersion;
102+
}
103+
104+
public void setTargetControlVersion(String targetControlVersion) {
105+
this.targetControlVersion = targetControlVersion;
106+
}
107+
74108
public String getStatus() {
75109
return this.status;
76110
}
@@ -86,6 +120,62 @@ public String getProgress() {
86120
public void setProgress(String progress) {
87121
this.progress = progress;
88122
}
123+
124+
public String getDisableWriteWindows() {
125+
return this.disableWriteWindows;
126+
}
127+
128+
public void setDisableWriteWindows(String disableWriteWindows) {
129+
this.disableWriteWindows = disableWriteWindows;
130+
}
131+
132+
public Long getUnsyncedBytes() {
133+
return this.unsyncedBytes;
134+
}
135+
136+
public void setUnsyncedBytes(Long unsyncedBytes) {
137+
this.unsyncedBytes = unsyncedBytes;
138+
}
139+
140+
public Long getUnsyncedParts() {
141+
return this.unsyncedParts;
142+
}
143+
144+
public void setUnsyncedParts(Long unsyncedParts) {
145+
this.unsyncedParts = unsyncedParts;
146+
}
147+
148+
public Double getPartsPerMinute() {
149+
return this.partsPerMinute;
150+
}
151+
152+
public void setPartsPerMinute(Double partsPerMinute) {
153+
this.partsPerMinute = partsPerMinute;
154+
}
155+
156+
public Long getBytesPerMinute() {
157+
return this.bytesPerMinute;
158+
}
159+
160+
public void setBytesPerMinute(Long bytesPerMinute) {
161+
this.bytesPerMinute = bytesPerMinute;
162+
}
163+
164+
public String getSubJob() {
165+
return this.subJob;
166+
}
167+
168+
public void setSubJob(String subJob) {
169+
this.subJob = subJob;
170+
}
171+
172+
public String getSubJobStatus() {
173+
return this.subJobStatus;
174+
}
175+
176+
public void setSubJobStatus(String subJobStatus) {
177+
this.subJobStatus = subJobStatus;
178+
}
89179
}
90180

91181
@Override

aliyun-java-sdk-clickhouse/src/main/java/com/aliyuncs/clickhouse/model/v20191111/ModifyDBClusterRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public class ModifyDBClusterRequest extends RpcAcsRequest<ModifyDBClusterRespons
2929

3030
private String dbNodeStorageType;
3131

32+
private String disableWriteWindows;
33+
3234
private String resourceOwnerAccount;
3335

3436
private String dBClusterId;
@@ -73,6 +75,17 @@ public void setDbNodeStorageType(String dbNodeStorageType) {
7375
}
7476
}
7577

78+
public String getDisableWriteWindows() {
79+
return this.disableWriteWindows;
80+
}
81+
82+
public void setDisableWriteWindows(String disableWriteWindows) {
83+
this.disableWriteWindows = disableWriteWindows;
84+
if(disableWriteWindows != null){
85+
putQueryParameter("DisableWriteWindows", disableWriteWindows);
86+
}
87+
}
88+
7689
public String getResourceOwnerAccount() {
7790
return this.resourceOwnerAccount;
7891
}

aliyun-java-sdk-clickhouse/src/main/java/com/aliyuncs/clickhouse/model/v20191111/TransferVersionRequest.java

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ public class TransferVersionRequest extends RpcAcsRequest<TransferVersionRespons
3333

3434
private String targetAccount;
3535

36+
private String sourceClusterName;
37+
3638
private Integer pageSize;
3739

3840
private String sourcePassword;
3941

42+
private String disableWriteWindows;
43+
4044
private String resourceOwnerAccount;
4145

4246
private String dBClusterId;
@@ -47,7 +51,9 @@ public class TransferVersionRequest extends RpcAcsRequest<TransferVersionRespons
4751

4852
private Long ownerId;
4953

50-
private String targetDbClusterId;
54+
private String targetDbClusterId;
55+
56+
private String sourceShards;
5157
public TransferVersionRequest() {
5258
super("clickhouse", "2019-11-11", "TransferVersion", "service");
5359
setMethod(MethodType.POST);
@@ -101,6 +107,17 @@ public void setTargetAccount(String targetAccount) {
101107
}
102108
}
103109

110+
public String getSourceClusterName() {
111+
return this.sourceClusterName;
112+
}
113+
114+
public void setSourceClusterName(String sourceClusterName) {
115+
this.sourceClusterName = sourceClusterName;
116+
if(sourceClusterName != null){
117+
putQueryParameter("SourceClusterName", sourceClusterName);
118+
}
119+
}
120+
104121
public Integer getPageSize() {
105122
return this.pageSize;
106123
}
@@ -123,6 +140,17 @@ public void setSourcePassword(String sourcePassword) {
123140
}
124141
}
125142

143+
public String getDisableWriteWindows() {
144+
return this.disableWriteWindows;
145+
}
146+
147+
public void setDisableWriteWindows(String disableWriteWindows) {
148+
this.disableWriteWindows = disableWriteWindows;
149+
if(disableWriteWindows != null){
150+
putQueryParameter("DisableWriteWindows", disableWriteWindows);
151+
}
152+
}
153+
126154
public String getResourceOwnerAccount() {
127155
return this.resourceOwnerAccount;
128156
}
@@ -187,6 +215,17 @@ public void setTargetDbClusterId(String targetDbClusterId) {
187215
if(targetDbClusterId != null){
188216
putQueryParameter("TargetDbClusterId", targetDbClusterId);
189217
}
218+
}
219+
220+
public String getSourceShards() {
221+
return this.sourceShards;
222+
}
223+
224+
public void setSourceShards(String sourceShards) {
225+
this.sourceShards = sourceShards;
226+
if(sourceShards != null){
227+
putQueryParameter("SourceShards", sourceShards);
228+
}
190229
}
191230

192231
@Override

0 commit comments

Comments
 (0)