You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/02/27 17:37:48 UTC
[34/39] git commit: refs/heads/ui-regions - CLOUDSTACK-1410: Add the
old constructor to VirtualMachineTO
CLOUDSTACK-1410: Add the old constructor to VirtualMachineTO
Although the code compiled just fine, add back the old constructor
for safety.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/23e232f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/23e232f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/23e232f5
Branch: refs/heads/ui-regions
Commit: 23e232f5faea5683ee72ce8d4a8a286870b9bdb9
Parents: 2e28f69
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Wed Feb 27 16:39:33 2013 +0100
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Wed Feb 27 16:39:33 2013 +0100
----------------------------------------------------------------------
.../com/cloud/agent/api/to/VirtualMachineTO.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/23e232f5/api/src/com/cloud/agent/api/to/VirtualMachineTO.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/agent/api/to/VirtualMachineTO.java b/api/src/com/cloud/agent/api/to/VirtualMachineTO.java
index 99eac6b..b84d20a 100644
--- a/api/src/com/cloud/agent/api/to/VirtualMachineTO.java
+++ b/api/src/com/cloud/agent/api/to/VirtualMachineTO.java
@@ -60,6 +60,21 @@ public class VirtualMachineTO {
VolumeTO[] disks;
NicTO[] nics;
+ public VirtualMachineTO(long id, String instanceName, VirtualMachine.Type type, int cpus, Integer speed, long minRam, long maxRam, BootloaderType bootloader, String os, boolean enableHA, boolean limitCpuUse, String vncPassword) {
+ this.id = id;
+ this.name = instanceName;
+ this.type = type;
+ this.cpus = cpus;
+ this.speed = speed;
+ this.minRam = minRam;
+ this.maxRam = maxRam;
+ this.bootloader = bootloader;
+ this.os = os;
+ this.enableHA = enableHA;
+ this.limitCpuUse = limitCpuUse;
+ this.vncPassword = vncPassword;
+ }
+
public VirtualMachineTO(long id, String instanceName, VirtualMachine.Type type, int cpus, Integer minSpeed, Integer maxSpeed, long minRam, long maxRam, BootloaderType bootloader, String os, boolean enableHA, boolean limitCpuUse, String vncPassword) {
this.id = id;
this.name = instanceName;