Package org.serviceconnector.ctrl.util

Examples of org.serviceconnector.ctrl.util.ProcessCtx


  public void t01_2Clients10000Messages() throws Exception {
    int numberOfClients = 2;
    ProcessCtx[] clientCtxs = new ProcessCtx[numberOfClients];

    for (int i = 0; i < clientCtxs.length; i++) {
      ProcessCtx clientCtx = ctrl.startSessionClient(TestConstants.log4jClnProperties, "client" + i, TestConstants.HOST,
          TestConstants.PORT_SC0_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.sesServerName1, 50, 60,
          "f_execute1000MessagesAndExit");
      clientCtxs[i] = clientCtx;
    }
    APIStressExecutionCasc1Test.ctrl.waitForClientTermination(clientCtxs);
View Full Code Here


  public void t05_10Clients100000Messages() throws Exception {
    int numberOfClients = 10;
    ProcessCtx[] clientCtxs = new ProcessCtx[numberOfClients];

    for (int i = 0; i < clientCtxs.length; i++) {
      ProcessCtx clientCtx = ctrl.startSessionClient(TestConstants.log4jClnProperties, "client" + i, TestConstants.HOST,
          TestConstants.PORT_SC0_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.sesServerName1, 10, 60,
          "f_execute100000MessagesAndExit");
      clientCtxs[i] = clientCtx;
    }
    APIStressExecutionCasc1Test.ctrl.waitForClientTermination(clientCtxs);
View Full Code Here

   * Description: Exchanges a 10MB message with the server<br>
   * Expectation: passes
   */
  @Test
  public void t160_10MBMessageExchange() throws Exception {
    ProcessCtx clientCtx = ctrl.startSessionClient(TestConstants.log4jClnProperties, "client", TestConstants.HOST,
        TestConstants.PORT_SC0_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.sesServerName1, 50, 60,
        "f_execute10MBMessageAndExit");

    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtx);
    TestUtil.checkLogFile(TestConstants.log4jClnProperties, "sc.log");
View Full Code Here

    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);
    request.setMessageInfo(TestConstants.echoAppErrorCmd);

    ctrl.stopServer(srvCtxs.get(TestConstants.sesServerName1));
    ProcessCtx sesSrvCtx = ctrl.startServer(TestConstants.COMMUNICATOR_TYPE_SESSION, TestConstants.log4jSrvProperties,
        TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP, TestConstants.PORT_SC0_TCP, 100, 10,
        TestConstants.sesServiceName1);
    srvCtxs.put(TestConstants.sesServerName1, sesSrvCtx);

    response = sessionService1.execute(request);
View Full Code Here

    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);

    ctrl.stopServer(srvCtxs.get(TestConstants.sesServerName1));
    ProcessCtx sesSrvCtx = ctrl.startServer(TestConstants.COMMUNICATOR_TYPE_SESSION, TestConstants.log4jSrvProperties,
        TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP, TestConstants.PORT_SC0_TCP, 100, 10,
        TestConstants.sesServiceName1);
    srvCtxs.put(TestConstants.sesServerName1, sesSrvCtx);
    sessionService1.deleteSession();
  }
View Full Code Here

  @Test
  public void t11_3ClientsReceivingMessages() throws Exception {
    int numberOfClients = 3;
    ProcessCtx[] clientCtxs = new ProcessCtx[numberOfClients];

    ProcessCtx clientCtx3 = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client0", TestConstants.HOST,
        TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
        "f_subscribeReceive10000Unsubscribe");
    clientCtxs[0] = clientCtx3;
    for (int i = 1; i < clientCtxs.length; i++) {
      ProcessCtx clientCtx = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client" + i, TestConstants.HOST,
          TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
          "f_subscribeReceive500ChangeSubscriptionUnsubscribe");
      clientCtxs[i] = clientCtx;
    }
    APIMultipleClientChangeSubscriptionCasc1Test.ctrl.waitForClientTermination(clientCtxs);
View Full Code Here

  @Test
  public void t15_3ClientsChangeSubscription10000() throws Exception {
    int numberOfClients = 10;
    ProcessCtx[] clientCtxs = new ProcessCtx[numberOfClients];

    ProcessCtx clientCtx3 = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client0", TestConstants.HOST,
        TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
        "f_subscribeReceive10000Unsubscribe");
    clientCtxs[0] = clientCtx3;
    for (int i = 1; i < clientCtxs.length; i++) {
      ProcessCtx clientCtx = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client" + i, TestConstants.HOST,
          TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
          "f_10000ChangeSubscription");
      clientCtxs[i] = clientCtx;
    }
    APIMultipleClientChangeSubscriptionCasc1Test.ctrl.waitForClientTermination(clientCtxs);
View Full Code Here

  public void t01_2ClientsReceiving10000Messages() throws Exception {
    int numberOfClients = 2;
    ProcessCtx[] clientCtxs = new ProcessCtx[numberOfClients];

    for (int i = 0; i < clientCtxs.length; i++) {
      ProcessCtx clientCtx = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client" + i, TestConstants.HOST,
          TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
          "f_subscribeReceive10000Unsubscribe");
      clientCtxs[i] = clientCtx;
    }
    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtxs);
View Full Code Here

   * Expectation: passes
   */
  @Test
  public void t02_2ClientsReceiving500_10000MessagesDiffService() throws Exception {

    ProcessCtx clientCtx = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client1", TestConstants.HOST,
        TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
        "f_subscribeReceive500Unsubscribe");

    ProcessCtx clientCtx2 = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client2", TestConstants.HOST,
        TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServiceName2, 50,
        "f_subscribeReceive10000Unsubscribe");

    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtx);
    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtx2);
View Full Code Here

  @Test
  public void t05_2ClientsReceiving20MessagesDelayed() throws Exception {
    int noDataInterval1 = 10;
    int noDataInterval2 = 11;

    ProcessCtx clientCtx = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client1", TestConstants.HOST,
        TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, noDataInterval1,
        "f_subscribeReceive20_12SecUnsubscribe");

    ProcessCtx clientCtx2 = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client2", TestConstants.HOST,
        TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServiceName1, noDataInterval2,
        "f_subscribeReceive20_12SecUnsubscribe");

    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtx);
    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtx2);
View Full Code Here

TOP

Related Classes of org.serviceconnector.ctrl.util.ProcessCtx

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.