Package org.teiid.translator.loopback

Examples of org.teiid.translator.loopback.LoopbackExecutionFactory


    public TestLoopbackExecution(String name) {
        super(name);
    }

    public LoopbackExecutionFactory exampleProperties(int waitTime, int rowCount) {
      LoopbackExecutionFactory config = new LoopbackExecutionFactory();
      config.setWaitTime(waitTime);
      config.setRowCount(rowCount);
        return config;
    }
View Full Code Here


* @since 4.3
*/
public class TestLoobackAsynch extends TestCase {

    public void test() throws Exception {
        LoopbackExecutionFactory connector = new LoopbackExecutionFactory();
        connector.setWaitTime(200);
        connector.setRowCount(1000);
        connector.setPollIntervalInMilli(100L);
       
        ConnectorHost host = new ConnectorHost(connector, null, FakeTranslationFactory.getInstance().getBQTTranslationUtility());
        List results = host.executeCommand("SELECT intkey from bqt1.smalla"); //$NON-NLS-1$
        assertEquals(1000, results.size());
    }
View Full Code Here

TOP

Related Classes of org.teiid.translator.loopback.LoopbackExecutionFactory

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.