Examples of connect()


Examples of org.openhab.binding.swegonventilation.protocol.SwegonVentilationConnector.connect()

        connector = new SwegonVentilationSerialConnector(serialPort);
      else
        connector = new SwegonVentilationUDPConnector(udpPort);

      try {
        connector.connect();
      } catch (SwegonVentilationException e) {
        logger.error(
            "Error occured when connecting to Swegon ventilation system",
            e);
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.model.MBrickd.connect()

      brickd.setHost(host);
      brickd.setPort(port);
      brickd.setEcosystem(tinkerforgeEcosystem);
      tinkerforgeEcosystem.getMbrickds().add(brickd);
      brickd.init();
      brickd.connect();
      logger.debug("{} Tinkerforge new brickd for host: {}", LoggerConstants.TFINIT, host);
    } else {
      logger.debug("{} Tinkerforge found existing brickd for host: {}", LoggerConstants.TFINIT,
          host);
    }
View Full Code Here

Examples of org.openqreg.db.DbHandler.connect()

  @Test
  public void testConnect() {
    try {
      DbHandler db = new DbHandler();
      db.connect(connectInfo);
    } catch (DbHandlerException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.owasp.webscarab.httpclient.URLFetcher.connect()

          _logger.fine("Intercepting SSL connection!");
          X509Certificate baseCrt = null;
          // Connect early so some SSL details can be copied into new cert
          URLFetcher uf = (URLFetcher) hc;
          try {
            uf.connect(_base);
          } catch (IOException ioe) {
            _logger.severe("Could not connect to remote server "
                + _base.toString() + ": " + ioe);
            return;
          }
View Full Code Here

Examples of org.pentaho.di.core.database.Database.connect()

    String sql = transMeta.getSQLStatementsString();

    // Execute the SQL on the target table:
    Database targetDatabase =
        new Database( new LoggingObject( "Custom1" ), transMeta.findDatabase( targetDatabaseName ) );
    targetDatabase.connect();
    targetDatabase.execStatements( sql );

  }
}
View Full Code Here

Examples of org.pentaho.di.repository.Repository.connect()

      // throw new ReportDataFactoryException("The specified repository " + repositoryName + " is not defined.");
    }

    final Repository repository = PluginRegistry.getInstance().loadClass(RepositoryPluginType.class, repositoryMeta.getId(), Repository.class);
    repository.init(repositoryMeta);
    repository.connect(username, password);
    return repository;
  }

  protected abstract TransMeta loadTransformation(Repository repository,
                                                  ResourceManager resourceManager,
View Full Code Here

Examples of org.pentaho.platform.plugin.services.connections.xquery.XQConnection.connect()

      XQConnection connection = new XQConnection();
      ILogger mockLogger = mock( ILogger.class );
      connection.setLogger( mockLogger );

      Properties properties = null;
      boolean isConnected = connection.connect( properties );
      assertTrue( isConnected );

      properties = new Properties();
      isConnected = connection.connect( properties );
      assertTrue( isConnected );
View Full Code Here

Examples of org.perl6.nqp.io.AsyncSocketHandle.connect()

        task.queue = queue;
        task.schedulee = schedulee;

        AsyncSocketHandle handle = new AsyncSocketHandle(tc);
        task.handle = handle;
        handle.connect(tc, host, (int) port, task);

        return task;
    }

    public static SixModelObject asynclisten(SixModelObject queue, SixModelObject schedulee,
View Full Code Here

Examples of org.pircbotx.PircBotX.connect()

//            }
//            fis.close();
        }

        PircBotX bot = new RhqIrcBot(rhqBotListener);
        bot.connect(server);
        bot.joinChannel(channel.trim());
    }
   
    private static void setupTrustStore() {
        TrustManagerFactory trustManagerFactory;
View Full Code Here

Examples of org.platformlayer.ops.images.direct.DirectImageStore.connect()

      // This is nasty; we're in the context of another service here...
      SshKey sshKey = sshKeys.findOtherServiceKey(new ServiceType("imagestore"));
      OpsTarget target = machine.getTarget("imagestore", sshKey.getKeyPair());

      DirectImageStore directImageStore = OpsContext.get().getInjector().getInstance(DirectImageStore.class);
      directImageStore.connect(target);
      return directImageStore;
    } else {
      throw new OpsException("Unknown protocol for endpoint: " + endpoint);
    }
  }
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.