Skip to content

Commit

Permalink
#852: Added thread pool subtab to jetty plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Dec 15, 2013
1 parent ed8d5fd commit 4966c67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hawtio-web/src/main/webapp/app/jetty/js/threadpools.ts
Expand Up @@ -48,8 +48,8 @@ module Jetty {
resizable: true
},
{
field: 'maxIdleTimeMs',
displayName: 'Max Idle Time (ms)',
field: 'idleTimeout',
displayName: 'Idle Timeout (ms)',
cellFilter: null,
width: "*",
resizable: true
Expand Down Expand Up @@ -77,6 +77,9 @@ module Jetty {
function onAttributes(response) {
var obj = response.value;
if (obj) {
// jetty78 vs jetty9 is a bit different
obj.running = obj['running'] !== undefined ? obj['running'] : obj['state'] == "STARTED";
obj.idleTimeout = obj['idleTimeout'] !== undefined ? obj['idleTimeout'] : obj['maxIdleTimeMs'];
$scope.threadpools.push(obj);
}
}
Expand Down

0 comments on commit 4966c67

Please sign in to comment.