Package org.serviceconnector.api

Examples of org.serviceconnector.api.SCSubscribeMessage


   * Expectation: passes
   */
  @Test
  public void t09_cc_publishRemoveNothingInCache() throws Exception {
    // 1: start cache guardian - publish 1 remove
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish1RemoveMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 2: verify callback retrieval - 1 remove within 10sec
    cacheGuardianCbk.waitForRemoveMessage(1, 10);

View Full Code Here


   * Expectation: passes
   */
  @Test
  public void t10_cc_publishInitialDataNothingInCache() throws Exception {
    // 1: start cache guardian - publish 1 initial
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish1InitialMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 2: verify callback retrieval - 1 initial within 10sec
    cacheGuardianCbk.waitForMessage(1, 10);

View Full Code Here

   * Expectation: passes
   */
  @Test
  public void t11_cc_Publish3LargeAppendixNothingInCache() throws Exception {
    // 1: start cache guardian - publish 3 Appendix, no cacheId set!
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish3AppendixMsgCmd);
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 2: verify callback retrieval - 3 appendix within 10sec
    cacheGuardianCbk.waitForAppendMessage(3, 10);

View Full Code Here

    request.setData("hello world");
    request.setMessageInfo(TestConstants.cacheCmd);
    sessionService1.execute(request);

    // 2: start cache guardian - publish 3 Appendix!
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish3AppendixMsgCmd);
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 3: verify callback retrieval - 3 appendix within 10sec
    cacheGuardianCbk.waitForAppendMessage(3, 10);
View Full Code Here

   * Expectation: passes
   */
  @Test
  public void t12_cc_Publish3LargeAppendixNothingInCache() throws Exception {
    // 1: start cache guardian - publish 3 Appendix
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish3AppendixMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 2: verify callback retrieval - 3 appendix within 10sec
    cacheGuardianCbk.waitForAppendMessage(3, 10);

View Full Code Here

    request.setData("cache10MBStringFor1Hour_managedData");
    request.setMessageInfo(TestConstants.cacheCmd);
    sessionService1.execute(request);

    // 2: start cache guardian - publish 50 large appendix
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish50LargeAppendixMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 2: verify callback retrieval - 50 initial within 100ssec
    cacheGuardianCbk.waitForAppendMessage(50, 100);
View Full Code Here

    // 2: verify data is in top level cache
    Map<String, String> inspectResponse = mgmtClient.inspectCache("700");
    this.checkCacheInspectString(inspectResponse, "success", SC_CACHE_ENTRY_STATE.LOADED, "700", "0", "700/0/0=0&", "unset");

    // 3: start cache guardian - publish 1 small initial
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish1InitialMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 4: verify callback retrieval - 1 initial within 10sec
    cacheGuardianCbk.waitForMessage(1, 10);
View Full Code Here

    // 2: verify data is in top level cache
    Map<String, String> inspectResponse = mgmtClient.inspectCache("700");
    this.checkCacheInspectString(inspectResponse, "success", SC_CACHE_ENTRY_STATE.LOADED, "700", "0", "700/0/0=0&", "unset");

    // 3: start cache guardian - publish 1 large initial
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish1LargeInitialMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 4: verify callback retrieval - 1 initial within 10sec
    cacheGuardianCbk.waitForMessage(1, 10);
View Full Code Here

    // 2: verify data is in top level cache
    Map<String, String> inspectResponse = mgmtClient.inspectCache("700");
    this.checkCacheInspectString(inspectResponse, "success", SC_CACHE_ENTRY_STATE.LOADED, "700", "0", "700/0/0=0&", "unset");

    // 3: start cache guardian - publish 10MB initial
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish10MBInitialMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 4: verify callback retrieval - 1 initial within 10sec
    cacheGuardianCbk.waitForMessage(1, 10);
View Full Code Here

    request.setData("cache10MBStringFor1Hour_managedData");
    request.setMessageInfo(TestConstants.cacheCmd);
    sessionService1.execute(request);

    // 2: start cache guardian - publish 3 large Appendix (2 parts each) & 1 large initial
    SCSubscribeMessage subMsg = new SCSubscribeMessage();
    subMsg.setMask(TestConstants.mask);
    subMsg.setSessionInfo(TestConstants.publish3LargeAppendix1LargeInitialMsgCmd);
    subMsg.setData("700");
    guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);

    // 3: verify callback retrieval - 3 appendix within 10sec
    cacheGuardianCbk.waitForAppendMessage(3, 10);
View Full Code Here

TOP

Related Classes of org.serviceconnector.api.SCSubscribeMessage

Copyright © 2018 www.massapicom. 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.