Package org.serviceconnector.api.srv

Examples of org.serviceconnector.api.srv.SCPublishServerCallback


  public void t111_publish() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP,
        ConnectionType.NETTY_TCP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 2, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());

    SCPublishMessage publishMessage = new SCPublishMessage();
    publishMessage.setMask(TestConstants.mask);
View Full Code Here


  public void t112_publish() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP,
        ConnectionType.NETTY_TCP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 2, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());

    SCPublishMessage publishMessage = new SCPublishMessage();
    publishMessage.setMask(TestConstants.mask);
View Full Code Here

  public void t113_publish() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP,
        ConnectionType.NETTY_TCP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 2, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());

    SCPublishMessage publishMessage = new SCPublishMessage();
    publishMessage.setMask(TestConstants.mask);
View Full Code Here

  public void t114_publish() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP,
        ConnectionType.NETTY_TCP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 2, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());

    SCPublishMessage publishMessage = new SCPublishMessage();
    publishMessage.setMask(TestConstants.mask);
View Full Code Here

  public void t115_publish() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP,
        ConnectionType.NETTY_TCP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 2, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());

    SCPublishMessage publishMessage = new SCPublishMessage();
    publishMessage.setMask(TestConstants.mask);
View Full Code Here

  public void t116_publish() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP,
        ConnectionType.NETTY_TCP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 2, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());

    SCPublishMessage publishMessage = new SCPublishMessage();
    publishMessage.setMask(TestConstants.mask);
View Full Code Here

  public void t117_publish() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP,
        ConnectionType.NETTY_TCP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 2, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());

    SCPublishMessage publishMessage = new SCPublishMessage();
    publishMessage.setMask(TestConstants.mask);
View Full Code Here

  public void t02_checkPublishServer() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_SES_SRV_TCP, ConnectionType.NETTY_TCP);
    server.startListener();

    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());
    publishServer.checkRegistration();
    Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.api.srv.SCPublishServerCallback

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.