Package org.jitterbit.integration.client.datalocation.connection

Examples of org.jitterbit.integration.client.datalocation.connection.DatabaseConnectionTester


final class LocationConnectionTesterFactory {

    public static ConnectionTester newTester(DataLocation loc) {
        switch (loc.getDataLocationType()) {
        case Database:
            return new DatabaseConnectionTester((DatabaseLocation) loc);
        case FileShare:
            return new FileShareConnectionTester((FileShareLocation) loc);
        case TemporaryStorage:
            return new TemporaryStorageConnectionTester((TemporaryStorageLocation) loc);
        case FTP:
View Full Code Here


                throw new UnsupportedOperationException("Unexpected location type: " + location.getDataLocationType());
            }
        }

        private ConnectionTester visit(DatabaseLocation loc) {
            DatabaseConnectionTester tester = new DatabaseConnectionTester(loc);
            class Callback extends CallbackBase implements DatabaseConnectionCallback {

                @Override
                public void connected(BeginEndQuote quotes) {
                    AllLocationsTester.this.connectionSucceeded();
                }
            }
            tester.setSourceConnectionCallback(new Callback());
            tester.setProgressMonitor(progressMonitor);
            return tester;
        }
View Full Code Here

                throw new UnsupportedOperationException("Unexpected location type: " + location.getDataLocationType());
            }
        }

        private ConnectionTester visit(DatabaseLocation loc) {
            DatabaseConnectionTester tester = new DatabaseConnectionTester(loc);
            class Callback extends CallbackBase implements DatabaseConnectionCallback {

                @Override
                public void connected(BeginEndQuote quotes) {
                    AllLocationsTester.this.connectionSucceeded();
                }
            }
            tester.setTargetConnectionCallback(new Callback());
            tester.setProgressMonitor(progressMonitor);
            return tester;
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.datalocation.connection.DatabaseConnectionTester

Copyright © 2018 www.massapicom. 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.