public void run2() throws CacheException { long compiledQueryUsedCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryUsedCount(); int numTimesUsed = (useMaintainedCompiledQueries + 1) * queryString.length; assertEquals(numTimesUsed, compiledQueryUsedCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(0, compiledQueryCount); } });
public void run2() throws CacheException { long compiledQueryCount = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); assertEquals(queryString.length, compiledQueryCount); } });
public void run2() throws CacheException { long count = 0; for (int i=0; i < 100; i++) { count = CacheClientNotifier.getInstance().getStats().getCompiledQueryCount(); if (count == compiledQueryCount){ break; } else { pause(1 * 100); } } assertEquals(compiledQueryCount, count); } });
public void run2() throws CacheException { final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); ccnInstance.closeDurableClientProxy(durableClientId); } });
public void run2() throws CacheException { final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); try { ccnInstance.closeClientCq(durableClientId, "All"); } catch (CqException e) { throw new CacheException(e){}; } } });
public void run2() throws CacheException { final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); try { ccnInstance.closeClientCq(durableClientId, "All"); } catch (CqException e) { throw new CacheException(e){}; } } });
public void run2() throws CacheException { try { final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); CqService cqService = CqService.getCqService(CacheServerTestUtil.getCache()); List<String> cqNames = cqService.getAllDurableClientCqs(proxyId); assertEquals(expectedNumber, cqNames.size()); } catch (Exception e) { throw new CacheException(e){}; } } });
public void run2() throws CacheException { //Set the Test Hook! //This test hook will pause during the drain process CacheClientProxy.testHook = new RejectClientReconnectTestHook(); final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); try { ccnInstance.closeClientCq(durableClientId, "All"); } catch (CqException e) { throw new CacheException(e){}; } } });
public static synchronized void updateBBWithServerVMNames() { int myVMid = RemoteTestModule.getMyVmid(); ClientVmInfo myInfo = new ClientVmInfo(new Integer(myVMid), RemoteTestModule.getMyClientName(), null); Collection<CacheClientProxy> coll = CacheClientNotifier.getInstance() .getClientProxies(); if (coll.size() > 0) { VMotionBB.getBB().getSharedMap().put(myInfo.getClientName(), myInfo); Log.getLogWriter().info("server vm name is ::" + myInfo.getClientName()); } }
public void run2() throws CacheException { final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); try { ccnInstance.closeClientCq(durableClientId, "All"); ccnInstance.closeClientCq(durableClientId, "GreaterThan5"); ccnInstance.closeClientCq(durableClientId, "LessThan5"); } catch (CqException e) { throw new CacheException(e){}; } } });
public void run2() throws CacheException { final CacheClientNotifier ccnInstance = CacheClientNotifier .getInstance(); final CacheClientProxy clientProxy = ccnInstance .getClientProxy(durableClientId); ClientProxyMembershipID proxyId = clientProxy.getProxyID(); try { ccnInstance.closeClientCq(durableClientId, "All"); ccnInstance.closeClientCq(durableClientId, "GreaterThan5"); ccnInstance.closeClientCq(durableClientId, "LessThan5"); } catch (CqException e) { throw new CacheException(e){}; } } });