Skip to content

Commit

Permalink
Services and Ehcache metrics UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed Oct 31, 2015
1 parent d16b7c6 commit ebc0716
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mica-webapp/src/main/webapp/app/admin/admin-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ mica.admin
$scope.servicesStats = {};
$scope.cachesStats = {};
angular.forEach(items.timers, function (value, key) {
if (key.indexOf('org.obiba') !== -1) {
$scope.servicesStats[key] = value;
if (key.indexOf('org.obiba') !== -1 && key.indexOf('net.sf.ehcache') === -1) {
$scope.servicesStats[key.replace('org.obiba.mica','o.o.m')] = value;
}

if (key.indexOf('net.sf.ehcache') !== -1) {
Expand All @@ -40,9 +40,8 @@ mica.admin
var newKey = key.substr(0, index);

// Keep the name of the domain
index = newKey.lastIndexOf('.');
$scope.cachesStats[newKey] = {
'name': newKey.substr(index + 1),
'name': newKey.replace('net.sf.ehcache.Cache.',''),
'value': value
};
}
Expand Down

0 comments on commit ebc0716

Please sign in to comment.