/** Creates and initializes a data store PR in a bridge server. */
 public static synchronized void HydraTask_initializeBridgeServer() {
   if (testInstance == null) {
     testInstance = new CQKnownKeysTest();
     testInstance.initializeRegion("serverRegion");
     testInstance.initializeInstance();
     BridgeHelper.startBridgeServer("bridge");
     testInstance.isBridgeClient = false;
   }
   testInstance.uniqueKeyIndex.set(new Integer(RemoteTestModule.getCurrentThread().getThreadId()));
 }
 /**
  * Creates and initializes the singleton instance of CQTest in a client and start the CQs running.
  */
 public static synchronized void HydraTask_initializeClient() {
   if (testInstance == null) {
     testInstance = new CQKnownKeysTest();
     testInstance.initializeClient(true);
   }
   testInstance.uniqueKeyIndex.set(new Integer(RemoteTestModule.getCurrentThread().getThreadId()));
 }
 /** Hydra task to execution ops, then stop scheduling. */
 public static void HydraTask_doOps() {
   BitSet availableOps = new BitSet(operations.length);
   availableOps.flip(FIRST_OP, LAST_OP + 1);
   // don't do local ops in bridge configuration
   availableOps.clear(LOCAL_INVALIDATE);
   availableOps.clear(LOCAL_DESTROY);
   testInstance.doOps(availableOps);
   if (availableOps.cardinality() == 0) {
     CQUtilBB.getBB().getSharedCounters().increment(CQUtilBB.TimeToStop);
     throw new StopSchedulingTaskOnClientOrder("Finished with ops");
   }
 }
 /**
  * Hydra task to verify queries on the region after all ops for a test where
  * executeWithInitialResults occurs concurrently with ops. We must combine the results of
  * executeWithInitialResults and the cq events that come after
  */
 public static void HydraTask_verifyQueriesCombine() {
   testInstance.verifyQueriesCombine();
 }
 /**
  * Hydra task to verify the contents of the region after all ops. This MUST be called as a batched
  * task, and will throw StopSchedulingTaskOnClientOrder when completed. It is necessary to
  * reinitialize the verify state variables if this is called a second time in this VM, however an
  * error is thrown if a second attempt it made without resetting the state variables.
  */
 public static void HydraTask_verifyRegionContents() {
   CQUtilBB.getBB().printSharedCounters();
   NameBB.getBB().printSharedCounters();
   testInstance.verifyRegionContents();
 }
 /** Hydra task to start the CQs running for this VM. */
 public static void HydraTask_startCQsRunning() {
   testInstance.startCQsWithHistory();
   throw new StopSchedulingTaskOnClientOrder("CQs are running");
 }
 /** Hydra task to initialize a region and load it according to hydra param settings. */
 public static void HydraTask_loadRegion() {
   testInstance.loadRegion();
 }
 public static void HydraTask_initCombineTest() {
   testInstance.sleepBetweenOps = true;
 }