@Override public int getDistributedSystemId() { return getConnection().getDistributedSystemId(); }
/** * 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 */); }