/** * Stop a continuous query on the server using connections from the given pool to communicate with * the server. * * @param pool the pool to use to communicate with the server. * @param cqName name of the CQ to stop */ public static void execute(ExecutablePool pool, String cqName) { AbstractOp op = new StopCQOpImpl(cqName); pool.executeOnQueuesAndReturnPrimaryResult(op); }
/** * Create a continuous query on the server using connections from the given pool to communicate * with the server. * * @param pool the pool to use to communicate with the server. * @param cqName name of the CQ to create * @param queryStr string OQL statement to be executed * @param cqState int cqState to be set. * @param isDurable true if CQ is durable * @param regionDataPolicy the data policy ordinal of the region */ public static Object execute(ExecutablePool pool, String cqName, String queryStr, int cqState, boolean isDurable, byte regionDataPolicy) { AbstractOp op = new CreateCQOpImpl(cqName, queryStr, cqState, isDurable, regionDataPolicy); return pool.executeOnQueuesAndReturnPrimaryResult(op); }
/** * Create a continuous query on the server using connections from the given pool to communicate * with the server. * * @param pool the pool to use to communicate with the server. * @param cqName name of the CQ to create * @param queryStr string OQL statement to be executed * @param cqState int cqState to be set. * @param isDurable true if CQ is durable * @param regionDataPolicy the data policy ordinal of the region */ public static SelectResults execute(ExecutablePool pool, String cqName, String queryStr, int cqState, boolean isDurable, byte regionDataPolicy) { AbstractOp op = new CreateCQWithIROpImpl(cqName, queryStr, cqState, isDurable, regionDataPolicy); return (SelectResults) pool.executeOnQueuesAndReturnPrimaryResult(op); }
/** * Does a region registerInterest on a server using connections from the given pool to communicate * with the server. * * @param pool the pool to use to communicate with the server. * @param region the name of the region to do the registerInterest on * @param key describes what we are interested in * @param interestType the {@link InterestType} for this registration * @param policy the interest result policy for this registration * @param isDurable true if this registration is durable * @param regionDataPolicy the data policy ordinal of the region * @return list of keys */ public static List execute(ExecutablePool pool, String region, Object key, int interestType, InterestResultPolicy policy, boolean isDurable, boolean receiveUpdatesAsInvalidates, byte regionDataPolicy) { AbstractOp op = new RegisterInterestOpImpl(region, key, interestType, policy, isDurable, receiveUpdatesAsInvalidates, regionDataPolicy); return (List) pool.executeOnQueuesAndReturnPrimaryResult(op); }
/** * Does a region registerInterestList on a server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. * @param region the name of the region to do the registerInterestList on * @param keys list of keys we are interested in * @param policy the interest result policy for this registration * @param isDurable true if this registration is durable * @param regionDataPolicy the data policy ordinal of the region * @return list of keys */ public static List execute(ExecutablePool pool, String region, List keys, InterestResultPolicy policy, boolean isDurable, boolean receiveUpdatesAsInvalidates, byte regionDataPolicy) { AbstractOp op = new RegisterInterestListOpImpl(region, keys, policy, isDurable, receiveUpdatesAsInvalidates, regionDataPolicy); return (List) pool.executeOnQueuesAndReturnPrimaryResult(op); }