Package org.serviceconnector.ctrl.util

Examples of org.serviceconnector.ctrl.util.ProcessCtx


  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

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

    for (int i = 0; i < clientCtxs.length - 1; i++) {
      ProcessCtx clientCtx = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client" + i, TestConstants.HOST,
          TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
          "f_subscribeUnsubscribe");
      clientCtxs[i] = clientCtx;
    }
    ProcessCtx clientCtx10 = ctrl.startPublishClient(TestConstants.log4jClnProperties, "client10", TestConstants.HOST,
        TestConstants.PORT_SC1_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
        "f_subscribeReceive10000Unsubscribe");
    clientCtxs[9] = clientCtx10;
    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtxs);
    // dont't check message.log might be an EXC because of broken CRP
View Full Code Here

  @Test
  public void t11_3ClientsReceivingMessages() throws Exception {
    int numberOfClients = 2;
    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_subscribeReceive500Unsubscribe");
      clientCtxs[i] = clientCtx;
    }
    APIMultipleClientSubscribeCasc1Test.ctrl.waitForClientTermination(clientCtxs);
View Full Code Here

  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_SC1_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_SC1_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_SC1_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

  @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_SC0_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_SC0_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_SC0_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_SC0_TCP, ConnectionType.NETTY_TCP, 10, 0, TestConstants.pubServerName1, 50,
          "f_10000ChangeSubscription");
      clientCtxs[i] = clientCtx;
    }
    APIMultipleClientChangeSubscriptionCasc1Test.ctrl.waitForClientTermination(clientCtxs);
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.