/** * Initialize the RMI Cache Server from a properties object. * <p> * @param prop the configuration properties * @throws RemoteException if the configuration of the cache manager instance fails */ private void init( Properties prop ) throws RemoteException { try { cacheManager = createCacheManager( prop ); } catch (CacheException e) { throw new RemoteException(e.getMessage(), e); } // cacheManager would have created a number of ICache objects. // Use these objects to set up the cacheListenersMap. String[] list = cacheManager.getCacheNames(); for ( int i = 0; i < list.length; i++ ) { String name = list[i]; CompositeCache<K, V> cache = cacheManager.getCache( name ); cacheListenersMap.put( name, new CacheListeners<K, V>( cache ) ); } }
/** * Initialize the RMI Cache Server from a properties file. * <p> * @param prop * @throws RemoteException if the configuration of the cache manager instance fails */ private void init( String prop ) throws RemoteException { try { cacheManager = createCacheManager( prop ); } catch (CacheException e) { throw new RemoteException(e.getMessage(), e); } // cacheManager would have created a number of ICache objects. // Use these objects to set up the cacheListenersMap. String[] list = cacheManager.getCacheNames(); for ( int i = 0; i < list.length; i++ ) { String name = list[i]; CompositeCache<K, V> cache = cacheManager.getCache( name ); cacheListenersMap.put( name, new CacheListeners<K, V>( cache ) ); } }
for (String name : getCacheNames())
for (String name : getCacheNames())
String[] names = cacheHub.getCacheNames(); String[] cacheNames = cacheHub.getCacheNames();
String[] names = cacheHub.getCacheNames(); String[] cacheNames = cacheHub.getCacheNames();
throws Exception String[] cacheNames = cacheHub.getCacheNames();
throws Exception String[] cacheNames = cacheHub.getCacheNames();