Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4EA98200B5E for ; Wed, 10 Aug 2016 16:06:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4D613160AB1; Wed, 10 Aug 2016 14:06:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 94690160AA4 for ; Wed, 10 Aug 2016 16:06:26 +0200 (CEST) Received: (qmail 90192 invoked by uid 500); 10 Aug 2016 14:06:25 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 89991 invoked by uid 99); 10 Aug 2016 14:06:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 14:06:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 27D76E03E8; Wed, 10 Aug 2016 14:06:25 +0000 (UTC) From: jburwell To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request #1545: CLOUDSTACK-8715: Add channel to Instances for... Content-Type: text/plain Message-Id: <20160810140625.27D76E03E8@git1-us-west.apache.org> Date: Wed, 10 Aug 2016 14:06:25 +0000 (UTC) archived-at: Wed, 10 Aug 2016 14:06:27 -0000 Github user jburwell commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1545#discussion_r74250378 --- Diff: plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java --- @@ -1209,25 +1209,95 @@ public String toString() { } } - public static class VirtioSerialDef { - private final String _name; - private String _path; + public static class ChannelDef { + enum ChannelType { + UNIX("unix"), SERIAL("serial"); + String type; - public VirtioSerialDef(String name, String path) { - _name = name; - _path = path; + ChannelType(String type) { + this.type = type; + } + + @Override + public String toString() { + return this.type; + } + } + + enum ChannelState { + DISCONNECTED("disconnected"), CONNECTED("connected"); + String type; + + ChannelState(String type) { + this.type = type; + } + + @Override + public String toString() { + return type; + } + } + + private String name; + private String path; + private ChannelType type; + private ChannelState state; --- End diff -- These attributes are not modified by the class. Why not declare them as ``final``? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---