Examples of validateConnection()


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.codehaus.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.codehaus.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.mule.api.transport.Connectable.validateConnection()

            {
                // Try validateConnection() rather than connect() which may be a less expensive operation while we're retrying.
                if (validateConnections && context.getLastFailure() instanceof ConnectException)
                {
                    Connectable failed = ((ConnectException) context.getLastFailure()).getFailed();                   
                    if (!failed.validateConnection(context).isOk())
                    {
                        throw new ConnectException(
                                MessageFactory.createStaticMessage("Still unable to connect to resource " + failed.getClass().getName()),
                                context.getLastFailure(), failed);
                    }
View Full Code Here

Examples of org.mule.api.transport.Connectable.validateConnection()

            {
                // Try validateConnection() rather than connect() which may be a less expensive operation while we're retrying.
                if (validateConnections && context.getLastFailure() instanceof ConnectException)
                {
                    Connectable failed = ((ConnectException) context.getLastFailure()).getFailed();
                    if (!failed.validateConnection(context).isOk())
                    {
                        throw new ConnectException(
                                MessageFactory.createStaticMessage("Still unable to connect to resource " + failed.getClass().getName()),
                                context.getLastFailure(), failed);
                    }
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.