Skip to content

Commit

Permalink
try a fix for better visualisation of N+1 master/slave where a contai…
Browse files Browse the repository at this point in the history
…ner has many brokers; with only 1 broker being master
  • Loading branch information
jstrachan committed Nov 28, 2013
1 parent ab8b33a commit fc4bcc9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions hawtio-web/src/main/webapp/app/fabric/js/brokers.ts
Expand Up @@ -137,14 +137,8 @@ module Fabric {
};
});
if (containerId) {
// lets create a container per broker for the N+1 case
var brokerContainer = findByIdOrCreate(broker.containers, brokerId + "_" + containerId, maps.container, () => {
return brokerStatus;
});
if (brokerContainer.master) {
container.masterTooltip = " is the master for broker: " + brokerId;
}
var container = findByIdOrCreate(broker.containers, containerId, maps.container, () => {
// lets create a container object per broker for the N+1 case
var container = findByIdOrCreate(broker.containers, brokerId + "_" + containerId, maps.container, () => {
return brokerStatus;
});
if (container.master) {
Expand Down

0 comments on commit fc4bcc9

Please sign in to comment.