Skip to content

Commit ddb9e36

Browse files
committed
<fix>[volume]: support thirdPartySoftwarePackage
APIImpact Resolves: ZSV-1 Change-Id: I656979726c736267776c7262716969726874716d
1 parent 13b74e6 commit ddb9e36

29 files changed

Lines changed: 1757 additions & 1 deletion

build/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,11 @@
523523
<artifactId>zce-x-plugin</artifactId>
524524
<version>${project.version}</version>
525525
</dependency>
526+
<dependency>
527+
<groupId>org.zstack</groupId>
528+
<artifactId>zmigrate-plugin</artifactId>
529+
<version>${project.version}</version>
530+
</dependency>
526531
<dependency>
527532
<groupId>org.zstack</groupId>
528533
<artifactId>zsv</artifactId>

conf/errorCodes/ZMigratePlugin.xml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<error>
2+
<prefix>ZMigrate</prefix>
3+
4+
<code>
5+
<id>1000</id>
6+
<description>ZMigrate generic error</description>
7+
</code>
8+
9+
<code>
10+
<id>1001</id>
11+
<description>Failed to create account in ZMigrate</description>
12+
</code>
13+
14+
<code>
15+
<id>1002</id>
16+
<description>Failed to verify platform connection</description>
17+
</code>
18+
19+
<code>
20+
<id>1003</id>
21+
<description>Failed to verify gateway connection</description>
22+
</code>
23+
24+
<code>
25+
<id>1004</id>
26+
<description>Failed to register ZSV to ZMigrate</description>
27+
</code>
28+
29+
<code>
30+
<id>1005</id>
31+
<description>Failed to register gateway to ZMigrate</description>
32+
</code>
33+
34+
<code>
35+
<id>1006</id>
36+
<description>Failed to get licenses from ZMigrate</description>
37+
</code>
38+
39+
<code>
40+
<id>1007</id>
41+
<description>Failed to get platform information</description>
42+
</code>
43+
44+
<code>
45+
<id>1008</id>
46+
<description>Failed to get migration jobs</description>
47+
</code>
48+
49+
<code>
50+
<id>1009</id>
51+
<description>Failed to get ZMigrate management server information</description>
52+
</code>
53+
54+
<code>
55+
<id>1010</id>
56+
<description>Failed to get gateway server information</description>
57+
</code>
58+
</error>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package org.zstack.header.storage.backup;
2+
3+
import org.zstack.header.message.CancelMessage;
4+
5+
public class CancelDownloadFileOnBackupStorageHostMsg extends CancelMessage implements BackupStorageMessage {
6+
private String backupStorageUuid;
7+
private String taskUuid;
8+
9+
@Override
10+
public String getBackupStorageUuid() {
11+
return backupStorageUuid;
12+
}
13+
14+
public void setBackupStorageUuid(String backupStorageUuid) {
15+
this.backupStorageUuid = backupStorageUuid;
16+
}
17+
18+
public String getTaskUuid() {
19+
return taskUuid;
20+
}
21+
22+
public void setTaskUuid(String taskUuid) {
23+
this.taskUuid = taskUuid;
24+
}
25+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package org.zstack.header.storage.backup;
2+
3+
import org.zstack.header.message.MessageReply;
4+
5+
public class CancelDownloadFileOnBackupStorageHostReply extends MessageReply {
6+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package org.zstack.header.storage.backup;
2+
3+
import org.zstack.header.message.NeedReplyMessage;
4+
5+
import java.util.List;
6+
7+
public class DeleteFilesOnBackupStorageHostMsg extends NeedReplyMessage implements BackupStorageMessage {
8+
private String backupStorageUuid;
9+
private String backupStorageHostUuid;
10+
private List<String> filesPath;
11+
12+
@Override
13+
public String getBackupStorageUuid() {
14+
return backupStorageUuid;
15+
}
16+
17+
public void setBackupStorageUuid(String backupStorageUuid) {
18+
this.backupStorageUuid = backupStorageUuid;
19+
}
20+
21+
public String getBackupStorageHostUuid() {
22+
return backupStorageHostUuid;
23+
}
24+
25+
public void setBackupStorageHostUuid(String backupStorageHostUuid) {
26+
this.backupStorageHostUuid = backupStorageHostUuid;
27+
}
28+
29+
public List<String> getFilesPath() {
30+
return filesPath;
31+
}
32+
33+
public void setFilesPath(List<String> filesPath) {
34+
this.filesPath = filesPath;
35+
}
36+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package org.zstack.header.storage.backup;
2+
3+
import org.zstack.header.message.MessageReply;
4+
5+
public class DeleteFilesOnBackupStorageHostReply extends MessageReply {
6+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package org.zstack.header.storage.backup;
2+
3+
import org.zstack.header.message.NeedReplyMessage;
4+
5+
public class GetFileDownloadProgressFromBackupStorageHostMsg extends NeedReplyMessage implements BackupStorageMessage {
6+
private String backupStorageUuid;
7+
private String backupStorageHostUuid;
8+
private String taskUuid;
9+
private String hostname;
10+
11+
@Override
12+
public String getBackupStorageUuid() {
13+
return backupStorageUuid;
14+
}
15+
16+
public void setBackupStorageUuid(String backupStorageUuid) {
17+
this.backupStorageUuid = backupStorageUuid;
18+
}
19+
20+
public String getBackupStorageHostUuid() {
21+
return backupStorageHostUuid;
22+
}
23+
24+
public void setBackupStorageHostUuid(String backupStorageHostUuid) {
25+
this.backupStorageHostUuid = backupStorageHostUuid;
26+
}
27+
28+
public String getTaskUuid() {
29+
return taskUuid;
30+
}
31+
32+
public void setTaskUuid(String taskUuid) {
33+
this.taskUuid = taskUuid;
34+
}
35+
36+
public String getHostname() {
37+
return hostname;
38+
}
39+
40+
public void setHostname(String hostname) {
41+
this.hostname = hostname;
42+
}
43+
}
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
package org.zstack.header.storage.backup;
2+
3+
import org.zstack.header.message.MessageReply;
4+
5+
import java.util.Map;
6+
7+
public class GetFileDownloadProgressFromBackupStorageHostReply extends MessageReply {
8+
private boolean completed;
9+
private int progress;
10+
11+
private long size;
12+
private long actualSize;
13+
private long downloadSize;
14+
private String installPath;
15+
private long lastOpTime;
16+
private boolean supportSuspend;
17+
private String md5sum;
18+
private String format;
19+
20+
private String unzipInstallPath;
21+
private Map<String, Long> unzipFiles;
22+
23+
public boolean isCompleted() {
24+
return completed;
25+
}
26+
27+
public void setCompleted(boolean completed) {
28+
this.completed = completed;
29+
}
30+
31+
public int getProgress() {
32+
return progress;
33+
}
34+
35+
public void setProgress(int progress) {
36+
this.progress = progress;
37+
}
38+
39+
public long getSize() {
40+
return size;
41+
}
42+
43+
public void setSize(long size) {
44+
this.size = size;
45+
}
46+
47+
public long getActualSize() {
48+
return actualSize;
49+
}
50+
51+
public void setActualSize(long actualSize) {
52+
this.actualSize = actualSize;
53+
}
54+
55+
public String getInstallPath() {
56+
return installPath;
57+
}
58+
59+
public void setInstallPath(String installPath) {
60+
this.installPath = installPath;
61+
}
62+
63+
public String getFormat() {
64+
return format;
65+
}
66+
67+
public void setFormat(String format) {
68+
this.format = format;
69+
}
70+
71+
public long getLastOpTime() {
72+
return lastOpTime;
73+
}
74+
75+
public void setLastOpTime(long lastOpTime) {
76+
this.lastOpTime = lastOpTime;
77+
}
78+
79+
public long getDownloadSize() {
80+
return downloadSize;
81+
}
82+
83+
public void setDownloadSize(long downloadSize) {
84+
this.downloadSize = downloadSize;
85+
}
86+
87+
public boolean isSupportSuspend() {
88+
return supportSuspend;
89+
}
90+
91+
public void setSupportSuspend(boolean supportSuspend) {
92+
this.supportSuspend = supportSuspend;
93+
}
94+
95+
public String getMd5sum() {
96+
return md5sum;
97+
}
98+
99+
public void setMd5sum(String md5sum) {
100+
this.md5sum = md5sum;
101+
}
102+
103+
public String getUnzipInstallPath() {
104+
return unzipInstallPath;
105+
}
106+
107+
public void setUnzipInstallPath(String unzipInstallPath) {
108+
this.unzipInstallPath = unzipInstallPath;
109+
}
110+
111+
public Map<String, Long> getUnzipFiles() {
112+
return unzipFiles;
113+
}
114+
115+
public void setUnzipFiles(Map<String, Long> unzipFiles) {
116+
this.unzipFiles = unzipFiles;
117+
}
118+
}

0 commit comments

Comments
 (0)