Examples of listen()


Examples of com.sun.xml.ws.transport.tcp.grizzly.GrizzlyTCPConnector.listen()

                continue;
            }
           
            final WSTCPConnector connector = new GrizzlyTCPConnector(tcpURI.host,
                    tcpURI.port, delegate);
            connector.listen();
            connectors.add(connector);
            logger.log(Level.FINE,
                    MessagesMessages.WSTCP_2001_STANDALONE_ADAPTER_REGISTERED(
                    adapter.name, adapter.urlPattern));
        }
View Full Code Here

Examples of de.novanic.eventservice.client.connection.strategy.connector.ConnectionStrategyClientConnector.listen()

        assertFalse(theGWTStreamingClientConnector.isInitialized());
        theGWTStreamingClientConnector.init(myEventService);
        assertTrue(theGWTStreamingClientConnector.isInitialized());

        //create the forever frame
        theGWTStreamingClientConnector.listen(new DummyEventNotification(), new AsyncCallback<List<DomainEvent>>() {
            public void onSuccess(List<DomainEvent> aDomainEvents) {}

            public void onFailure(Throwable aThrowable) {}
        });
View Full Code Here

Examples of de.novanic.eventservice.client.connection.strategy.connector.streaming.GWTStreamingClientConnector.listen()

        assertEquals(0, theDummyEventNotification.getOccurredDomainEvents().size());

        GWTStreamingClientConnector theGWTStreamingClientConnector = new GWTStreamingClientConnectorGecko();
        theGWTStreamingClientConnector.init(myEventService);
        theGWTStreamingClientConnector.listen(theDummyEventNotification, new DummyListenAsyncCallback());

        assertEquals(0, theDummyEventNotification.getOccurredDomainEvents().size());

        theGWTStreamingClientConnector.receiveEvent("[0,3,2,1,[\"de.novanic.eventservice.client.event.DefaultDomainEvent/3924906731\",\"de.novanic.eventservice.client.event.domain.DefaultDomain/240262385\",\"test_domain\"],0," + ClientSerializationStreamReader.SERIALIZATION_STREAM_VERSION + "]");
        theGWTStreamingClientConnector.listen(theDummyEventNotification, new DummyListenAsyncCallback());
View Full Code Here

Examples of de.novanic.eventservice.client.event.service.EventServiceAsync.listen()

            }
        };

        EventServiceAsync theEventServiceMock = mock(EventServiceAsync.class);

        theEventServiceMock.listen(theDummyAsyncCallback);

        ConnectionStrategyClientConnector theClientConnector = new DefaultClientConnector();
        theClientConnector.init(theEventServiceMock);
        theClientConnector.listen(new DummyEventNotification(), theDummyAsyncCallback);
    }
View Full Code Here

Examples of de.novanic.eventservice.service.registry.EventRegistry.listen()

        theEventRegistry.registerUser(theDomain, theUserId, null);

        RemoteEventServiceServlet theRemoteEventServiceServlet = new DummyRemoteEventServlet(theDomain, theEvent);
        theRemoteEventServiceServlet.init(null);

        final List<DomainEvent> theEvents = theEventRegistry.listen(getLongPollingListener(), theUserId);
        assertNotNull(theEvents);
        assertEquals(1, theEvents.size());
        assertSame(theDomain, theEvents.get(0).getDomain());
        assertSame(theEvent, theEvents.get(0).getEvent());
    }
View Full Code Here

Examples of io.vertx.core.http.HttpServer.listen()

      HttpServer server = vertx.createHttpServer(new HttpServerOptions().setHost(DEFAULT_HTTP_HOST).setPort(DEFAULT_HTTP_PORT));
      server.requestHandler(req -> {
        connectedServers.add(server);
        req.response().end();
      });
      server.listen(ar -> {
        assertTrue(ar.succeeded());
        startServerLatch.countDown();
      });
      servers[i] = server;
    }
View Full Code Here

Examples of io.vertx.core.net.NetServer.listen()

    // Now change something - but server should still listen at previous port
    options.setPort(1235);
    server.connectHandler(sock -> {
      testComplete();
    });
    server.listen(ar -> {
      assertTrue(ar.succeeded());
      client.connect(1234, "localhost", ar2 -> {
        assertTrue(ar2.succeeded());
      });
    });
View Full Code Here

Examples of io.vertx.rxcore.java.net.RxNetServer.listen()

  @Test
  public void testSimpleConnect() {

    final RxNetServer rxNetServer = new RxNetServer(vertx.createNetServer());
    Observable<RxNetSocket> connectStream = rxNetServer.connectStream();
    Observable<RxNetServer> listenObs = rxNetServer.listen(1234);

    connectStream.subscribe(new Action1<RxNetSocket>() {
      @Override
      public void call(final RxNetSocket rxNetSocket) {
        System.out.println("Got a connection");
View Full Code Here

Examples of kilim.nio.NioSelectorScheduler.listen()

     */
    public static class Server extends SessionTask {
        public static void run() throws IOException {
            Scheduler sessionScheduler = Scheduler.getDefaultScheduler(); // The scheduler/thread pool on which all tasks will be run
            NioSelectorScheduler nio = new NioSelectorScheduler(); // Starts a single thread that manages the select loop
            nio.listen(port, Server.class, sessionScheduler); //
        }
       
        @Override
        public void execute() throws Pausable, Exception {
            System.out.println("[" + this.id + "] Connection rcvd");
View Full Code Here

Examples of net.schmizz.sshj.connection.channel.direct.LocalPortForwarder.listen()

            LocalPortForwarder.Parameters params = new LocalPortForwarder.Parameters("localhost", localSocket.getLocalPort(),
                    remoteAddress.getHostName(), remoteAddress.getPort());
            LocalPortForwarder forwarder = sshClient.newLocalPortForwarder(params, localSocket);
            try {
                latch.countDown();
                forwarder.listen();
            } catch (IOException ignore) {
                // OK.
            }
        }
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.