ManagedAttributes in DefautlCacheManager
by Heiko W.Rupp
Hi,
why are those strings?
@ManagedAttribute(description = "number of running caches")
public String getCreatedCacheCount() {
return String.valueOf(this.caches.keySet().size());
}
@ManagedAttribute(description = "the total number of defined caches")
public String getDefinedCacheCount() {
return String.valueOf(this.configurationOverrides.keySet().size());
}
I think something numerical would be better - can I change that?
Heiko
-- Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei
München
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,
Charles Cachera
14 years, 10 months
JOPR plugin - display names
by Manik Surtani
Heiko,
Your JOPR plugin has an RHQ xml file that maps managed attributes to
"friendly names". Can this be generated? Each managed attribute/
operation is annotated using a @ManagedAttribute/@ManagedOperation
annotation, which has a "description". This is the description that
should be used in any GUI console.
Cheers
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
14 years, 10 months
wiki on config import tools
by Mircea Markus
Hi,
I've added this document describing talking about existing migration tools.
Here it is: http://www.jboss.org/community/wiki/ConfigurationImportTools
Any feedback is welcomed!
I will also add a blog entry soon.
I cannot link it from here, though, as I don't seem to have the rights
:( :http://www.jboss.org/community/wiki/Infinispan . Manik, can you
please assist me on this one?
Cheers,
Mircea
14 years, 10 months
JGroups, maven and installing local snapshots
by Vladimir Blagojevic
Hi,
Mircea had an issue yesterday where he needed to fix something on head
version of JGroups and then use the newly created jar as a snapshot from
his local maven repo. JGroups has pom.xml file which is used for pushing
JGroups releases into jboss maven repository but the compile and
snapshot making did not work since we need testng 5.9 release.
Now you can make local snapshots of JGroups if you need to. Simply
execute "mvn -f jgroups-pom.xml clean install" from the root of your
JGroup head tree and you are good to go.
Kudos to Galder for helping on this one!
Regards,
Vladimir
14 years, 10 months
Raison de etre of TestObjectStreamMarshaller
by Galder Zamarreno
Hi guys,
I've spotted that JdbcMixedCacheStoreTest and others currently use
TestObjectStreamMarshaller rather than VersionAwareMarshaller. Why is
this? Easies of debugging with XStream based marshaller?
To increase test coverage, I'd suggest using VAM rather
TestObjectStreamMarshaller in tests as well.
In the case of JdbcMixedCacheStoreTest, the extended test coverage comes
from the fact that fromStream and toStream use start/multiple
writes/finish marshalling pattern, which is different to RPC calls,
where it's basically, start/one write/finish.
I can see the point of dummy cache stores cos you avoid needing a
database, files...etc, but I'm not sure whether about a dummy/test
marshaller. The more the production marshaller is used, the bigger test
coverage we have.
Regards,
--
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat
14 years, 10 months
JMX documentation
by Manik Surtani
Guys
I have created a module called 'tools' in Infinispan trunk. This
module is not packaged for distribution, but contains internal tools
to help with the build and development process. So far I have created
one tool here - a custom Doclet that generates a summary of all JMX
components based on the JMX @MBean, @ManagedOperation and
@ManagedAttribute annotations.
The Doclet is currently invoked by running mvn install with the -
Pjmxdoc profile. This will eventually be rolled in to the -
Pdistribution profile when building the Infinispan distribution.
The output of the Doclet can be viewed here:
http://infinispan.sourceforge.net/4.0/apidocs/jmxComponents.html
So please make extensive use of the @MBean/@MBeanOperation/
@MBeanAttribute name, objectName and description parameters when you
use these annotations, to properly describe what it is you are
exposing and what it is good for. These values are used to generate
the doc you see above.
Also, there is another JIRA to document a configuration reference
[1]. I expect this will take a similar approach, with each setter in
Configuration and GlobalConfiguration being annotated with equivalent
XML elements, details such as default and allowed values, and a
description.
Cheers
Manik
[1] https://jira.jboss.org/jira/browse/ISPN-89
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
14 years, 10 months
Marshaller use in BaseCacheStoreTest subclasses
by Galder Zamarreno
Guys,
If you create further implementations of BaseCacheStoreTest, could you
make sure that the marshaller used is the one retrieved from
getMarshaller() method call? This way subclasses can potentially
override the marshaller used.
This enables for example to subclass JdbcBinaryCacheStoreTest and
provide a different implementation for getMarshaller() that returns VAM.
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
14 years, 10 months
tools project compilation issues fixed
by Galder Zamarreno
Hi,
The following messages arising from tools compiation:
/home/galder/jboss/code/infinispan/trunk/tools/src/main/java/org/infinispan/tools/doclet/jmx/JmxDoclet.java:[3,22]
package com.sun.javadoc does not exist
Are due to tools.jar not being included in the dependencies:
http://maven.apache.org/general.html#tools-jar-dependency
Looks like adding this fixes it:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.4.2</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
Vladimir, I've also modified the POM so that the dependency version on
infinispan is not hardcoded and added the test jar dependency.
Cheers,
--
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat
14 years, 10 months