@Override protected Message getMessage(CacheClientProxy proxy, byte[] latestValue) throws IOException { if (Version.GFE_70.compareTo(proxy.getVersion()) <= 0) { return getGFE70Message(proxy.getVersion()); } else { return null; } }
/** * Returns a <code>Message</code> generated from the fields of this * <code>ClientDataSerializerMessage</code>. * * @param latestValue byte[] containing the latest value to use. This could be the original value * if conflation is not enabled, or it could be a conflated value if conflation is enabled. * @return a <code>Message</code> generated from the fields of this * <code>ClientDataSerializerMessage</code> * @see org.apache.geode.internal.cache.tier.sockets.Message */ @Override protected Message getMessage(CacheClientProxy proxy, byte[] latestValue) throws IOException { if (proxy.getVersion().compareTo(Version.GFE_6516) >= 0) { return getGFE6516Message(proxy.getVersion()); } else if (proxy.getVersion().compareTo(Version.GFE_57) >= 0) { return getGFEMessage(proxy.getVersion()); } else { throw new IOException("Unsupported client version for server-to-client message creation: " + proxy.getVersion()); } }
@Override public Message getMessage(CacheClientProxy proxy, boolean notify) throws IOException { Version clientVersion = proxy.getVersion(); Message message = null; if (clientVersion.compareTo(Version.GFE_57) >= 0) { message = getGFEMessage(); } else { throw new IOException( "Unsupported client version for server-to-client message creation: " + clientVersion); } return message; }
@Override public Message getMessage(CacheClientProxy proxy, boolean notify) throws IOException { Version clientVersion = proxy.getVersion(); Message message = null; if (clientVersion.compareTo(Version.GFE_6622) >= 0) { message = getGFEMessage(); } else { throw new IOException( "Unsupported client version for server-to-client message creation: " + clientVersion); } return message; }
@Override public Message getMessage(CacheClientProxy proxy, boolean notify) throws IOException { Version clientVersion = proxy.getVersion(); Message message = null; if (clientVersion.compareTo(Version.GFE_57) >= 0) { message = getGFEMessage(); } else { throw new IOException( "Unsupported client version for server-to-client message creation: " + clientVersion); } return message; }
@Override protected Message getMessage(CacheClientProxy proxy, byte[] latestValue) throws IOException { Version clientVersion = proxy.getVersion(); Message message = null; if (clientVersion.compareTo(Version.GFE_57) >= 0) { message = getGFEMessage(proxy.getProxyID(), null, clientVersion); } else { throw new IOException( "Unsupported client version for server-to-client message creation: " + clientVersion); } return message; }
logger.debug("Checking whether to ping {}", proxy); if (proxy.getVersion().compareTo(Version.GFE_6622) >= 0) {
/** * 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(String.format("%s", "removing client proxy " + proxy, new // Exception("stack trace"))); ClientProxyMembershipID client = proxy.getProxyID(); this._clientProxies.remove(client); this._connectionListener.queueRemoved(); this.getCache().cleanupForClient(this, client); if (!(proxy.clientConflation == Handshake.CONFLATION_ON)) { ClientHealthMonitor chm = ClientHealthMonitor.getInstance(); if (chm != null) { chm.numOfClientsPerVersion.decrementAndGet(proxy.getVersion().ordinal()); } } }
/** * 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(String.format("%s", "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()); }
CacheClientProxy proxy = CacheClientNotifier.getInstance().getClientProxy(proxyId); if (proxy != null) { return proxy.getVersion(); } else { return null;
for (Object id : objects) { CacheClientProxy ccp = getClientProxy((ClientProxyMembershipID) id, true); if (ccp != null && ccp.getVersion().compareTo(Version.GFE_70) < 0) { filterClients.remove(id);
Version clientVersion = proxy.getVersion(); byte[] serializedValue = null; Message message = null;