Examples of validateConnection()


Examples of com.streamreduce.util.ExternalIntegrationClient.validateConnection()

                    "support validation via an external client.");
            return;
        }

        ExternalIntegrationClient externalClient = connectionProvider.getClient(connection);
        externalClient.validateConnection();
        externalClient.cleanUp();
    }

    private void validateOutboundConfigurations(Set<OutboundConfiguration> outboundConfigurations) throws InvalidCredentialsException, IOException {
        if (CollectionUtils.isEmpty(outboundConfigurations)) {
View Full Code Here

Examples of com.streamreduce.util.ExternalIntegrationClient.validateConnection()

        try {
            for (OutboundConfiguration outboundConfiguration : outboundConfigurations) {
                if (outboundConfiguration.getProtocol().equals("s3")) {
                    AWSClient awsClient = new AWSClient(outboundConfiguration);
                    externalClient = awsClient;
                    externalClient.validateConnection();
                    try {
                        awsClient.createBucket(outboundConfiguration);
                    } catch (IllegalStateException e) { //thrown when a bucket name is already taken
                        throw new InvalidOutboundConfigurationException(e.getMessage(), e);
                    }
View Full Code Here

Examples of com.streamreduce.util.ExternalIntegrationClient.validateConnection()

                    } catch (IllegalStateException e) { //thrown when a bucket name is already taken
                        throw new InvalidOutboundConfigurationException(e.getMessage(), e);
                    }
                } else if (outboundConfiguration.getProtocol().equals("webhdfs")) {
                    externalClient = new WebHDFSClient(outboundConfiguration);
                    externalClient.validateConnection();
                }
            }
        } finally {
            if (externalClient != null) {
                externalClient.cleanUp();
View Full Code Here

Examples of org.activemq.broker.BrokerClient.validateConnection()

      // Assert that the existing client is alive
      BrokerClient existingClient = (BrokerClient) clientIds.get(clientId);
      JMSException ex = null;
      boolean isValid = true;
      try {
        existingClient.validateConnection(timeout);
      } catch (JMSException e) {
        isValid = false;
        ex = e;
      }
      if (isValid) {
View Full Code Here

Examples of org.activemq.broker.BrokerClient.validateConnection()

      // Assert that the existing client is alive
      BrokerClient existingClient = (BrokerClient) clientIds.get(clientId);
      JMSException ex = null;
      boolean isValid = true;
      try {
        existingClient.validateConnection(timeout);
      } catch (JMSException e) {
        isValid = false;
        ex = e;
      }
      if (isValid) {
View Full Code Here

Examples of org.activemq.broker.BrokerClient.validateConnection()

      // Assert that the existing client is alive
      BrokerClient existingClient = (BrokerClient) clientIds.get(clientId);
      JMSException ex = null;
      boolean isValid = true;
      try {
        existingClient.validateConnection(timeout);
      } catch (JMSException e) {
        isValid = false;
        ex = e;
      }
      if (isValid) {
View Full Code Here

Examples of org.apache.sqoop.validation.Validator.validateConnection()

        // Transform form structures to objects for validations
        Object newConfigurationObject = ClassUtils.instantiate(connector.getConnectionConfigurationClass());
        FormUtils.fromForms(newConnection.getConnectorPart().getForms(), newConfigurationObject);

        Validation validation = validator.validateConnection(newConfigurationObject);
        if (validation.getStatus().canProceed()) {
          updateConnection(newConnection, tx);
        } else {
          logInvalidModelObject("connection", newConnection, validation);
          upgradeSuccessful = false;
View Full Code Here

Examples of org.apache.sqoop.validation.Validator.validateConnection()

        // Transform form structures to objects for validations
        Object newConfigurationObject = ClassUtils.instantiate(FrameworkManager.getInstance().getConnectionConfigurationClass());
        FormUtils.fromForms(newConnection.getFrameworkPart().getForms(), newConfigurationObject);

        Validation validation = validator.validateConnection(newConfigurationObject);
        if (validation.getStatus().canProceed()) {
          updateConnection(newConnection, tx);
        } else {
          logInvalidModelObject("connection", newConnection, validation);
          upgradeSuccessful = false;
View Full Code Here

Examples of org.apache.sqoop.validation.Validator.validateConnection()

    // Validate both parts
    Validation connectorValidation =
      connectorValidator.validateConnection(connectorConfig);
    Validation frameworkValidation =
      frameworkValidator.validateConnection(frameworkConfig);

    Status finalStatus = Status.getWorstStatus(connectorValidation.getStatus(),
      frameworkValidation.getStatus());

    // Return back validations in all cases
View Full Code Here

Examples of org.apache.sqoop.validation.Validator.validateConnection()

    // Validate both parts
    Validation connectorValidation =
      connectorValidator.validateConnection(connectorConfig);
    Validation frameworkValidation =
      frameworkValidator.validateConnection(frameworkConfig);

    Status finalStatus = Status.getWorstStatus(connectorValidation.getStatus(),
      frameworkValidation.getStatus());

    // Return back validations in all cases
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.