Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 249166

Re: Detecting existing DS or Cache in VM

$
0
0

CacheFactory.getAnyInstance can be used to get an existing and open cache instance. If one hasn't been created or has been closed, the method throws a CacheClosedException. This method is typically used to get access to the cache or distributed system instance (Cache.getAnyInstance().getDistributedSystem()), and detect its existence in the process.  And, by the way, if the cache is closed, then the distributed system is closed as well, and vice versa.


Viewing all articles
Browse latest Browse all 249166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>