Search in sources :

Example 11 with AcceptorImpl

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;
}
Also used : HashMap(java.util.HashMap) AcceptorImpl(org.apache.geode.internal.cache.tier.sockets.AcceptorImpl) Iterator(java.util.Iterator) InternalCache(org.apache.geode.internal.cache.InternalCache) CacheServerImpl(org.apache.geode.internal.cache.CacheServerImpl) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

AcceptorImpl (org.apache.geode.internal.cache.tier.sockets.AcceptorImpl)11 CacheServerImpl (org.apache.geode.internal.cache.CacheServerImpl)6 ClientProxyMembershipID (org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID)5 Iterator (java.util.Iterator)4 IOException (java.io.IOException)3 HashMap (java.util.HashMap)3 Map (java.util.Map)3 Set (java.util.Set)3 CqException (org.apache.geode.cache.query.CqException)3 DefaultQueryService (org.apache.geode.cache.query.internal.DefaultQueryService)3 InternalCache (org.apache.geode.internal.cache.InternalCache)3 CachedRegionHelper (org.apache.geode.internal.cache.tier.CachedRegionHelper)3 CacheClientProxy (org.apache.geode.internal.cache.tier.sockets.CacheClientProxy)3 CacheServerStats (org.apache.geode.internal.cache.tier.sockets.CacheServerStats)3 ServerConnection (org.apache.geode.internal.cache.tier.sockets.ServerConnection)3 AuthorizeRequest (org.apache.geode.internal.security.AuthorizeRequest)3 ArrayList (java.util.ArrayList)2 List (java.util.List)2 ExecuteCQOperationContext (org.apache.geode.cache.operations.ExecuteCQOperationContext)2 Query (org.apache.geode.cache.query.Query)2