[infinispan-dev] JOPR and managing Infinispan

Bela Ban bban at redhat.com
Mon Jul 27 08:33:46 EDT 2009


Not sure of this is an old topic, but in JGroups we're using the JDK 7 
annotations, but implemented in JGroups. Once JDK 7 is the base line, we 
can simply use the JDK annotations instead of our own. The syntax is 
exactly the same

Manik Surtani wrote:
> On 24 Jul 2009, at 10:05, Galder Zamarreno wrote:
>
>>
>> On 07/21/2009 04:56 PM, Heiko W.Rupp wrote:
>>> Am 20.07.2009 um 17:48 schrieb Heiko W.Rupp:
>>>> This actually like some interesting tooling that could be neat for
>>>> other Jopr users too.
>>> RHQ/Jopr already has a plugin skeleton generator - see
>>> http://viewvc.rhq-project.org/cgi-bin/viewvc.cgi/rhq/trunk/modules/helpers/pluginGen/
>>> and especially
>>> http://support.rhq-project.org/display/RHQ/Plugins+-+plugin+generator
>>>
>>> So this generator here can reuse some parts of the above generator or
>>> on the other hand above generator could be extended to actually point
>>> at some source code with MBeans and pull the information from there.
>>> Then it would populate the plugin descriptor with the metrics
>>> (descriptorMain.ftl) and also e.g. extend the implementation of the
>>> Measurement and Operation Facets with code that pulls the data from
>>> there or that invokes the operation.
>>>
>>> The later approach has the advantage that it could be reused by
>>> other projects. But this would also mean that other projects would
>>> need to use the same @MO/@MA annotations, which is unlikely.
>> @MO and @MA are supposed to be part ofg JDK7:
>> http://download.java.net/jdk7/docs/api/javax/management/ManagedAttribute.html
>>
>> So, if all depended on some jdk7-ish.jar that contained these
>> annotations, that would solve the issue.
>
> That would mean baselining on JDK7 which won't happen for a while to
> come IMO.

-- 
Bela Ban
Lead JGroups / Clustering Team
JBoss



More information about the infinispan-dev mailing list