/** * Execute the given op on the given server. * * @param server the server to do the execution on * @param op the operation to execute * @return the result of execution if any; null if not */ @Override public Object executeOn(ServerLocation server, Op op) { authenticateIfRequired(server, op); return executor.executeOn(server, op); }
/** * Execute the given op on the servers that this pool connects to. This method is responsible for * retrying the op if an attempt fails. It will only execute it once and on one server. * * @param op the operation to execute * @param retries how many times to retry the operation * @return the result of execution if any; null if not * @since GemFire 5.7 */ @Override public Object execute(Op op, int retries) { authenticateIfRequired(null, op); return executor.execute(op, retries); }
/** * Execute the given op on the given server. * * @param server the server to do the execution on * @param op the operation to execute * @param accessed true if the connection is accessed by this execute * @return the result of execution if any; null if not */ @Override public Object executeOn(ServerLocation server, Op op, boolean accessed, boolean onlyUseExistingCnx) { authenticateIfRequired(server, op); return executor.executeOn(server, op, accessed, onlyUseExistingCnx); }
/** * Execute the given op on the servers that this pool connects to. This method is responsible for * retrying the op if an attempt fails. It will only execute it once and on one server. * * @param op the operation to execute * @return the result of execution if any; null if not * @since GemFire 5.7 */ @Override public Object execute(Op op) { // if(multiuser) // get a server from threadlocal cache else throw cacheWriterException // executeOn(ServerLocation server, Op op, boolean accessed,boolean onlyUseExistingCnx) // Retries are ignored here. FIX IT - FIXED. // But this may lead to a user getting authenticated on all servers, even if // a single server could have serviced all its requests. authenticateIfRequired(null, op); return executor.execute(op); }
/** * Execute the given op on the given connection. * * @param con the connection to do the execution on * @param op the operation to execute * @return the result of execution if any; null if not */ @Override public Object executeOn(Connection con, Op op) { authenticateIfRequired(con.getServer(), op); return executor.executeOn(con, op); }