Examples of stopCacheGuardian()


Examples of org.serviceconnector.api.cln.SCClient.stopCacheGuardian()

    // 7: start cache guardian over top level (cascaded) SC - doing nothing
    subMsg.setSessionInfo(TestConstants.doNothingCmd);
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 8: stop cache guardian over SC0 - cached managed data should stay
    clientToSc0.stopCacheGuardian();

    // 9: verify data is still in cache on SC0
    inspectResponse = clientToSc0.inspectCache("700");
    this.checkCacheInspectString(inspectResponse, "success", SC_CACHE_ENTRY_STATE.LOADED, "700", "3",
        "700/0/0=0&700/1/0=1&700/2/0=1&700/3/0=1&", TestConstants.cacheGuardian1);
View Full Code Here

Examples of org.serviceconnector.api.cln.SCClient.stopCacheGuardian()

    inspectResponse = guardianClient.inspectCache("700");
    this.checkCacheInspectString(inspectResponse, "success", SC_CACHE_ENTRY_STATE.LOADED, "700", "3",
        "700/0/0=0&700/1/0=1&700/2/0=1&700/3/0=1&", TestConstants.cacheGuardian1);

    // 10: stop cache guardian of client2
    client2.stopCacheGuardian();

    // 11: verify data is now NOT in top level cache
    inspectResponse = guardianClient.inspectCache("700");
    this.checkCacheInspectString(inspectResponse, "notfound", SC_CACHE_ENTRY_STATE.LOADED, "", "", "");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.