Package org.serviceconnector.ctrl.util

Examples of org.serviceconnector.ctrl.util.ServerDefinition


  }

  public static void setUpServer() {
    // needs a server with 1 session/connection
    List<ServerDefinition> srvToSC0CascDefs = new ArrayList<ServerDefinition>();
    ServerDefinition srvToSC0CascDef = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 3, 2, TestConstants.sesServiceName1);
    srvToSC0CascDefs.add(srvToSC0CascDef);
    SystemSuperTest.srvDefs = srvToSC0CascDefs;
  }
View Full Code Here


  }

  public static void setUpServer() {
    // need two publish server here
    List<ServerDefinition> srvToSC0CascDefs = new ArrayList<ServerDefinition>();
    ServerDefinition srv1ToSC0CascDef = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH,
        TestConstants.log4jSrvProperties, TestConstants.pubServerName1, TestConstants.PORT_PUB_SRV_TCP,
        TestConstants.PORT_SC1_TCP, 10, 5, TestConstants.pubServerName1);
    ServerDefinition srv2ToSC0CascDef = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH,
        TestConstants.log4jSrvProperties, TestConstants.pubServiceName2, 30002, TestConstants.PORT_SC1_TCP, 10, 5,
        TestConstants.pubServiceName2);
    srvToSC0CascDefs.add(srv1ToSC0CascDef);
    srvToSC0CascDefs.add(srv2ToSC0CascDef);
    SystemSuperTest.srvDefs = srvToSC0CascDefs;
View Full Code Here

        TestConstants.log4jSC0Properties);
    sc0Defs.add(sc0Def);

    // server definitions
    List<ServerDefinition> srvToSC0Defs = new ArrayList<ServerDefinition>();
    ServerDefinition srvToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 100, 10, TestConstants.sesServiceName1);
    srvToSC0Defs.add(srvToSC0Def);

    SystemSuperTest.scDefs = sc0Defs;
View Full Code Here

        TestConstants.log4jSC1Properties);
    scDefs.add(sc1);

    // server definitions
    List<ServerDefinition> srvToSC0Defs = new ArrayList<ServerDefinition>();
    ServerDefinition srvToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 100, 10, TestConstants.sesServiceName1);
    srvToSC0Defs.add(srvToSC0Def);

    SystemSuperTest.scDefs = scDefs;
View Full Code Here

        TestConstants.log4jSC2Properties);
    scDefs.add(sc2);

    // server definitions
    List<ServerDefinition> srvToSC0Defs = new ArrayList<ServerDefinition>();
    ServerDefinition srvToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 100, 10, TestConstants.sesServiceName1);
    srvToSC0Defs.add(srvToSC0Def);

    SystemSuperTest.scDefs = scDefs;
View Full Code Here

  }

  public static void setUpServer() {
    // need to have a server serving 3 sessions here
    List<ServerDefinition> srvToSC0CascDefs = new ArrayList<ServerDefinition>();
    ServerDefinition srvPublishToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH,
        TestConstants.log4jSrvProperties, TestConstants.pubServerName1, TestConstants.PORT_PUB_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 3, 3, TestConstants.cacheGuardian1);

    ServerDefinition srvPublish2ToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH,
        TestConstants.log4jSrvProperties, TestConstants.pubServerName2, TestConstants.PORT_PUB_SRV2_TCP,
        TestConstants.PORT_SC0_TCP, 3, 3, TestConstants.cacheGuardian2);

    ServerDefinition srvSessionToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 100, 10, TestConstants.sesServiceName1);

    srvToSC0CascDefs.add(srvPublishToSC0Def);
    srvToSC0CascDefs.add(srvPublish2ToSC0Def);
View Full Code Here

    Map<String, ProcessCtx> sc0AProcess = ctrl.startSCEnvironment(sc0ADefs);
    SystemSuperTest.scCtxs.putAll(sc0AProcess);

    List<ServerDefinition> srvToSC0ACascDefs = new ArrayList<ServerDefinition>();
    ServerDefinition srvPublishToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH,
        TestConstants.log4jSrvProperties, TestConstants.pubServerName1A, TestConstants.PORT_PUB_SRVA_TCP,
        TestConstants.PORT_SC0A_TCP, 3, 3, TestConstants.cacheGuardian1A);

    ServerDefinition srvSessionToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1A, TestConstants.PORT_SES_SRVA_TCP,
        TestConstants.PORT_SC0A_TCP, 100, 10, TestConstants.sesServiceName1);

    srvToSC0ACascDefs.add(srvPublishToSC0Def);
    srvToSC0ACascDefs.add(srvSessionToSC0Def);
View Full Code Here

  }

  public static void setUpServer() {
    // need to have a server serving 3 sessions here
    List<ServerDefinition> srvToSC0CascDefs = new ArrayList<ServerDefinition>();
    ServerDefinition srvToSC0CascDef = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH,
        TestConstants.log4jSrvProperties, TestConstants.pubServerName1, TestConstants.PORT_PUB_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 3, 3, TestConstants.pubServiceName1);
    srvToSC0CascDefs.add(srvToSC0CascDef);
    SystemSuperTest.srvDefs = srvToSC0CascDefs;
  }
View Full Code Here

  public SCMPClnCreateSessionTest() {
    SCMPClnCreateSessionTest.setUpServiceConnectorAndServer();
    // server definitions needs to be different
    List<ServerDefinition> srvToSC0Defs = new ArrayList<ServerDefinition>();
    ServerDefinition srvToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 3, 2, TestConstants.sesServiceName1);
    srvToSC0Defs.add(srvToSC0Def);
    SystemSuperTest.srvDefs = srvToSC0Defs;
  }
View Full Code Here

  public static void setUpServiceConnectorAndServer() {
    // server definitions
    List<ServerDefinition> srvToSC0Defs = new ArrayList<ServerDefinition>();

    ServerDefinition sessSrvToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_SESSION,
        TestConstants.log4jSrvProperties, TestConstants.sesServerName1, TestConstants.PORT_SES_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 10, 5, TestConstants.sesServiceName1);
    ServerDefinition pubSrvToSC0Def = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH,
        TestConstants.log4jSrvProperties, TestConstants.pubServerName1, TestConstants.PORT_PUB_SRV_TCP,
        TestConstants.PORT_SC0_TCP, 100, 10, TestConstants.pubServiceName1);
    srvToSC0Defs.add(pubSrvToSC0Def);
    srvToSC0Defs.add(sessSrvToSC0Def);
    APISessionSubscriptionTest.srvDefs = srvToSC0Defs;
View Full Code Here

TOP

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

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.