Examples of RemoteNodeConfiguration


Examples of org.serviceconnector.conf.RemoteNodeConfiguration

  }

  @Before
  public void beforeOneTest() throws Exception {
    super.beforeOneTest();
    this.requester = new SCRequester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
        TestConstants.PORT_SC2_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 10), 0);
    AppContext.init();
    this.createSession();
  }
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

  }

  @Before
  public void beforeOneTest() throws Exception {
    super.beforeOneTest();
    this.requester = new SCRequester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
        TestConstants.PORT_SC2_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 3), 0);
    AppContext.init();
  }
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

  @Before
  public void beforeOneTest() throws Exception {
    super.beforeOneTest();
    if (cascadingLevel == 1) {
      this.requester = new SCRequester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
          TestConstants.PORT_SC1_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 10), 0);
    }
    AppContext.init();
  }
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

  private String sessionId;

  @Before
  public void beforeOneTest() throws Exception {
    super.beforeOneTest();
    this.requester = new SCRequester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
        TestConstants.PORT_SC0_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 1), 0);
    AppContext.init();
    this.createSession();
  }
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

  @Before
  public void beforeOneTest() throws Exception {
    super.beforeOneTest();
    if (cascadingLevel == 1) {
      this.requester = new SCRequester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
          TestConstants.PORT_SC1_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 10), 0);
      AppContext.init();
      this.createSession();
    }
  }
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

  }

  @Before
  public void beforeOneTest() throws Exception {
    super.beforeOneTest();
    this.requester = new SCRequester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
        TestConstants.PORT_SC1_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 10), 0);
    AppContext.init();
  }
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

  }

  @Before
  public void beforeOneTest() throws Exception {
    super.beforeOneTest();
    this.requester = new SCRequester(new RemoteNodeConfiguration(TestConstants.RemoteNodeName, TestConstants.HOST,
        TestConstants.PORT_SC1_HTTP, ConnectionType.NETTY_HTTP.getValue(), 0, 0, 3), 0);
    AppContext.init();
  }
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

    ServiceRegistry serviceRegistry = AppContext.getServiceRegistry();

    for (ServiceConfiguration serviceConfiguration : serviceConfigurationMap.values()) {
      String serviceTypeString = serviceConfiguration.getType();
      ServiceType serviceType = ServiceType.getType(serviceTypeString);
      RemoteNodeConfiguration remoteNode = serviceConfiguration.getRemoteNodeConfiguration();
      String remotNodeName = null;
      if (remoteNode != null) {
        remotNodeName = remoteNode.getName();
        serviceType = ServiceConfiguration.adaptServiceTypeIfCascService(serviceType, remotNodeName);
      }
      String serviceName = serviceConfiguration.getName();

      // instantiate right type of service
View Full Code Here

Examples of org.serviceconnector.conf.RemoteNodeConfiguration

    this.serverKey = serviceName + Constants.UNDERLINE + socketAddress.getHostName() + Constants.SLASH
        + socketAddress.getPort();
    this.serviceName = serviceName;
    this.service = null;
    // set up separate remote node configuration for SRV_ABORT_SESSION request in case of busy connection pool
    this.sasRemoteNodeConfiguration = new RemoteNodeConfiguration(ServerType.UNDEFINED, remoteNodeConfiguration.getName(),
        remoteNodeConfiguration.getHost(), remoteNodeConfiguration.getPort(), remoteNodeConfiguration.getConnectionType(),
        0, 0, 1, 1, remoteNodeConfiguration.getHttpUrlFileQualifier());
    // calculate server timeout: multiply check registration interval with checkRegistrationIntervalMultiplier!
    this.serverTimeoutMillis = (remoteNodeConfiguration.getCheckRegistrationIntervalSeconds()
        * Constants.SEC_TO_MILLISEC_FACTOR * AppContext.getBasicConfiguration().getCheckRegistrationIntervalMultiplier());
 
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.