Darrel Schneider created GEODE-4366:
---------------------------------------

             Summary: GemFireCacheImpl.isClient should be implemented like 
GemFireCacheImpl.hasPool
                 Key: GEODE-4366
                 URL: https://issues.apache.org/jira/browse/GEODE-4366
             Project: Geode
          Issue Type: Bug
          Components: client/server
            Reporter: Darrel Schneider


I think you can have a "client" that does not create its cache using 
ClientCacheFactory. Instead it can use PoolManager to create a client 
connection pool and then use CacheFactory and configure client regions to use 
its pools.

If this is done then the code that calls "isClient" will return false 
indicating that we are not a client. But if you have a pool then you are a 
client. I think the more proper implementation of "isClient" is this:

    return this.isClient || !getAllPools().isEmpty();

which is the current implementation of "hasPool".

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to