public boolean done() { return proxy.isAlive(); } public String description() {
public boolean done() { return DeltaToRegionRelationDUnitTest.getClientProxy().isAlive() && DeltaToRegionRelationDUnitTest.getClientProxy() .getRegionsWithEmptyDataPolicy().containsKey( Region.SEPARATOR + REGION_NAME1); }
private void singletonRouteClientMessage(Conflatable conflatable, Collection<ClientProxyMembershipID> filterClients) { this._cache.getCancelCriterion().checkCancelInProgress(null); // bug #43942 - client notified but no p2p distribution List<CacheClientProxy> deadProxies = null; for(ClientProxyMembershipID clientId: filterClients ) { CacheClientProxy proxy; proxy = this.getClientProxy(clientId, true); if (proxy != null) { if (proxy.isAlive() || proxy.isPaused() || proxy.isConnected() || proxy.isDurable()) { proxy.deliverMessage(conflatable); } else { if (deadProxies == null) { deadProxies = new ArrayList<CacheClientProxy>(); } deadProxies.add(proxy); } this.blackListSlowReciever(proxy); } } checkAndRemoveFromClientMsgsRegion(conflatable); // Remove any dead clients from the clients to notify if (deadProxies != null) { closeDeadProxies(deadProxies, false); } }
private void singletonRouteClientMessage(Conflatable conflatable, Collection<ClientProxyMembershipID> filterClients) { this._cache.getCancelCriterion().checkCancelInProgress(null); // bug #43942 - client notified but no p2p distribution List<CacheClientProxy> deadProxies = null; for(ClientProxyMembershipID clientId: filterClients ) { CacheClientProxy proxy; proxy = this.getClientProxy(clientId, true); if (proxy != null) { if (proxy.isAlive() || proxy.isPaused() || proxy.isConnected() || proxy.isDurable()) { proxy.deliverMessage(conflatable); } else { proxy.getStatistics().incMessagesFailedQueued(); if (deadProxies == null) { deadProxies = new ArrayList<CacheClientProxy>(); } deadProxies.add(proxy); } this.blackListSlowReciever(proxy); } } checkAndRemoveFromClientMsgsRegion(conflatable); // Remove any dead clients from the clients to notify if (deadProxies != null) { closeDeadProxies(deadProxies, false); } }