Examples of ClientConnection


Examples of com.hazelcast.client.connection.nio.ClientConnection

            membersRef.set(Collections.unmodifiableMap(map));
        }

        void shutdown() {
            interrupt();
            final ClientConnection c = conn;
            if (c != null) {
                c.close();
            }
        }
View Full Code Here

Examples of com.hazelcast.client.connection.nio.ClientConnection

                final long nextTry = Clock.currentTimeMillis() + connectionAttemptPeriod;
                final Collection<InetSocketAddress> socketAddresses = getSocketAddresses();
                for (InetSocketAddress isa : socketAddresses) {
                    Address address = new Address(isa);
                    try {
                        final ClientConnection connection = connectionManager.ownerConnection(address);
                        fireConnectionEvent(false);
                        return connection;
                    } catch (IOException e) {
                        lastError = e;
                        logger.finest("IO error during initial connection...", e);
View Full Code Here

Examples of com.opengamma.web.analytics.push.ClientConnection

        .path(viewId)
        .path(ViewResource.class, "getPrimitivesGrid")
        .build();
    Principal userPrincipal = securityContext.getUserPrincipal();
    String userName = userPrincipal != null ? userPrincipal.getName() : null;
    ClientConnection connection = _connectionManager.getConnectionByClientId(userName, clientId);
    URI uri = uriInfo.getAbsolutePathBuilder().path(viewId).build();
    ImmutableMap<String, Object> callbackMap = ImmutableMap.<String, Object>of("id", requestId, "message", uri.getPath());
    URI errorUri = uriInfo.getAbsolutePathBuilder()
        .path(viewId)
        .path(ViewResource.class, "getErrors")
View Full Code Here

Examples of com.sun.sgs.impl.client.comm.ClientConnection

            int port = msg.getInt();
            logger.log(Level.FINER, "Login redirect: {0}:{1}", host, port);

            // Disconnect our current connection, and connect to the
            // new host and port
            ClientConnection oldConnection = clientConnection;
            synchronized (SimpleClient.this) {
                clientConnection = null;
                connectionStateChanging = true;
            }
            try {
                oldConnection.disconnect();
            } catch (IOException e) {
                // ignore
                if (logger.isLoggable(Level.FINE)) {
                    logger.logThrow(Level.FINE, e,
                                    "Disconnecting after login redirect " +
View Full Code Here

Examples of com.volantis.vdp.scs.connectors.client.connection.ClientConnection

     * Creates new instance a ClientConnection class.
     */
   public void run() {
            try {
                while(run) {
                    ClientConnection conn =
                            new ClientConnection(serv.accept(), config);
                }
            } catch(IOException ioe) {
                logger.error("io-exception");
            }
   }
View Full Code Here

Examples of connection.ClientConnection

  public void execute(ClientConnection connection, ObjectInputStream is,
      ObjectOutputStream os) throws IOException, ClassNotFoundException
  {
    int clientId = is.readInt();

    ClientConnection client = getConnectionManager().getClientById(clientId);
    if (client == null)
    {
      throw new IOException();
    }

    os.write(ClientServerProtocol.PROTOCOL_LINK);
    os.write(ClientServerProtocol.Link.OP_ADDRESS);
    os.writeInt(clientId);
    os.writeObject(new InetSocketAddress(client.getAddress(), client.getPort()));
  }
View Full Code Here

Examples of connection.ClientConnection

    }
  }

  public FileSource asSource()
  {
    ClientConnection client = getConnectionManager().getClientById(clientId);
    if (client == null)
    {
      return null;
    }

    return new FileSource(clientId, new InetSocketAddress(client.getAddress(), client
        .getPort()));
  }
View Full Code Here

Examples of connection.ClientConnection

    if (query == null)
    {
      return;
    }

    ClientConnection client = getConnectionManager().getClientById(
        query.getQuerierId());
    if (client == null)
    {
      return;
    }

    client.sendSearchResults(query.getQuerierCookie(), results);
  }
View Full Code Here

Examples of de.tfh.pdvl.hp.connections.ClientConnection

     * @return ClientConnection to the serialServer
     * @throws WebAppException
     */
    private ClientConnection connectToServer() throws WebAppException {
        try {
            ClientConnection conn = new ClientConnection(
                    WebAppProperties.getInstance().getServerHost(),
                    WebAppProperties.getInstance().getTcpPort());
            return conn;
        }
        catch(UnknownHostException uhe) {
View Full Code Here

Examples of de.tfh.pdvl.hp.connections.ClientConnection

 
  /**
   * QueryMessage is sent to the serialServer.
   */
  public void visit(QueryMessage m) throws WebAppException {
      ClientConnection conn = connectToServer();
      conn.write(m.toString());
    try {
            Message retMessage = parser.parse(conn.read());
            retMessage.accept(this);
        } catch (MessageParserException e) {
            throw new WebAppException("Invalid message", e);
        } catch (IOException e) {
            throw new WebAppException("Connection to serialServer failed", e);
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.