cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject git commit: updated refs/heads/4.2 to 1e32096
Date Tue, 20 Aug 2013 21:06:03 GMT
Updated Branches:
  refs/heads/4.2 d31e1f9c3 -> 1e3209658


CLOUDSTACK-3950: add "regionsecondaryenabled" in listCapabilitiesCmd
response.


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

Branch: refs/heads/4.2
Commit: 1e32096584fcc7d305b9dfdd06be74510f55eaad
Parents: d31e1f9
Author: Min Chen <min.chen@citrix.com>
Authored: Tue Aug 20 14:05:35 2013 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Tue Aug 20 14:05:55 2013 -0700

----------------------------------------------------------------------
 .../api/command/user/config/ListCapabilitiesCmd.java          | 2 ++
 .../apache/cloudstack/api/response/CapabilitiesResponse.java  | 7 +++++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1e320965/api/src/org/apache/cloudstack/api/command/user/config/ListCapabilitiesCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/config/ListCapabilitiesCmd.java
b/api/src/org/apache/cloudstack/api/command/user/config/ListCapabilitiesCmd.java
index 57ff4eb..6f4845b 100644
--- a/api/src/org/apache/cloudstack/api/command/user/config/ListCapabilitiesCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/config/ListCapabilitiesCmd.java
@@ -53,6 +53,8 @@ public class ListCapabilitiesCmd extends BaseCmd {
         response.setAllowUsersCreateProjects((Boolean)capabilities.get("allowusercreateprojects"));
         response.setDiskOffMaxSize((Long)capabilities.get("customDiskOffMaxSize"));
         response.setKVMSnapshotEnabled((Boolean)capabilities.get("KVMSnapshotEnabled"));
+        response.setRegionSecondaryEnabled((Boolean)capabilities.get("regionSecondaryEnabled"));
+
         if (capabilities.containsKey("apiLimitInterval")) {
             response.setApiLimitInterval((Integer) capabilities.get("apiLimitInterval"));
         }

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1e320965/api/src/org/apache/cloudstack/api/response/CapabilitiesResponse.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/response/CapabilitiesResponse.java b/api/src/org/apache/cloudstack/api/response/CapabilitiesResponse.java
index 5c31571..0142e1c 100644
--- a/api/src/org/apache/cloudstack/api/response/CapabilitiesResponse.java
+++ b/api/src/org/apache/cloudstack/api/response/CapabilitiesResponse.java
@@ -49,6 +49,9 @@ public class CapabilitiesResponse extends BaseResponse {
     @SerializedName("KVMsnapshotenabled") @Param(description = "true if snapshot is supported
for KVM host, false otherwise")
     private boolean KVMSnapshotEnabled;
 
+    @SerializedName("regionsecondaryenabled") @Param(description = "true if region wide secondary
is enabled, false otherwise")
+    private boolean regionSecondaryEnabled;
+
     @SerializedName("apilimitinterval") @Param(description="time interval (in seconds) to
reset api count")
     private Integer apiLimitInterval;
 
@@ -88,6 +91,10 @@ public class CapabilitiesResponse extends BaseResponse {
         this.KVMSnapshotEnabled = KVMSnapshotEnabled;
     }
 
+    public void setRegionSecondaryEnabled(boolean regionSecondaryEnabled){
+        this.regionSecondaryEnabled = regionSecondaryEnabled;
+    }
+
     public void setApiLimitInterval(Integer apiLimitInterval) {
         this.apiLimitInterval = apiLimitInterval;
     }


Mime
View raw message