Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AE70EE72 for ; Wed, 27 Feb 2013 16:37:51 +0000 (UTC) Received: (qmail 32362 invoked by uid 500); 27 Feb 2013 16:37:49 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 32291 invoked by uid 500); 27 Feb 2013 16:37:49 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 32007 invoked by uid 99); 27 Feb 2013 16:37:48 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2013 16:37:48 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 63C4AFDC1; Wed, 27 Feb 2013 16:37:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bfederle@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [34/39] git commit: refs/heads/ui-regions - CLOUDSTACK-1410: Add the old constructor to VirtualMachineTO Message-Id: <20130227163748.63C4AFDC1@tyr.zones.apache.org> Date: Wed, 27 Feb 2013 16:37:48 +0000 (UTC) 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 Authored: Wed Feb 27 16:39:33 2013 +0100 Committer: Wido den Hollander 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;