Examples of testConnection()


Examples of com.dci.intellij.dbn.connection.ConnectionManager.testConnection()

        new BackgroundTask(project, "Trying to connect to " + connectionHandler.getName(), false) {
            @Override
            public void execute(@NotNull ProgressIndicator progressIndicator) {
                initProgressIndicator(progressIndicator, true);
                ConnectionManager connectionManager = ConnectionManager.getInstance(project);
                connectionManager.testConnection(connectionHandler, true);
            }
        }.start();

    }
}
View Full Code Here

Examples of com.esri.gpt.catalog.arcims.TestConnectionRequest.testConnection()

  validateProtocol();

  try {
    TestConnectionRequest tchRequest = new TestConnectionRequest(
      getCredentials(), getFullUrl(), getTimeout(), getServiceName());
    if (!tchRequest.testConnection()) {
      throw new HRInvalidProtocolException(
        HRInvalidProtocolException.ProtocolElement.serviceName,
        "Requested service unaccessible."
        );
    }
View Full Code Here

Examples of com.sun.appserv.management.ext.lb.LoadBalancer.testConnection()

        if (loadBalancer == null){
            GuiUtil.prepareAlert(handlerCtx, "error", GuiUtil.getMessage("msg.loadBalancer.NoSuchLB", new Object[]{lbName}), null);
            System.out.println("testLoadBalancerConnection(): lbMap.get(" + lbName+ ")returns null");
            System.out.println("loadbalancer map returned from getLoadBalancerMap() : " + lbMap);
        }else{
            Boolean ok = loadBalancer.testConnection();
            if (ok)
                GuiUtil.prepareAlert(handlerCtx, "success", GuiUtil.getMessage("msg.loadBalancer.TestConnectionSuccess"), null);
            else
                GuiUtil.prepareAlert(handlerCtx, "error", GuiUtil.getMessage("msg.loadBalancer.TestConnectionFailed"), null);
        }
View Full Code Here

Examples of org.ejbca.core.model.ra.userdatasource.BaseUserDataSource.testConnection()

      UserDataSourceData pdl = UserDataSourceData.findById(entityManager, userdatasourceid);
      if (pdl != null) {
          BaseUserDataSource userdatasource = getUserDataSource(pdl);
          if(isAuthorizedToEditUserDataSource(admin,userdatasource)){
            try {
              userdatasource.testConnection(admin);
              String msg = intres.getLocalizedMessage("userdatasource.testedcon", pdl.getName());             
              logSession.log(admin, admin.getCaId(), LogConstants.MODULE_RA, new java.util.Date(), null,
                  null, LogConstants.EVENT_INFO_USERDATASOURCEDATA,msg);
            } catch (UserDataSourceConnectionException pe) {
              String msg = intres.getLocalizedMessage("userdatasource.errortestcon", pdl.getName());             
View Full Code Here

Examples of org.jitterbit.integration.client.datalocation.connection.all.SourceConnectionTester.testConnection()

        Runnable testJob = new Runnable() {

            @Override
            public void run() {
                SourceConnectionTester tester = new SourceConnectionTester(source);
                TestConnectionResult result = tester.testConnection();
                showResult(source, result);
                persistResult(source, result);
            }
        };
        runAndTest(source, testJob);
View Full Code Here

Examples of org.jitterbit.integration.client.datalocation.connection.all.TargetConnectionTester.testConnection()

        Runnable testJob = new Runnable() {

            @Override
            public void run() {
                TargetConnectionTester tester = new TargetConnectionTester(target);
                TestConnectionResult result = tester.testConnection();
                showResult(target, result);
                persistResult(target, result);
            }
        };
        runAndTest(target, testJob);
View Full Code Here

Examples of org.jitterbit.integration.server.db.infoprovider.ConnectionTester.testConnection()

            LOG.info("Entering JdbcInfoProvider.testConnection()");
            eas = ExternalApiSupport.forCall(user, password);
            ConnectionFactory connectionFactory = createConnectionFactory(
                            eas, driverName, wsConnParams, sourceGuid, targetGuid);
            ConnectionTester tester = new ConnectionTester(connectionFactory);
            result = tester.testConnection();
        } catch (Exception err) {
            convert(err, "testConnection");
        } finally {
            ExternalApiSupport.safeDispose(eas);
        }
View Full Code Here

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.db.impl.JdbcInfoProviderWsImpl.testConnection()

        }
    }

    private void testJdbcSource(Source src, DatabaseLocation dbLoc, DatabaseConnectionCallback callback) {
        JdbcInfoProviderWsImpl jdbcImpl = new JdbcInfoProviderWsImpl();
        jdbcImpl.testConnection(dbLoc, src.getID(), null, callback);
    }
   
    private void testOdbcSource(Source src, DatabaseLocation dbLoc, DatabaseConnectionCallback callback)
                    throws IntegrationServerException, RemoteException {
        // TODO (Emanuel): BeginEndQuote from the DB
View Full Code Here

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.db.impl.JdbcInfoProviderWsImpl.testConnection()

        }
    }
   
    private void testJdbcTarget(Target tgt, DatabaseLocation dbLoc, DatabaseConnectionCallback callback) {
        JdbcInfoProviderWsImpl jdbcImpl = new JdbcInfoProviderWsImpl();
        jdbcImpl.testConnection(dbLoc, null, tgt.getID(), callback);
    }

    private void testOdbcTarget(Target tgt, DatabaseLocation dbLoc, DatabaseConnectionCallback callback)
                    throws IntegrationServerException, RemoteException {
        // TODO (Emanuel): BeginEndQuote from the DB
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.jboss.software.JBossSoftwareContentSourceAdapter.testConnection()

        adapter.initialize(CONFIGURATION);

        // Test

        // This will throw an exception if the connection cannot be made
        adapter.testConnection();
    }

    @Test(enabled = TESTS_ENABLED)
    public void bitsGrab() throws Exception {
        // Setup
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.