JMX interface proxy for Jacoco Agent

21 views
Skip to first unread message

asen...@2keys.ca

unread,
Apr 26, 2019, 4:27:21 PM4/26/19
to JaCoCo and EclEmma Users
I was wondering why the example use of JMX https://www.jacoco.org/jacoco/trunk/doc/examples/java/MBeanClient.java defines an interface IProxy instead of referring to org.jacoco.agent.rt.IAgent other than I can't find a jar with the IAgent class in it. Is there a jar with IAgent in it that I should be referencing?

Marc Hoffmann

unread,
Apr 26, 2019, 4:42:52 PM4/26/19
to jac...@googlegroups.com
Hi,

it is the JaCoCo agent jar itself.

In Maven you find it with qualifier “runtime”:

https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.3/

Regards,
-marc



> On 26. Apr 2019, at 22:27, asen...@2keys.ca wrote:
>
> I was wondering why the example use of JMX https://www.jacoco.org/jacoco/trunk/doc/examples/java/MBeanClient.java defines an interface IProxy instead of referring to org.jacoco.agent.rt.IAgent other than I can't find a jar with the IAgent class in it. Is there a jar with IAgent in it that I should be referencing?
>
> --
> You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/1eb41949-10fc-493f-8fb9-af52d44fe215%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Evgeny Mandrikov

unread,
Apr 26, 2019, 4:59:20 PM4/26/19
to JaCoCo and EclEmma Users


On Friday, April 26, 2019 at 10:27:21 PM UTC+2, asen...@2keys.ca wrote:
I was wondering why the example use of JMX https://www.jacoco.org/jacoco/trunk/doc/examples/java/MBeanClient.java defines an interface IProxy instead of referring to org.jacoco.agent.rt.IAgent

Why not, given that JMX permits to do such thing.
 
other than I can't find a jar with the IAgent class in it. Is there a jar with IAgent in it that I should be referencing?

jacocoagent.jar in zip distribution
which is equivalent to jar in Maven repository with groupId "org.jacoco" artifactId "org.jacoco.agent" and classifier "runtime"

Message has been deleted

asen...@2keys.ca

unread,
Apr 26, 2019, 5:14:24 PM4/26/19
to JaCoCo and EclEmma Users
On Friday, April 26, 2019 at 4:59:20 PM UTC-4, Evgeny Mandrikov wrote:
> On Friday, April 26, 2019 at 10:27:21 PM UTC+2, asen...@2keys.ca wrote:I was wondering why the example use of JMX https://www.jacoco.org/jacoco/trunk/doc/examples/java/MBeanClient.java defines an interface IProxy instead of referring to org.jacoco.agent.rt.IAgent
>
>
> Why not, given that JMX permits to do such thing.

A question of style, it feels safer to reference the same interface.

>
>  other than I can't find a jar with the IAgent class in it. Is there a jar with IAgent in it that I should be referencing?
>
>
> jacocoagent.jar in zip distribution
> which is equivalent to jar in Maven repository with groupId "org.jacoco" artifactId "org.jacoco.agent" and classifier "runtime"

Thank you for the quick response.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages