public boolean isServer() {
    return !cache.getCacheServers().isEmpty();
  }
Is the CQ service in a cache server environment

@return true if cache server, false otherwise
geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQueryService.java