Search in sources :

Example 21 with RequestID

use of org.teiid.dqp.message.RequestID in project teiid by teiid.

the class TestRequestID method testEquivalence4.

public void testEquivalence4() {
    // $NON-NLS-1$
    RequestID r1 = new RequestID("100", 200);
    // $NON-NLS-1$
    RequestID r2 = new RequestID("100", 201);
    UnitTestUtil.helpTestEquivalence(1, r1, r2);
}
Also used : RequestID(org.teiid.dqp.message.RequestID)

Example 22 with RequestID

use of org.teiid.dqp.message.RequestID in project teiid by teiid.

the class TestRequestID method testGetters2.

public void testGetters2() {
    long executionID = 200;
    RequestID r = new RequestID(executionID);
    // $NON-NLS-1$
    assertEquals("Lost connectionID", null, r.getConnectionID());
    // $NON-NLS-1$
    assertEquals("Lost executionID", executionID, r.getExecutionID());
    // $NON-NLS-1$ //$NON-NLS-2$
    assertEquals("Wrong string representation", "C.200", r.toString());
}
Also used : RequestID(org.teiid.dqp.message.RequestID)

Example 23 with RequestID

use of org.teiid.dqp.message.RequestID in project teiid by teiid.

the class TestRequestID method testEquivalence7.

public void testEquivalence7() {
    RequestID r1 = new RequestID(200);
    // $NON-NLS-1$
    RequestID r2 = new RequestID("100", 200);
    UnitTestUtil.helpTestEquivalence(1, r1, r2);
}
Also used : RequestID(org.teiid.dqp.message.RequestID)

Example 24 with RequestID

use of org.teiid.dqp.message.RequestID in project teiid by teiid.

the class TestRequestID method testEquivalence2.

public void testEquivalence2() {
    // $NON-NLS-1$
    RequestID r1 = new RequestID("100", 200);
    // $NON-NLS-1$
    RequestID r2 = new RequestID("100", 200);
    UnitTestUtil.helpTestEquivalence(0, r1, r2);
}
Also used : RequestID(org.teiid.dqp.message.RequestID)

Example 25 with RequestID

use of org.teiid.dqp.message.RequestID in project teiid by teiid.

the class TestRequestID method testSerialize1.

public void testSerialize1() throws Exception {
    // $NON-NLS-1$
    RequestID copy = UnitTestUtil.helpSerialize(new RequestID("1", 100));
    // $NON-NLS-1$
    assertEquals("1", copy.getConnectionID());
    assertEquals(100, copy.getExecutionID());
    // $NON-NLS-1$
    assertEquals("1.100", copy.toString());
}
Also used : RequestID(org.teiid.dqp.message.RequestID)

Aggregations

RequestID (org.teiid.dqp.message.RequestID)25 RequestMessage (org.teiid.client.RequestMessage)8 AtomicRequestMessage (org.teiid.dqp.message.AtomicRequestMessage)8 FakeTransactionService (org.teiid.dqp.internal.datamgr.FakeTransactionService)6 RequestMetadata (org.teiid.adminapi.impl.RequestMetadata)4 HashSet (java.util.HashSet)3 TeiidComponentException (org.teiid.core.TeiidComponentException)2 QueryProcessor (org.teiid.query.processor.QueryProcessor)2 Command (org.teiid.query.sql.lang.Command)2 CommandContext (org.teiid.query.util.CommandContext)2 WeakReference (java.lang.ref.WeakReference)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 PreParser (org.teiid.PreParser)1 CacheConfiguration (org.teiid.cache.CacheConfiguration)1 DefaultCacheFactory (org.teiid.cache.DefaultCacheFactory)1 ResultsMessage (org.teiid.client.ResultsMessage)1 PlanNode (org.teiid.client.plan.PlanNode)1 ResultsFuture (org.teiid.client.util.ResultsFuture)1 DQPWorkContext (org.teiid.dqp.internal.process.DQPWorkContext)1