Bug 809623 - [as7] 'startTime' metric on 'Managed Server' Resources returns null value
Summary: [as7] 'startTime' metric on 'Managed Server' Resources returns null value
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHQ 4.4.0
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin
TreeView+ depends on / blocked
 
Reported: 2012-04-03 20:23 UTC by Ian Springer
Modified: 2013-08-06 00:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-09 17:12:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2012-04-03 20:23:03 UTC
Heiko: Not sure about this one -- did that ever exist or did we just add it globally ?

Comment 1 Heiko W. Rupp 2012-04-04 09:19:06 UTC
This now lives at
core-service=platform-mbean/type=runtime:start-time

for standalone

for host=*

for host=*/server=*/

Comment 2 Heiko W. Rupp 2012-04-04 12:09:46 UTC
master 64d1d7f

Note the failure in integration tests comes from the fact that 
the startTime lives on the runtime part of a managed server at

/host=master/server=X -- this is not present for servers that are not started
while they can still be defined at
/host=master/server-config=X

Currently we are returning nothing here, as there is no start time.

Comment 3 Heiko W. Rupp 2012-04-05 09:29:25 UTC
Ian what do you propose we do with the startTime for non-started servers?

Comment 4 Ian Springer 2012-04-05 13:21:49 UTC
// (pseudo-code)
if (metricName.equals("startTime")) {
   if (pingServer()) {
       return getAttribute("startTime");
   } else {
       return null;
   }
}

Comment 5 Ian Springer 2012-04-09 17:12:02 UTC
Closing this, as returning a null value for the 'startTime' trait for a non-started Managed Server is the expected behavior.


Note You need to log in before you can comment on or make changes to this bug.