summaryrefslogtreecommitdiff
path: root/qpid/java/broker-plugins
diff options
context:
space:
mode:
authorAndrew MacBean <macbean@apache.org>2014-10-22 11:35:02 +0000
committerAndrew MacBean <macbean@apache.org>2014-10-22 11:35:02 +0000
commitebe5ad9ad19af20f0150fa1cd27644babf50c76c (patch)
treeda3368269d63505ec54f7dc388053bec7cf16410 /qpid/java/broker-plugins
parentd714bc5be946bba9404951f8104d88efd1507717 (diff)
downloadqpid-python-ebe5ad9ad19af20f0150fa1cd27644babf50c76c.tar.gz
QPID-6176: [Java Broker] Re-instate the variables/values that are now missing from the Web UI Broker Attributes section
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1633600 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-plugins')
-rw-r--r--qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Broker.js96
1 files changed, 45 insertions, 51 deletions
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Broker.js b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Broker.js
index fb91a95de9..36eff2314a 100644
--- a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Broker.js
+++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Broker.js
@@ -53,6 +53,10 @@ define(["dojo/_base/xhr",
function (xhr, parser, query, json, connect, properties, updater, util, UpdatableStore, EnhancedGrid, registry, entities,
addAuthenticationProvider, addVirtualHostNodeAndVirtualHost, addPort, addKeystore, addGroupProvider, addAccessControlProvider, editBroker) {
+ var brokerAttributeNames = ["name", "operatingSystem", "platform", "productVersion", "modelVersion",
+ "defaultVirtualHost", "statisticsReportingPeriod", "statisticsReportingResetEnabled",
+ "connection.sessionCountLimit", "connection.heartBeatDelay"];
+
function Broker(name, parent, controller) {
this.name = name;
this.controller = controller;
@@ -64,6 +68,7 @@ define(["dojo/_base/xhr",
}
}
+
Broker.prototype.getTitle = function()
{
return "Broker";
@@ -78,7 +83,7 @@ define(["dojo/_base/xhr",
contentPane.containerNode.innerHTML = data;
parser.parse(contentPane.containerNode);
- that.brokerUpdater = new BrokerUpdater(contentPane.containerNode, that.modelObj, that.controller, that.attributeWidgetFactories);
+ that.brokerUpdater = new BrokerUpdater(contentPane.containerNode, that.modelObj, that.controller);
updater.add( that.brokerUpdater );
@@ -226,11 +231,10 @@ define(["dojo/_base/xhr",
updater.remove( this.brokerUpdater );
};
- function BrokerUpdater(node, brokerObj, controller, attributes)
+ function BrokerUpdater(node, brokerObj, controller)
{
this.controller = controller;
this.query = "api/latest/broker?depth=2";
- this.attributes = attributes;
this.accessControlProvidersWarn = query(".broker-access-control-providers-warning", node)[0]
var that = this;
@@ -553,12 +557,12 @@ define(["dojo/_base/xhr",
BrokerUpdater.prototype.updateHeader = function()
{
- this.showReadOnlyAttributes();
var brokerData = this.brokerData;
window.document.title = "Qpid: " + brokerData.name + " Management";
- for(var i in this.attributes)
+
+ for(var i in brokerAttributeNames)
{
- var propertyName = this.attributes[i].name;
+ var propertyName = brokerAttributeNames[i];
var element = dojo.byId("brokerAttribute." + propertyName);
if (element)
{
@@ -622,53 +626,43 @@ define(["dojo/_base/xhr",
var that = this;
xhr.get({url: this.query, sync: properties.useSyncGet, handleAs: "json"}).then(function(data)
- {
- that.brokerData = data[0];
- util.flattenStatistics( that.brokerData );
-
- that.updateHeader();
-
- if (that.vhostsGrid.update(that.brokerData.virtualhostnodes))
- {
- that.vhostsGrid.grid._refresh();
- that.toggleVirtualHostNodeNodeMenus();
- }
-
- that.portsGrid.update(that.brokerData.ports);
-
- that.authenticationProvidersGrid.update(that.brokerData.authenticationproviders);
-
- if (that.keyStoresGrid)
- {
- that.keyStoresGrid.update(that.brokerData.keystores);
- }
- if (that.trustStoresGrid)
- {
- that.trustStoresGrid.update(that.brokerData.truststores);
- }
- if (that.groupProvidersGrid)
- {
- that.groupProvidersGrid.update(that.brokerData.groupproviders);
- }
- if (that.accessControlProvidersGrid)
- {
- var data = that.brokerData.accesscontrolproviders ? that.brokerData.accesscontrolproviders :[];
- that.accessControlProvidersGrid.update(data);
- that.displayACLWarnMessage(data);
- }
- });
+ {
+ that.brokerData = data[0];
+ util.flattenStatistics( that.brokerData );
+
+ that.updateHeader();
+
+ if (that.vhostsGrid.update(that.brokerData.virtualhostnodes))
+ {
+ that.vhostsGrid.grid._refresh();
+ that.toggleVirtualHostNodeNodeMenus();
+ }
+
+ that.portsGrid.update(that.brokerData.ports);
+
+ that.authenticationProvidersGrid.update(that.brokerData.authenticationproviders);
+
+ if (that.keyStoresGrid)
+ {
+ that.keyStoresGrid.update(that.brokerData.keystores);
+ }
+ if (that.trustStoresGrid)
+ {
+ that.trustStoresGrid.update(that.brokerData.truststores);
+ }
+ if (that.groupProvidersGrid)
+ {
+ that.groupProvidersGrid.update(that.brokerData.groupproviders);
+ }
+ if (that.accessControlProvidersGrid)
+ {
+ var data = that.brokerData.accesscontrolproviders ? that.brokerData.accesscontrolproviders :[];
+ that.accessControlProvidersGrid.update(data);
+ that.displayACLWarnMessage(data);
+ }
+ });
};
- BrokerUpdater.prototype.showReadOnlyAttributes = function()
- {
- var brokerData = this.brokerData;
- dojo.byId("brokerAttribute.name").innerHTML = entities.encode(String(brokerData.name));
- dojo.byId("brokerAttribute.operatingSystem").innerHTML = entities.encode(String(brokerData.operatingSystem));
- dojo.byId("brokerAttribute.platform").innerHTML = entities.encode(String(brokerData.platform));
- dojo.byId("brokerAttribute.productVersion").innerHTML = entities.encode(String(brokerData.productVersion));
- dojo.byId("brokerAttribute.modelVersion").innerHTML = entities.encode(String(brokerData.modelVersion));
- }
-
BrokerUpdater.prototype.toggleVirtualHostNodeNodeMenus = function(rowIndex)
{
var data = this.vhostsGrid.grid.selection.getSelected();