November 2018
Beginner to intermediate
260 pages
6h 12m
English
The CacheMetrics
interface provides APIs for monitoring distributed caches. The setStatisticsEnabled method of CacheConfiguration sets whether statistics gathering is enabled on a cache or not. The metrics() method of IgniteCache
returns the whole cluster's snapshot metrics for the cache and the localMetrics() method gets the local node's metrics snapshot for the cache.
The following code snippet will create a cache configuration, enable statistics gathering, and monitor the whole cluster's snapshot metrics for the cache:
public class CacheMonitoring { public static void main(String[] args) throws InterruptedException {
CacheConfiguration<Long, ...
Read now
Unlock full access