public Connection getPrimaryConnection() {
    if (queueManager != null) {
      QueueManager.QueueConnections cons = queueManager.getAllConnections();
      return cons.getPrimary();
    }
    return null;
  }
Test hook to get a connection to the primary server.
geode-core/src/main/java/org/apache/geode/cache/client/internal/PoolImpl.java