From 31d909351e38862b9ba18088ade3f039c460341d Mon Sep 17 00:00:00 2001 From: lprimak Date: Thu, 25 Mar 2021 13:04:05 -0500 Subject: [PATCH] CachePartitionIterator / ClusterWidePartition no longer necessary since tenant control takes care of class loading and context --- .../fish/payara/nucleus/hazelcast/admin/ListCacheKeys.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ListCacheKeys.java b/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ListCacheKeys.java index c7ecfcedd4b..fed03601052 100644 --- a/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ListCacheKeys.java +++ b/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ListCacheKeys.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) [2016-2020] Payara Foundation and/or its affiliates. All rights reserved. + * Copyright (c) [2016-2021] Payara Foundation and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -40,7 +40,6 @@ package fish.payara.nucleus.hazelcast.admin; import com.hazelcast.cache.impl.CacheEntry; -import com.hazelcast.cache.impl.CachePartitionsIterator; import com.hazelcast.cache.impl.CacheProxy; import com.hazelcast.core.DistributedObject; import com.hazelcast.core.HazelcastInstance; @@ -118,7 +117,7 @@ public void execute(AdminCommandContext context) { CacheProxy jcache = (CacheProxy) dobject; if (cacheName == null || cacheName.isEmpty() || cacheName.equals(jcache.getName())) { builder.append("JCache ").append(jcache.getName()).append("\n{"); - keyIterator = new CachePartitionsIterator<>(jcache, 10, true); + keyIterator = jcache.iterator(); } } while (keyIterator != null && keyIterator.hasNext()) {