dev@glassfish.java.net

Re: Supported parameter types for probe providers

From: Prashanth Abbagani <Prashanth.Abbagani_at_Sun.COM>
Date: Mon, 02 Nov 2009 13:32:34 -0800

Probe parameters should be either primitive or String types, see link
<http://wiki.glassfish.java.net/attach/V3FunctionalSpecs/Making_Module_Monitorable_V3.html#mozTocId121239>.

Composite types are not handled by DTrace that well (does a toString()).
We will try to fix this in next release.

-Prashanth

Oleksiy Stashok wrote:
> Hi,
>
> is it possible to use custom types parameters, when emitting probe
> provider event?
> Like:
>
> @Probe(name="myProbe")
> public void myProveEvent(
> @ProbeParam("customType") CustomType parameter) {}
>
>
> public class CustomType {
> int a;
> int b;
> AnotherCustomType c;
> }
>
> ......
>
>
> Thanks.
>
> WBR,
> Alexey.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>