Examples of SCPublishServerCallback


Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test (expected = SCServiceException.class)
  public void t209_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 10, cbk);
  }
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test (expected = SCServiceException.class)
  public void t210_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 20, cbk);
  }
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test (expected = SCServiceException.class)
  public void t211_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(0, 1, cbk);
  }
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test (expected = SCServiceException.class)
  public void t212_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 0, cbk);
  }
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test (expected = SCServiceException.class)
  public void t213_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(0, 0, cbk);
  }
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test (expected = SCServiceException.class)
  public void t214_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
    publishServer.register(1, 1, cbk);
  }
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

   */
  @Test (expected = SCServiceException.class)
  public void t215_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
    server.startListener();
  }
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test
  public void t298_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    SCPublishServer publishServer1 = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk1 = new PubSrvCallback(publishServer1);
    publishServer1.register(1, 1, cbk1);
    Assert.assertEquals("SessionServer is not registered", true, publishServer1.isRegistered());
   
    SCPublishServer publishServer2 = server.newPublishServer(TestConstants.pubServiceName2);
    SCPublishServerCallback cbk2 = new PubSrvCallback(publishServer2);
    publishServer2.register(1, 1, cbk2);
    Assert.assertEquals("SessionServer is not registered", true, publishServer2.isRegistered());
   
    publishServer1.deregister();
    publishServer2.deregister();
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

  @Test
  public void t299_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    SCPublishServer publishServer1 = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer1);
    publishServer1.register(1, 1, cbk);
    Assert.assertEquals("SessionServer is not registered", true, publishServer1.isRegistered());
   
    SCPublishServer publishServer2 = server.newPublishServer(TestConstants.pubServiceName2);
    publishServer2.register(1, 1, cbk);
View Full Code Here

Examples of org.serviceconnector.api.srv.SCPublishServerCallback

      sc.startListener();

      String[] serviceNames = this.serviceNames.split(",");
      for (String serviceName : serviceNames) {
        SCPublishServer server = sc.newPublishServer(serviceName);
        SCPublishServerCallback cbk = new SrvCallback(server);
        try {
          server.register(10, this.maxSessions, this.maxConnections, cbk);
        } catch (Exception e) {
          LOGGER.error("runPublishServer", e);
          server.deregister();
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.