Examples of ClientSession


Examples of com.facebook.presto.client.ClientSession

        TSV_HEADER
    }

    public ClientSession toClientSession()
    {
        return new ClientSession(parseServer(server), user, source, catalog, schema, debug);
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.client.ClientSession

    StatementClient startQuery(String sql)
    {
        URI uri = createHttpUri(address);

        String source = Objects.firstNonNull(clientInfo.get("ApplicationName"), "presto-jdbc");
        ClientSession session = new ClientSession(uri, user, source, catalog.get(), schema.get(), timeZoneId.get(), locale.get(), false);
        return queryExecutor.startQuery(session, sql);
    }
View Full Code Here

Examples of com.google.code.sshd.ClientSession

        SshClient client = null;
        try {
            client = SshClient.setUpDefaultClient();
            client.start();
            ClientSession session = client.connect(host, port);
            session.authPassword(user, password);
            ClientChannel channel = session.createChannel("shell");
            channel.setIn(new ConsoleReader().getInput());
            channel.setOut(System.out);
            channel.setErr(System.err);
            channel.open();
            channel.waitFor(ClientChannel.CLOSED, 0);
View Full Code Here

Examples of com.kurento.kmf.jsonrpcconnector.internal.client.ClientSession

    String sessionId = response.getSessionId();

    rsHelper.setSessionId(sessionId);

    if (session == null) {
      session = new ClientSession(sessionId, registerInfo, this);

      handlerManager.afterConnectionEstablished(session);

      startPooling();
    }
View Full Code Here

Examples of com.sun.sgs.app.ClientSession

     * {@inheritDoc}
     * <p>
     * Logs when data arrives from the client, and echoes the message back.
     */
    public void receivedMessage(ByteBuffer message) {
        ClientSession session = getSession();

        logger.log(Level.INFO, "Message from {0}", sessionName);

        // Echo message back to sender
        session.send(message);
    }
View Full Code Here

Examples of com.sun.sgs.app.ClientSession

     * {@inheritDoc}
     * <p>
     * Logs when data arrives from the client, and echoes the message back.
     */
    public void receivedMessage(ByteBuffer message) {
        ClientSession session = getSession();

        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "Message from {0}", sessionName);
        }
        session.send(message);
    }
View Full Code Here

Examples of com.sun.sgs.app.ClientSession

    public void addUserToCellChannel(WonderlandClientID clientID) {
        if (cellChannelRef == null)
            return;

        // issue 963: the session may be null if the user is logging out
        ClientSession session = clientID.getSession();
        if (session != null) {
            cellChannelRef.getForUpdate().join(session);
        }
    }
View Full Code Here

Examples of com.sun.sgs.app.ClientSession

    public void removeUserFromCellChannel(WonderlandClientID clientID) {
        if (cellChannelRef == null)
            return;

        // issue 963: the session may be null if the user is logging out
        ClientSession session = clientID.getSession();
        if (session != null) {
            cellChannelRef.getForUpdate().leave(session);
        }
    }
View Full Code Here

Examples of com.sun.sgs.app.ClientSession

  }

  /** {@inheritDoc} */
  public void serviceEvent(final ChannelImpl channel) {

      ClientSession session =
    (ClientSession) getObjectForId(sessionRefId);
      if (session == null) {
    logger.log(
        Level.FINE,
        "unable to obtain client session for ID:{0}", this);
View Full Code Here

Examples of com.sun.sgs.app.ClientSession

  }

  /** {@inheritDoc} */
  public void serviceEvent(ChannelImpl channel) {

      ClientSession session =
    (ClientSession) getObjectForId(sessionRefId);
      if (session == null) {
    logger.log(
        Level.FINE,
        "unable to obtain client session for ID:{0}", this);
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.