Examples of ConnectionInfo


Examples of org.sonatype.nexus.client.rest.ConnectionInfo

    return createFor(baseUrl, null);
  }

  @Override
  public final NexusClient createFor(final BaseUrl baseUrl, final AuthenticationInfo authenticationInfo) {
    return createFor(new ConnectionInfo(baseUrl, authenticationInfo, null));
  }
View Full Code Here

Examples of org.switchyard.quickstarts.camel.sap.binding.jaxb.ConnectionInfo

        ConnectionInfoTable connectionInfoTable = new ConnectionInfoTable();
        List<ConnectionInfo> rows = new ArrayList<ConnectionInfo>();
        for (FlightHop flightHop: flightConnectionInfo.getFlightHopList()) {
            // Connection Info
            ConnectionInfo connection = new ConnectionInfo();
            //  Connection ID
            connection.setConnectionId(flightHop.getHopNumber());
            //  Airline
            connection.setAirline(flightHop.getAirlineName());
            //  Plane Type
            connection.setPlaneType(flightHop.getAircraftType());
            //  Departure City
            connection.setCityFrom(flightHop.getDepatureCity());
            //  Departure Date
            connection.setDepartureDate(flightHop.getDepatureDate());
            //  Departure Time
            connection.setDepartureTime(flightHop.getDepatureTime());
            //  Arrival City
            connection.setCityTo(flightHop.getArrivalCity());
            //  Arrival Date
            connection.setArrivalDate(flightHop.getArrivalDate());
            //  Arrival Time
            connection.setArrivalTime(flightHop.getArrivalTime());
            rows.add(connection);
        }
        connectionInfoTable.setRows(rows);
        bookFlightResponse.setConnectionInfo(connectionInfoTable);
View Full Code Here

Examples of org.testng.remote.ConnectionInfo

      addSlave(s);
    }
  }
 
  public void addSlave(Socket s) {
    ConnectionInfo ci = new ConnectionInfo();
    ci.setSocket(s);
    addSlave(s, ci);
  }
View Full Code Here

Examples of org.testng.remote.ConnectionInfo

    m_hosts.add(s);
    m_connectionInfos.put(s, ci);
  }
 
  public ConnectionInfo getSlave() {
    ConnectionInfo result = null;
    Socket host = null;
   
    try {
      host = m_hosts.take();
      result = m_connectionInfos.get(host);
View Full Code Here

Examples of org.testng.remote.ConnectionInfo

  }
 
  private static ConnectionInfo resetSocket(int clientPort, ConnectionInfo oldCi)
    throws IOException
  {
    ConnectionInfo result = new ConnectionInfo();
    ServerSocket serverSocket = new ServerSocket(clientPort);
    serverSocket.setReuseAddress(true);
    log("Waiting for connections on port " + clientPort);
    Socket socket = serverSocket.accept();
    result.setSocket(socket);
   
    return result;
  }
View Full Code Here

Examples of org.testng.remote.ConnectionInfo

   * created to run it.
   * @throws IOException
   */
  private void waitForSuites() {
    try {
      ConnectionInfo ci = resetSocket(m_clientPort, null);
      while (true) {
        try {
          XmlSuite s = (XmlSuite) ci.getOis().readObject();
          log("Processing " + s.getName());
          m_suites = new ArrayList<XmlSuite>();
          m_suites.add(s);
          List<ISuite> suiteRunners = runSuitesLocally();
          ISuite sr = suiteRunners.get(0);
          log("Done processing " + s.getName());
          ci.getOos().writeObject(sr);
        }
        catch (ClassNotFoundException e) {
          e.printStackTrace(System.out);
        }     
        catch(EOFException ex) {
View Full Code Here

Examples of org.xorm.datastore.ConnectionInfo

    public static DataSource getDataSource(PersistenceManagerFactory factory) {
        if (!(factory instanceof InterfaceManagerFactory)) {
            throw new JDOFatalUserException(I18N.msg("E_non_xorm_pmf"));
        }

        ConnectionInfo connectionInfo = ((InterfaceManagerFactory) factory)
            .getConnectionInfo();
        if (connectionInfo instanceof SQLConnectionInfo) {
            return ((SQLConnectionInfo) connectionInfo).getDataSource();
        }
        return null;
View Full Code Here

Examples of remote.motecontrol.client.ConnectionInfo

        settings.setProperty("serverPort", portString);
        saveSettings();
      }
      int port = Integer.parseInt(portString);

      currentConnection = new ConnectionInfo(server, port);
      Session session = this.getSession();
      session.connect(currentConnection);
      if (session.isConnected()) {
        this.setDefaultLayout();
      } else {
View Full Code Here

Examples of soht.server.java.ConnectionInfo

     * Closes the input and output streams of the specified connection
     * and removes it from the cache.
     */
    public void removeConnection( long connectionId ) {

        ConnectionInfo info = getConnection( connectionId );

        try {
            info.getInputStream().close();
        }
        catch( Exception e ) {
            //Nothing to do here.
        }

        try {
            info.getOutputStream().close();
        }
        catch( Exception e ) {
            //Nothing to do here.
        }

View Full Code Here

Examples of weave.config.ConnectionConfig.ConnectionInfo

  }
 
  private ConnectionInfo getConnectionInfo(String user, String password) throws RemoteException
  {
    ConnectionConfig connConfig = getConnectionConfig();
    ConnectionInfo info = connConfig.getConnectionInfo(user);
    if (info == null || password == null || !password.equals(info.pass))
    {
      System.out.println(String.format("authenticate failed, name=\"%s\" pass=\"%s\"", user, password));
      throw new RemoteException("Incorrect username or password.");
    }
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.