On 22 Oct 2012, at 20:07, Hammad Said wrote:

I am implementing xsite state transfer. Wondering if someone knows tha apis/examples in the code for:

a) finding the local site name for the current node
This should return it: cache.getCacheManager().getCacheManagerConfiguration().sites().localSite()

b) all the caches configured on the local site.
BackupReceiverRepositoryImpl.getBackupCacheManager iterates over all the defined caches, in case it's that you're after? 

Cheers,
-- 
Mircea Markus
Infinispan lead (www.infinispan.org)