cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [32/34] git commit: updated refs/heads/master to 6137d32
Date Thu, 11 Apr 2013 20:25:11 GMT
Adding pretty toString() to AffinityGroup


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bbf79007
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bbf79007
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bbf79007

Branch: refs/heads/master
Commit: bbf7900732d46e60a4708901b4767e3ef73dbb10
Parents: fc248cb
Author: Prachi Damle <prachi@cloud.com>
Authored: Wed Apr 10 14:18:36 2013 -0700
Committer: Prachi Damle <prachi@cloud.com>
Committed: Thu Apr 11 13:23:43 2013 -0700

----------------------------------------------------------------------
 .../cloudstack/affinity/AffinityGroupVO.java       |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bbf79007/server/src/org/apache/cloudstack/affinity/AffinityGroupVO.java
----------------------------------------------------------------------
diff --git a/server/src/org/apache/cloudstack/affinity/AffinityGroupVO.java b/server/src/org/apache/cloudstack/affinity/AffinityGroupVO.java
index fab3835..b6c4a02 100644
--- a/server/src/org/apache/cloudstack/affinity/AffinityGroupVO.java
+++ b/server/src/org/apache/cloudstack/affinity/AffinityGroupVO.java
@@ -104,4 +104,11 @@ public class AffinityGroupVO implements AffinityGroup {
         return type;
     }
 
+    @Override
+    public String toString() {
+        StringBuilder buf = new StringBuilder("AffinityGroup[");
+        buf.append(id).append("|").append(name).append("|").append(type).append("]");
+        return buf.toString();
+    }
+
 }


Mime
View raw message