use of org.apache.geode.cache.client.internal.EndpointManager in project geode by apache.
the class UpdatePropagationDUnitTest method hasEndPointWithPort.
/**
* Check to see if a client is connected to an endpoint with a specific port
*/
private boolean hasEndPointWithPort(final PoolImpl pool, final int port) {
EndpointManager endpointManager = pool.getEndpointManager();
final Set<ServerLocation> servers = endpointManager.getEndpointMap().keySet();
return servers.stream().anyMatch(location -> location.getPort() == port);
}
Aggregations