Examples of ConnectionListener


Examples of com.ettrema.httpclient.ConnectionListener

    final Host host;

    public HostNode( AbstractTreeNode parent, Host host ) throws Exception {
        super( parent, host.getFolder( "" ) );
        this.host = host;
        host.connectionListeners.add( new ConnectionListener() {

            public void onStartRequest() {
                Cursor hourglassCursor = new Cursor( Cursor.WAIT_CURSOR );
                App.current().getFrame().getComponent().setCursor( hourglassCursor );
            }
View Full Code Here

Examples of com.ponysdk.core.socket.ConnectionListener

                pLabel.setWidth("40px");
                table.setWidget(r, c, pLabel);
            }
        }

        pusher.addConnectionListener(new ConnectionListener() {

            final Timer timer = new Timer();

            @Override
            public void onOpen() {
View Full Code Here

Examples of com.rabbitmq.messagepatterns.unicast.ConnectionListener

        while (true) {
            if (connector.attempt(new Thunk() {
                public void run() throws IOException {
                    channel.queueDelete(getQueueName(), false, false);
                }
            }, new ConnectionListener() {
                public void connected(Connection conn) throws IOException {
                    connect(conn);
                }})) break;
        }
    }
View Full Code Here

Examples of com.sun.sgs.io.ConnectionListener

    @Override
    public void sessionOpened(IoSession session) throws Exception
    {
        SocketConnection conn = (SocketConnection) session.getAttachment();
        logger.log(Level.FINE, "opened session {0}", session);
        ConnectionListener listener = conn.getConnectionListener();
        listener.connected(conn);
    }
View Full Code Here

Examples of com.sun.sgs.io.ConnectionListener

    @Override
    public void sessionClosed(IoSession session) throws Exception
    {
        SocketConnection conn = (SocketConnection) session.getAttachment();
        logger.log(Level.FINE, "disconnect on {0}", conn);
        ConnectionListener listener = conn.getConnectionListener();
        listener.disconnected(conn);
    }
View Full Code Here

Examples of com.sun.sgs.io.ConnectionListener

        logger.logThrow(Level.FINER, exception, "exception on {0}", conn);
        if (conn == null) {
            return;
        }

        ConnectionListener listener = conn.getConnectionListener();
        listener.exceptionThrown(conn, exception);
    }
View Full Code Here

Examples of com.sun.sgs.io.ConnectionListener

         */
        @Override
        public void sessionCreated(IoSession session) throws Exception {
            logger.log(Level.FINE, "accepted session {0}", session);
            CompleteMessageFilter filter = new CompleteMessageFilter();
            ConnectionListener connListener = acceptorListener.newConnection();
            SocketConnection connection =
                new SocketConnection(connListener, filter, session);
            session.setAttachment(connection);
        }
View Full Code Here

Examples of de.fhkn.in.uce.holepunching.core.ConnectionListener

    public MessageHandlerTask(final Socket socketToMediator, final BlockingQueue<Socket> socketQueue, final int port,
            final List<XorMappedAddress> endpoints, final Token authentificationToken) {
        this.hpUtil = HolePunchingUtil.getInstance();
        this.socketToMediator = socketToMediator;
        final SocketAddress localSocketAddress = new InetSocketAddress(port);
        this.connectionListener = new ConnectionListener(socketToMediator.getLocalAddress(),
                socketToMediator.getLocalPort());
        this.hp = new HolePuncher(this.connectionListener, localSocketAddress, socketQueue);
        this.endpoints = endpoints;
        this.authentificationToken = authentificationToken;
    }
View Full Code Here

Examples of hermes.ConnectionListener

  public static void main(String[] args) {
    log.debug("Hermes Browser " + Hermes.VERSION + " starting...");
    log.debug("working directory: " + new File(".").getAbsolutePath());

    Hermes.events.addConnectionListener(new ConnectionListener() {
      public void onConnectionOpen(Hermes hermes) {
        log.debug("Connection " + hermes.getId() + " opened");
      }

      public void onConnectionClosed(Hermes hermes) {
View Full Code Here

Examples of info.walnutstreet.vs.ps03.appserver.listener.ConnectionListener

   * Constructor.
   *
   * @throws IOException
   */
  public AppServer(int port) throws IOException {
    this.listener = new ConnectionListener(port);
    DataStore.getInstance().refreshLocalStore();
  }
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.