/** * This is used by unit tests */ @Override public Object executeOn(Connection conn, Op op) { return executeOn(conn, op, false); }
@Override public Object executeOn(ServerLocation server, Op op) { return executeOn(server, op, true, false); }
@Override public Object executeOn(Connection con, Op op, boolean timeoutFatal) { return executor.executeOn(con, op, timeoutFatal); }
/** * 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 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 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); }
10, false, cancelCriterion, null); ServerLocation server = new ServerLocation("localhost", -1); Object result = exec.executeOn(server, new Op() { @Override public Object attempt(Connection cnx) throws Exception { result = exec.executeOn(server, new Op() { @Override public Object attempt(Connection cnx) throws Exception { result = exec.executeOn(server, new Op() { @Override public Object attempt(Connection cnx) throws Exception { logger.info(addExpected); try { result = exec.executeOn(server, new Op() { @Override public Object attempt(Connection cnx) throws Exception {