[infinispan-dev] Changing managed method names

Mircea Markus mircea.markus at jboss.com
Tue Jul 6 04:17:01 EDT 2010


On 6 Jul 2010, at 10:41, Galder Zamarreño wrote:

> 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.
ok, thanks
> 
> 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?
yes
> DefaultCacheManager uses transport.getAddress() without problems. 
> 
> Cheers,
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
> 




More information about the infinispan-dev mailing list