You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/02/13 19:47:39 UTC
git commit: refs/heads/4.1 - CLOUDSTACK-618: cloudstack UI - API
request throttling - for async job actions that are not using notification
widget,
make frequency of calling queryAsyncJobResult API based on listCapabilities
response.
Updated Branches:
refs/heads/4.1 313f6d33c -> 77d3aa34d
CLOUDSTACK-618: cloudstack UI - API request throttling - for async job actions that are not using notification widget, make frequency of calling queryAsyncJobResult API based on listCapabilities response.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/77d3aa34
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/77d3aa34
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/77d3aa34
Branch: refs/heads/4.1
Commit: 77d3aa34d6940f85936c8fbace47142e35063643
Parents: 313f6d3
Author: Jessica Wang <je...@citrix.com>
Authored: Wed Feb 13 10:46:19 2013 -0800
Committer: Jessica Wang <je...@citrix.com>
Committed: Wed Feb 13 10:46:19 2013 -0800
----------------------------------------------------------------------
ui/scripts/autoscaler.js | 22 ++++++++++----------
ui/scripts/system.js | 24 +++++++++++-----------
ui/scripts/zoneWizard.js | 42 ++++++++++++++++++++--------------------
3 files changed, 44 insertions(+), 44 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/77d3aa34/ui/scripts/autoscaler.js
----------------------------------------------------------------------
diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js
index a56fd94..05011a3 100644
--- a/ui/scripts/autoscaler.js
+++ b/ui/scripts/autoscaler.js
@@ -847,7 +847,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -900,7 +900,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -915,7 +915,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -986,7 +986,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -1040,7 +1040,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -1058,7 +1058,7 @@
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
});
@@ -1144,7 +1144,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -1214,7 +1214,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -1283,7 +1283,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -1328,7 +1328,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
@@ -1370,7 +1370,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/77d3aa34/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index cb09a85..e51bf90 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -3165,7 +3165,7 @@
alert("addNetworkServiceProvider&name=Netscaler failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -3406,7 +3406,7 @@
alert("addNetworkServiceProvider&name=F5BigIpfailed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -3669,7 +3669,7 @@
alert("addNetworkServiceProvider&name=JuniperSRX failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -3988,7 +3988,7 @@
alert("addNetworkServiceProvider&name=NiciraNvp failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -6240,7 +6240,7 @@
alert("addNetworkServiceProvider&name=Netscaler failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -6435,7 +6435,7 @@
alert("addNetworkServiceProvider&name=F5BigIpfailed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -6646,7 +6646,7 @@
alert("addNetworkServiceProvider&name=JuniperSRX failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -6812,7 +6812,7 @@
alert("addNetworkServiceProvider&name=NiciraNvp failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -10222,7 +10222,7 @@
alert("updateNetworkServiceProvider failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -10303,7 +10303,7 @@
alert("updateNetworkServiceProvider failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -10317,7 +10317,7 @@
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -10331,7 +10331,7 @@
alert("updatePhysicalNetwork failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
};
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/77d3aa34/ui/scripts/zoneWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/zoneWizard.js b/ui/scripts/zoneWizard.js
index 26838a1..7677c15 100755
--- a/ui/scripts/zoneWizard.js
+++ b/ui/scripts/zoneWizard.js
@@ -1433,7 +1433,7 @@
alert("Failed to add Guest traffic type to basic zone. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
@@ -1479,7 +1479,7 @@
alert("Failed to add Management traffic type to basic zone. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
@@ -1527,7 +1527,7 @@
alert("Failed to add Management traffic type to basic zone. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -1574,7 +1574,7 @@
alert("Failed to add Public traffic type to basic zone. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -1589,7 +1589,7 @@
alert("createPhysicalNetwork failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
@@ -1687,7 +1687,7 @@
alert(apiCmd + " failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
});
@@ -1702,7 +1702,7 @@
alert("createPhysicalNetwork failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
});
@@ -1864,7 +1864,7 @@
alert("failed to enable security group provider. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -1884,7 +1884,7 @@
alert("failed to enable Virtual Router Provider. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -1898,7 +1898,7 @@
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -1912,7 +1912,7 @@
alert("updatePhysicalNetwork failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -2037,7 +2037,7 @@
alert("updateNetworkServiceProvider failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -2051,7 +2051,7 @@
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
// ***** Virtual Router ***** (end) *****
@@ -2142,7 +2142,7 @@
alert("failed to enable VPC Virtual Router Provider. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -2156,7 +2156,7 @@
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
// ***** VPC Virtual Router ***** (end) *****
@@ -2212,7 +2212,7 @@
alert("failed to enable security group provider. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
}
@@ -2226,7 +2226,7 @@
alert("failed to enable physical network. Error: " + parseXMLHttpResponse(XMLHttpResponse));
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
});
@@ -2270,7 +2270,7 @@
alert("addNetworkServiceProvider&name=Netscaler failed. Error: " + errorMsg);
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
//add netscaler provider (end)
@@ -2421,7 +2421,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
@@ -2435,7 +2435,7 @@
}
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
},
error: function(XMLHttpResponse) {
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
@@ -2811,7 +2811,7 @@
error('configureGuestTraffic', errorMsg, { fn: 'configureGuestTraffic', args: args });
}
});
- }, 3000);
+ }, g_queryAsyncJobResultInterval);
}
});
});