public long getTotalSize() {
long totalSize = 0;
DistributedExecutorService des = new DefaultExecutorService(cache);
CacheSizer<?, ?, Integer> cacheSizer = new CacheSizer<Object, Object, Integer>();
DistributedTaskBuilder<Integer> taskBuilder = des.createDistributedTaskBuilder(cacheSizer);
List<Future<Integer>> futureList = des.submitEverywhere(taskBuilder.build());
for (Future<Integer> future : futureList) {
try {
totalSize += future.get().intValue();
} catch (InterruptedException e) {