cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [33/50] [abbrv] git commit: refs/heads/affinity_groups - CLOUDSTACK-1410: Add the old constructor to VirtualMachineTO
Date Thu, 14 Mar 2013 22:35:17 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/4aa8489a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/4aa8489a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/4aa8489a

Branch: refs/heads/affinity_groups
Commit: 4aa8489a82aef45956bde7b42b8832bb6fe0a763
Parents: 2e50af2
Author: Wido den Hollander <wido@widodh.nl>
Authored: Wed Feb 27 16:39:33 2013 +0100
Committer: Prachi Damle <prachi@cloud.com>
Committed: Thu Mar 14 15:13:21 2013 -0700

----------------------------------------------------------------------
 .../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/4aa8489a/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