cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [34/39] git commit: refs/heads/ui-regions - CLOUDSTACK-1410: Add the old constructor to VirtualMachineTO
Date Wed, 27 Feb 2013 16:37:48 GMT
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 <wido@widodh.nl>
Authored: Wed Feb 27 16:39:33 2013 +0100
Committer: Wido den Hollander <wido@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;


Mime
View raw message