Examples of connect()


Examples of org.apache.directory.studio.connection.core.io.ConnectionWrapper.connect()

        Connection connection = new Connection( connectionParameter );
        ConnectionWrapper connectionWrapper = connection.getConnectionWrapper();

        assertFalse( connectionWrapper.isConnected() );

        connectionWrapper.connect( monitor );
        assertTrue( connectionWrapper.isConnected() );
        assertNull( monitor.getException() );

        connectionWrapper.disconnect();
        assertFalse( connectionWrapper.isConnected() );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.connect()

        Connection connection = new Connection( connectionParameter );
        JNDIConnectionWrapper connectionWrapper = connection.getJNDIConnectionWrapper();

        assertFalse( connectionWrapper.isConnected() );

        connectionWrapper.connect( monitor );
        assertTrue( connectionWrapper.isConnected() );
        assertNull( monitor.getException() );

        connectionWrapper.disconnect();
        assertFalse( connectionWrapper.isConnected() );
View Full Code Here

Examples of org.apache.drill.exec.client.DrillClient.connect()

    DrillConfig config = DrillConfig.create();

    checkValues = false;

    try(DrillClient client = new DrillClient(config);){
      client.connect();
      RecordBatchLoader batchLoader = new RecordBatchLoader(client.getAllocator());
      ParquetResultListener resultListener = new ParquetResultListener(recordsPerRowGroup, batchLoader, numberOfRowGroups, numberOfTimesRead);
      client.runQuery(UserProtos.QueryType.PHYSICAL, Files.toString(FileUtils.getResourceAsFile(plan), Charsets.UTF_8), resultListener);
      resultListener.get();
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.runtime.Client.connect()

        for (int i = 0; i < retry; i++)
        {
            client = new Client();
            try
            {
                client.connect(props);
                break;
            }
            catch (ConnectException e)
            {
                SigilCore.log("Failed to connect to client: " + e.getMessage());
View Full Code Here

Examples of org.apache.geronimo.farm.config.ExtendedJMXConnectorInfo.connect()

        if (kernel == null) {
            if (local) {
                kernel = KernelRegistry.getSingleKernel();
            } else {
                ExtendedJMXConnectorInfo connectorInfo = getConnectorInfo();
                jmxConnector = connectorInfo.connect();
                return connectorInfo.newKernel(jmxConnector);
            }
        }
        return kernel;
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.ProxyMethodInterceptor.connect()

*/
        }

        ProxyFactory factory = ProxyFactory.newProxyFactory(type);
        ProxyMethodInterceptor methodInterceptor = factory.getMethodInterceptor();
        methodInterceptor.connect(server, objectName);
        return factory.create(methodInterceptor);
    }
}
View Full Code Here

Examples of org.apache.geronimo.javamail.transport.smtp.SMTPTransport.connect()

            message.setSubject("Testmail", "UTF-8");
            message.setText("Test.....");

            SMTPTransport transport = (SMTPTransport) mailSession.getTransport("smtps");
           
            transport.connect(new Socket(address.getHostName(), address.getPort()));
            transport.sendMessage(message, rcpts);
           
          
            assertEquals(1, hook.getQueued().size());
           
View Full Code Here

Examples of org.apache.hadoop.hbase.util.HBaseFsck.connect()

      if (!verify.verify(expectedNumNodes)) {
        try {
          HBaseFsck fsck = new HBaseFsck(getConf());
          HBaseFsck.setDisplayFullReport();
          fsck.connect();
          fsck.onlineHbck();
        } catch (Throwable t) {
          LOG.error("Failed to run hbck", t);
        }
        return false;
View Full Code Here

Examples of org.apache.hadoop.hdfs.test.system.NNClient.connect()

    // Trivial @Test
    public void testNamenodeConnectDisconnect() throws IOException {
        LOG.info("connecting to namenode");
        NNClient namenode = dfsCluster.getNNClient();
        namenode.connect();
        LOG.info("done.");
        LOG.info("disconnecting from namenode");
        namenode.disconnect();
    }
View Full Code Here

Examples of org.apache.hadoop.hive.cli.CliSessionState.connect()

    SessionState.start(ss);

    // connect to Hive Server
    if (ss.getHost() != null)
    {
      ss.connect();
      if (ss.isRemoteMode())
      {
        prompt = "[" + ss.getHost() + ':' + ss.getPort() + "] "
            + prompt;
        char[] spaces = new char[prompt.length()];
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.