Examples of ConnectionConfiguration


Examples of org.apache.sqoop.connector.jdbc.configuration.ConnectionConfiguration

  }

  public void testInsert() throws Exception {
    MutableContext context = new MutableMapContext();

    ConnectionConfiguration connectionConfig = new ConnectionConfiguration();

    connectionConfig.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connectionConfig.connection.connectionString = GenericJdbcTestConstants.URL;

    ExportJobConfiguration jobConfig = new ExportJobConfiguration();
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ConnectionConfiguration

    executor.close();
  }

  @SuppressWarnings("unchecked")
  public void testTableName() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ImportJobConfiguration jobConf = new ImportJobConfiguration();

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
    jobConf.table.tableName = schemalessTableName;
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ConnectionConfiguration

        String.valueOf(START+NUMBER_OF_ROWS-1));
  }

  @SuppressWarnings("unchecked")
  public void testTableNameWithTableColumns() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ImportJobConfiguration jobConf = new ImportJobConfiguration();

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
    jobConf.table.tableName = schemalessTableName;
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ConnectionConfiguration

        String.valueOf(START+NUMBER_OF_ROWS-1));
  }

  @SuppressWarnings("unchecked")
  public void testTableSql() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ImportJobConfiguration jobConf = new ImportJobConfiguration();

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
    jobConf.table.sql = schemalessTableSql;
View Full Code Here

Examples of org.apache.sqoop.framework.configuration.ConnectionConfiguration

    validator = new FrameworkValidator();
  }

  @Test
  public void testConnectionValidation() {
    ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration();

    Validation validation = validator.validateConnection(connectionConfiguration);
    assertEquals(Status.FINE, validation.getStatus());
    assertEquals(0, validation.getMessages().size());
  }
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

    for (String s: to.split(";")) {
      if (s != null && !"".equals(s)) {
        this.toUsers.add(s);
      }
    }
        ConnectionConfiguration conf = new ConnectionConfiguration(server, port , service);
        XMPPConnection connection = null;
        try {

           if(server !=null && !server.equals("") && port != 0){
             connection = new XMPPConnection(conf);
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

   * @return a reused connection configuration for connecting to the im server
   */
  protected static ConnectionConfiguration getConnectionConfiguration() {
    if (connConfig == null) {
      // 5222 is the default unsecured jabber server port
      connConfig = new ConnectionConfiguration(InstantMessagingModule.getAdapter().getConfig().getServername(), 5222);
      connConfig.setNotMatchingDomainCheckEnabled(false);
      connConfig.setSASLAuthenticationEnabled(false);
      connConfig.setReconnectionAllowed(false);
    }
    return connConfig;
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

  /**
   * @param args
   */
  public static void main(String[] args) {
    ConnectionConfiguration connConfig = new ConnectionConfiguration("idlnxgs.unizh.ch", 5222);
    connConfig.setNotMatchingDomainCheckEnabled(false);
    connConfig.setSASLAuthenticationEnabled(false);
    connConfig.setReconnectionAllowed(false);
    connConfig.setDebuggerEnabled(true);

    ProviderManager providerMgr = ProviderManager.getInstance();
    providerMgr.addIQProvider("query", UserCreate.NAMESPACE, new UserCreate.Provider());
    providerMgr.addIQProvider("query", UserDelete.NAMESPACE, new UserCreate.Provider());
   
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

    }
  }

  private void connect(String servername, String adminUsername, String adminPassword, String nodeId) {
    try {
      ConnectionConfiguration conConfig = new ConnectionConfiguration(servername, 5222);
      conConfig.setNotMatchingDomainCheckEnabled(false);
      conConfig.setSASLAuthenticationEnabled(false);
      //the admin reconnects automatically upon server restart or failure but *not* on a resource conflict and a manual close of the connection
      conConfig.setReconnectionAllowed(true);
      //conConfig.setDebuggerEnabled(true);
      if (connection == null || !connection.isAuthenticated()) {
        connection = new XMPPConnection(conConfig);
        connection.connect();
        connection.addConnectionListener(new ConnectionListener() {
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

                if (config.getServletConfig().getInitParameter(XMPP_DEBUG) != null) {
                    XMPPConnection.DEBUG_ENABLED = true;
                }              
            }

            ConnectionConfiguration config = null;
            int port = -1;
            try {
                port = uri.getPort();
            } catch (Throwable t) {
                ;
            }
            if (port == -1) {
                config = new ConnectionConfiguration(uri.getHost());
            } else {
                config = new ConnectionConfiguration(uri.getHost(), port);

            }

            xmppConnection = new XMPPConnection(config);
            xmppConnection.connect();
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.