use of org.apache.geode.internal.cache.tier.sockets.AcceptorImpl in project geode by apache.
the class InternalClientMembership method getClientQueueSizes.
public static Map getClientQueueSizes() {
Map clientQueueSizes = new HashMap();
InternalCache c = (InternalCache) CacheFactory.getAnyInstance();
if (// Add a NULL Check
c == null)
return clientQueueSizes;
for (Iterator bsii = c.getCacheServers().iterator(); bsii.hasNext(); ) {
CacheServerImpl bsi = (CacheServerImpl) bsii.next();
AcceptorImpl ai = bsi.getAcceptor();
if (ai != null && ai.getCacheClientNotifier() != null) {
clientQueueSizes.putAll(ai.getCacheClientNotifier().getClientQueueSizes());
}
}
// for
return clientQueueSizes;
}
Aggregations