Mercurial > hg > thermostat-ng > web-client
changeset 151:47c4b229c02e
Add isAlive to mock jvm info data
Reviewed-by: almac
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-August/024489.html
author | Jie Kang <jkang@redhat.com> |
---|---|
date | Wed, 09 Aug 2017 10:14:08 -0400 |
parents | 9d4f0f049abe |
children | 5c5efbdc6a0c |
files | mock-api/endpoints/jvms.endpoint.js |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mock-api/endpoints/jvms.endpoint.js Tue Aug 08 14:47:19 2017 -0400 +++ b/mock-api/endpoints/jvms.endpoint.js Wed Aug 09 10:14:08 2017 -0400 @@ -21,19 +21,22 @@ 'mainClass': 'c.r.t.A', 'startTime': { $numberLong: (Date.now() - 10000000).toString() }, 'stopTime': { $numberLong: '-1' }, - 'jvmId': 'vm-0' + 'jvmId': 'vm-0', + 'isAlive': true }, { 'mainClass': 'c.r.t.B', 'startTime': { $numberLong: (Date.now() - 1500000).toString() }, 'stopTime': { $numberLong: '-1' }, - 'jvmId': 'vm-1' + 'jvmId': 'vm-1', + 'isAlive': true }, { 'mainClass': 'c.r.t.C', 'startTime': { $numberLong: (Date.now() - 25000000).toString() }, 'stopTime': { $numberLong: '-1' }, - 'jvmId': 'vm-2' + 'jvmId': 'vm-2', + 'isAlive': true } ]; if (!aliveOnly) { @@ -41,7 +44,8 @@ 'mainClass': 'c.r.t.D', 'startTime': { $numberLong: (Date.now() - 350000000).toString() }, 'stopTime': { $numberLong: Date.now().toString() }, - 'jvmId': 'vm-3' + 'jvmId': 'vm-3', + 'isAlive': false }); } var system = {