cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to capture a value from object type Boolean

Venkata_Thota
Newcomer

Hi,

I need to monitor a boolean (object type) return value and extract true or false from it. is it possible as it is not simple data type. Any suggestions? 

2 REPLIES 2

c_schwarzbauer
Dynatrace Champion
Dynatrace Champion

hi,

what do you mean with "monitor"?

if you capture this Boolean via a sensor rule then toString() will be called on it which should return "true" or "false" anyway (http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Boolean.java#...).

and if not, you can still use deep object access to call booleanValue() on it (http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Boolean.java#...).

hope this helps,
Christian 

Thanks Christian. i think i might need to use the deep object access. I will try and let you know