Package org.serviceconnector.api

Examples of org.serviceconnector.api.SCPublishMessage


    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);
    publishMessage.setData("");
    publishServer.publish(publishMessage);
  }
View Full Code Here


    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);
    publishMessage.setData(" ");
    publishServer.publish(publishMessage);
  }
View Full Code Here

    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);
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < 10000; i++) {
      sb.append("a");
    }
    publishMessage.setData(sb.toString());
    publishServer.publish(publishMessage);
  }
View Full Code Here

    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);
    publishMessage.setData(new byte[TestConstants.dataLength60kB]);
    publishServer.publish(publishMessage);
  }
View Full Code Here

    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);
    publishMessage.setData(new byte[TestConstants.dataLength1MB]);
    publishServer.publish(publishMessage);
  }
View Full Code Here

    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);
    publishMessage.setData(new byte[128]);
    int count = 10000;
    for (int i = 0; i < count; i++) {
      if (((i + 1) % 200) == 0)
        testLogger.info("Publish message nr. " + (i + 1));
      publishServer.publish(publishMessage);
View Full Code Here

    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);
    publishMessage.setData(new Object());
    publishServer.publish(publishMessage);
  }
View Full Code Here

    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);
    publishMessage.setMessageInfo("");
    publishServer.publish(publishMessage);
  }
View Full Code Here

    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);
    publishMessage.setMessageInfo(" ");
    publishServer.publish(publishMessage);
  }
View Full Code Here

    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);
    publishMessage.setMessageInfo(TestConstants.stringLength257);
    publishServer.publish(publishMessage);
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.api.SCPublishMessage

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.