public String description() { return "waiting for queues to drain for " + fproxy.getProxyID(); } };
public ClientProxyMembershipID getProxyID(String haRegionName) { CacheClientProxy proxy = haRegionNameToProxy.get(haRegionName); if (proxy != null){ return proxy.getProxyID(); } else { return null; } }
public ClientProxyMembershipID getProxyID(String haRegionName) { CacheClientProxy proxy = haRegionNameToProxy.get(haRegionName); if (proxy != null){ return proxy.getProxyID(); } else { return null; } }
public ClientProxyMembershipID getProxyID(String haRegionName) { CacheClientProxy proxy = haRegionNameToProxy.get(haRegionName); if (proxy != null){ return proxy.getProxyID(); } else { return null; } }
public ClientProxyMembershipID getProxyID(String haRegionName) { CacheClientProxy proxy = haRegionNameToProxy.get(haRegionName); if (proxy != null){ return proxy.getProxyID(); } else { return null; } }
protected void removeClientInitProxy(CacheClientProxy proxy) throws IOException { this._initClientProxies.remove(proxy.getProxyID()); }
protected void removeClientInitProxy(CacheClientProxy proxy) throws IOException { this._initClientProxies.remove(proxy.getProxyID()); }
protected void addClientInitProxy(CacheClientProxy proxy) throws IOException { this._initClientProxies.put(proxy.getProxyID(), proxy); }
protected boolean isProxyInInitializationMode(CacheClientProxy proxy) throws IOException { return this._initClientProxies.containsKey(proxy.getProxyID()); }
protected void addClientInitProxy(CacheClientProxy proxy) throws IOException { this._initClientProxies.put(proxy.getProxyID(), proxy); }
protected boolean isProxyInInitializationMode(CacheClientProxy proxy) throws IOException { return this._initClientProxies.containsKey(proxy.getProxyID()); }
/** * Return (possibly stale) list of all clients and their status * @return Map, with CacheClientProxy as a key and CacheClientStatus as a value */ public Map getAllClients() { Map clients = new HashMap(); for (Iterator iter = this._clientProxies.values().iterator(); iter.hasNext();) { CacheClientProxy proxy = (CacheClientProxy)iter.next(); ClientProxyMembershipID proxyID = proxy.getProxyID(); clients.put(proxyID, new CacheClientStatus(proxyID)); } return clients; }
protected boolean isDurable() { return getProxyID().isDurable(); }
public static String getClientIdFromCacheClientProxy(CacheClientProxy p){ if(p == null){ return null; } StringBuffer buffer = new StringBuffer(); buffer.append("[").append(p.getProxyID()).append(":port=").append(p.getRemotePort()).append(":primary=") .append(p.isPrimary()).append("]"); return buffer.toString(); }
public boolean done() { Set keysMap = (Set)ccp.cils[RegisterInterestTracker.interestListIndex] .getProfile(Region.SEPARATOR + REGION_NAME) .getKeysOfInterestFor(ccp.getProxyID()); return keysMap != null && keysMap.size() == 2; } public String description() {
public boolean done() { Set keysMap = (Set)ccp.cils[RegisterInterestTracker.interestListIndex] .getProfile(Region.SEPARATOR + REGION_NAME) .getKeysOfInterestFor(ccp.getProxyID()); return keysMap != null; } public String description() {
public static Set getKeysOfInterestMap(CacheClientProxy proxy, String regionName) { //assertNotNull(proxy.cils[RegisterInterestTracker.interestListIndex]); //assertNotNull(proxy.cils[RegisterInterestTracker.interestListIndex]._keysOfInterest); return proxy.cils[RegisterInterestTracker.interestListIndex] .getProfile(regionName).getKeysOfInterestFor(proxy.getProxyID()); }
public void run2() throws CacheException { final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); ccnInstance.closeDurableClientProxy(durableClientId); } });
private void closeNonDurableCqs(){ CqService cqService = getCache().getCqService(); if (cqService != null) { try { cqService.closeNonDurableClientCqs(getProxyID()); } catch (CqException ex) { logger.warn(LocalizedMessage.create(LocalizedStrings.CacheClientProxy_CQEXCEPTION_WHILE_CLOSING_NON_DURABLE_CQS_0, ex.getLocalizedMessage())); } } }
public static boolean checkPrimary(CacheClientProxy proxy) { Log.getLogWriter().info("proxy " + proxy.getProxyID()+ " : " + proxy.isPrimary()); return proxy.isPrimary(); }