@Override public short getWanSiteVersion() { return getConnection().getWanSiteVersion(); }
short remoteSiteVersion = conn.getWanSiteVersion(); if (Version.GFE_701.compareTo(remoteSiteVersion) <= 0) { return true;
/** * Send a list of gateway events to a server to execute using connections from the given pool to * communicate with the server. * * @param con the connection to send the message on. * @param pool the pool to use to communicate with the server. * @param events list of gateway events * @param batchId the ID of this batch * @param removeFromQueueOnException true if the events should be processed even after some * exception */ public static void executeOn(Connection con, ExecutablePool pool, List events, int batchId, boolean removeFromQueueOnException, boolean isRetry) { AbstractOp op = null; // System.out.println("Version: "+con.getWanSiteVersion()); // Is this check even needed anymore? It looks like we just create the same exact op impl with // the same parameters... if (Version.GFE_651.compareTo(con.getWanSiteVersion()) >= 0) { op = new GatewaySenderGFEBatchOpImpl(events, batchId, removeFromQueueOnException, con.getDistributedSystemId(), isRetry); } else { // Default should create a batch of server version (ACCEPTOR.VERSION) op = new GatewaySenderGFEBatchOpImpl(events, batchId, removeFromQueueOnException, con.getDistributedSystemId(), isRetry); } pool.executeOn(con, op, true/* timeoutFatal */); }
if (communicationMode.isWAN() && Version.GFE_66.compareTo(conn.getWanSiteVersion()) <= 0 && currentClientVersion.compareTo(Version.GFE_66) >= 0) { int remoteDistributedSystemId = in.read(); if (communicationMode.isWAN() && Version.GFE_80.compareTo(conn.getWanSiteVersion()) <= 0 && currentClientVersion.compareTo(Version.GFE_80) >= 0) { int remotePdxSize = dis.readInt();