Skip to content

Commit 17eec64

Browse files
committed
디바이스 할당/해제
1 parent d4e2067 commit 17eec64

File tree

17 files changed

+4868
-1527
lines changed

17 files changed

+4868
-1527
lines changed

core/src/main/java/com/cloud/agent/api/UpdateHostLunDeviceAnswer.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ public UpdateHostLunDeviceAnswer(boolean successMessage, String vmName, String x
3737
this.isAttach = isAttach;
3838
}
3939

40+
public UpdateHostLunDeviceAnswer(boolean successMessage, String details) {
41+
super(null, successMessage, details);
42+
this.successMessage = successMessage;
43+
}
44+
45+
public UpdateHostLunDeviceAnswer(boolean successMessage, String vmName, String xmlConfig, boolean isAttach, String details) {
46+
super(null, successMessage, details);
47+
this.successMessage = successMessage;
48+
this.vmName = vmName;
49+
this.xmlConfig = xmlConfig;
50+
this.isAttach = isAttach;
51+
}
52+
4053
public String getVmName() {
4154
return vmName;
4255
}

core/src/main/java/com/cloud/agent/api/UpdateHostLunDeviceCommand.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class UpdateHostLunDeviceCommand extends Command {
2424
private String vmName;
2525
private String xmlConfig;
2626
private boolean isAttach;
27+
private String hostDeviceName;
2728

2829
public UpdateHostLunDeviceCommand() {
2930
}
@@ -34,6 +35,13 @@ public UpdateHostLunDeviceCommand(String vmName, String xmlConfig, boolean isAtt
3435
this.isAttach = isAttach;
3536
}
3637

38+
public UpdateHostLunDeviceCommand(String vmName, String xmlConfig, boolean isAttach, String hostDeviceName) {
39+
this.vmName = vmName;
40+
this.xmlConfig = xmlConfig;
41+
this.isAttach = isAttach;
42+
this.hostDeviceName = hostDeviceName;
43+
}
44+
3745
@Override
3846
public boolean executeInSequence() {
3947
return false;
@@ -62,4 +70,12 @@ public void setXmlConfig(String xmlConfig) {
6270
public void setIsAttach(boolean isAttach) {
6371
this.isAttach = isAttach;
6472
}
73+
74+
public String getHostDeviceName() {
75+
return hostDeviceName;
76+
}
77+
78+
public void setHostDeviceName(String hostDeviceName) {
79+
this.hostDeviceName = hostDeviceName;
80+
}
6581
}

core/src/main/java/com/cloud/agent/api/UpdateHostScsiDeviceAnswer.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ public UpdateHostScsiDeviceAnswer(boolean successMessage, String vmName, String
3737
this.isAttach = isAttach;
3838
}
3939

40+
public UpdateHostScsiDeviceAnswer(boolean successMessage, String details) {
41+
super(null, successMessage, details);
42+
this.successMessage = successMessage;
43+
}
44+
45+
public UpdateHostScsiDeviceAnswer(boolean successMessage, String vmName, String xmlConfig, boolean isAttach, String details) {
46+
super(null, successMessage, details);
47+
this.successMessage = successMessage;
48+
this.vmName = vmName;
49+
this.xmlConfig = xmlConfig;
50+
this.isAttach = isAttach;
51+
}
52+
4053
public String getVmName() {
4154
return vmName;
4255
}

0 commit comments

Comments
 (0)