[infinispan-dev] Changing managed method names
Galder Zamarreño
galder at jboss.org
Tue Jul 6 03:41:44 EDT 2010
Hey,
As a result of changing RpcManagerImpl getAddress method name to getNodeAddress, the following test is failing:
http://hudson.qa.jboss.com/hudson/view/Infinispan/job/Infinispan-4.1.x-JDK6-tcp/org.infinispan$infinispan-core/4/testReport/junit/org.infinispan.jmx/RpcManagerMBeanTest-testAddressInformation/org_infinispan_jmx_RpcManagerMBeanTest_testAddressInformation/
Be careful about changing method names, particularly when these methods are annotated with @ManagedAttribute or JOPR annotations because they affect statistic MBean property names.
By the way, what is the reason why you changed the method name and added a new getAddress method to RpcManager interface and RpcManagerImpl?
That information is available via rpcManager.getTransport.getAddress. Is it to provide some kind of shortcut? DefaultCacheManager uses transport.getAddress() without problems.
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
More information about the infinispan-dev
mailing list