/** * This method returns the CacheClientStatus for all the clients that are * connected to this server. This method returns all clients irrespective of * whether subscription is enabled or not. * * @return Map of ClientProxyMembershipID against CacheClientStatus objects. */ public static Map getStatusForAllClientsIgnoreSubscriptionStatus() { Map result = new HashMap(); if (ClientHealthMonitor.getInstance() != null) result = ClientHealthMonitor.getInstance().getStatusForAllClients(); return result; }
/** * This method returns the CacheClientStatus for all the clients that are * connected to this server. This method returns all clients irrespective of * whether subscription is enabled or not. * * @return Map of ClientProxyMembershipID against CacheClientStatus objects. */ public static Map getStatusForAllClientsIgnoreSubscriptionStatus() { Map result = new HashMap(); if (ClientHealthMonitor.getInstance() != null) result = ClientHealthMonitor.getInstance().getStatusForAllClients(); return result; }
public static Map getConnectedIncomingGateways() { Map connectedIncomingGateways = null; ClientHealthMonitor chMon = ClientHealthMonitor.getInstance(); if (chMon == null) { connectedIncomingGateways = new HashMap(); } else { connectedIncomingGateways = chMon.getConnectedIncomingGateways(); } return connectedIncomingGateways; }
public static Map getConnectedIncomingGateways() { Map connectedIncomingGateways = null; ClientHealthMonitor chMon = ClientHealthMonitor.getInstance(); if (chMon == null) { connectedIncomingGateways = new HashMap(); } else { connectedIncomingGateways = chMon.getConnectedIncomingGateways(); } return connectedIncomingGateways; }
/** * Caller must synchronize on cache.allBridgeServersLock * @return all the clients */ public static Map getConnectedClients() { // Get all clients Map allClients = new HashMap(); for (Iterator bsii = CacheFactory.getAnyInstance().getBridgeServers().iterator(); bsii.hasNext(); ) { BridgeServerImpl bsi = (BridgeServerImpl) bsii.next(); AcceptorImpl ai = bsi.getAcceptor(); if (ai != null && ai.getCacheClientNotifier() != null) { allClients.putAll(ai.getCacheClientNotifier().getAllClients()); } } // Fill in the missing info, if HealthMonitor started if (ClientHealthMonitor.getInstance()!=null) ClientHealthMonitor.getInstance().fillInClientInfo(allClients); return allClients; }
/** * Caller must synchronize on cache.allClientServersLock * @return all the clients */ public static Map getConnectedClients() { // Get all clients Map allClients = new HashMap(); for (Iterator bsii = CacheFactory.getAnyInstance().getCacheServers().iterator(); bsii.hasNext(); ) { CacheServerImpl bsi = (CacheServerImpl) bsii.next(); AcceptorImpl ai = bsi.getAcceptor(); if (ai != null && ai.getCacheClientNotifier() != null) { allClients.putAll(ai.getCacheClientNotifier().getAllClients()); } } // Fill in the missing info, if HealthMonitor started if (ClientHealthMonitor.getInstance()!=null) ClientHealthMonitor.getInstance().fillInClientInfo(allClients); return allClients; }
for (Iterator iter = ClientHealthMonitor.getInstance().getClientHeartbeats().keySet().iterator(); iter.hasNext();) ClientHealthMonitor.getInstance().removeAllConnectionsAndUnregisterClient((ClientProxyMembershipID)iter.next());
ClientHealthMonitor chMon = ClientHealthMonitor.getInstance(); Set filterProxyIDs = null; if(onlyClientsNotifiedByThisServer) {
ClientHealthMonitor chMon = ClientHealthMonitor.getInstance(); Set filterProxyIDs = null; if(onlyClientsNotifiedByThisServer) {
/** * Removes an existing <code>CacheClientProxy</code> from the list of known * client proxies * * @param proxy * The <code>CacheClientProxy</code> to remove */ protected void removeClientProxy(CacheClientProxy proxy) { // this._logger.info(LocalizedStrings.DEBUG, "removing client proxy " + proxy, new Exception("stack trace")); ClientProxyMembershipID client = proxy.getProxyID(); this._clientProxies.remove(client); this._connectionListener.queueRemoved(); ((GemFireCacheImpl)this.getCache()).cleanupForClient(this, client); if (!(proxy.clientConflation == HandShake.CONFLATION_ON)) { ClientHealthMonitor chm = ClientHealthMonitor.getInstance(); if (chm != null) { chm.numOfClientsPerVersion .decrementAndGet(proxy.getVersion().ordinal()); } } }
/** * Removes an existing <code>CacheClientProxy</code> from the list of known * client proxies * * @param proxy * The <code>CacheClientProxy</code> to remove */ protected void removeClientProxy(CacheClientProxy proxy) { // this._logger.info(LocalizedStrings.DEBUG, "removing client proxy " + proxy, new Exception("stack trace")); ClientProxyMembershipID client = proxy.getProxyID(); this._clientProxies.remove(client); this._connectionListener.queueRemoved(); ((GemFireCacheImpl)this.getCache()).cleanupForClient(this, client); if (!(proxy.clientConflation == HandShake.CONFLATION_ON)) { ClientHealthMonitor chm = ClientHealthMonitor.getInstance(); if (chm != null) { chm.numOfClientsPerVersion .decrementAndGet(proxy.getVersion().ordinal()); } } }
logger.debug("{}: rcv tx: {} from {} rcvTime: {}", servConn.getName(), msg.getTransactionId(), servConn.getSocketString(), (DistributionStats.getStatTime() - start)); ClientHealthMonitor chm = ClientHealthMonitor.getInstance(); if (chm != null) chm.receivedPing(servConn.getProxyID());
/** * Adds a new <code>CacheClientProxy</code> to the list of known client * proxies * * @param proxy * The <code>CacheClientProxy</code> to add */ protected void addClientProxy(CacheClientProxy proxy) throws IOException { // this._logger.info(LocalizedStrings.DEBUG, "adding client proxy " + proxy); getCache(); // ensure cache reference is up to date so firstclient state is correct this._clientProxies.put(proxy.getProxyID(), proxy); // Remove this proxy from the init proxy list. removeClientInitProxy(proxy); this._connectionListener.queueAdded(proxy.getProxyID()); if (!(proxy.clientConflation == HandShake.CONFLATION_ON)) { // Delta not supported with conflation ON ClientHealthMonitor chm = ClientHealthMonitor.getInstance(); /* * #41788 - If the client connection init starts while cache/member is * shutting down, ClientHealthMonitor.getInstance() might return null. */ if (chm != null) { chm.numOfClientsPerVersion.incrementAndGet(proxy.getVersion().ordinal()); } } this.timedOutDurableClientProxies.remove(proxy.getProxyID()); }
/** * Adds a new <code>CacheClientProxy</code> to the list of known client * proxies * * @param proxy * The <code>CacheClientProxy</code> to add */ protected void addClientProxy(CacheClientProxy proxy) throws IOException { // this._logger.info(LocalizedStrings.DEBUG, "adding client proxy " + proxy); getCache(); // ensure cache reference is up to date so firstclient state is correct this._clientProxies.put(proxy.getProxyID(), proxy); // Remove this proxy from the init proxy list. removeClientInitProxy(proxy); this._connectionListener.queueAdded(proxy.getProxyID()); if (!(proxy.clientConflation == HandShake.CONFLATION_ON)) { // Delta not supported with conflation ON ClientHealthMonitor chm = ClientHealthMonitor.getInstance(); /* * #41788 - If the client connection init starts while cache/member is * shutting down, ClientHealthMonitor.getInstance() might return null. */ if (chm != null) { chm.numOfClientsPerVersion.incrementAndGet(proxy.getVersion().ordinal()); } } }
ClientHealthMonitor chm = ClientHealthMonitor.getInstance();
this.healthMonitor = ClientHealthMonitor.getInstance(c, maximumTimeBetweenPings, this.clientNotifier.getStats());
+ (DistributionStats.getStatTime() - start)); ClientHealthMonitor chm = ClientHealthMonitor.getInstance(); if (chm != null) chm.receivedPing(servConn.getProxyID());
extractDelta = true; if (!extractDelta && ClientHealthMonitor.getInstance() != null) { extractDelta = ClientHealthMonitor.getInstance().hasDeltaClients();
extractDelta = true; if (!extractDelta && ClientHealthMonitor.getInstance() != null) { extractDelta = ClientHealthMonitor.getInstance().hasDeltaClients();
ClientHealthMonitor chm = ClientHealthMonitor.getInstance();