Examples of ExecutionContextImpl


Examples of org.openquark.cal.internal.runtime.ExecutionContextImpl

        } catch (NumberFormatException e) {
            iceLogger.log(Level.INFO, "Invalid thread ID: " + arg);
            return;
        }
       
        ExecutionContextImpl ec = getExecutionContext();
       
        Map<Thread, SuspensionState> suspensions = ec.getThreadSuspensions();
       
        Thread match = null;
        for (final Thread thread : suspensions.keySet()) {
            if (thread.getId() == threadID) {
                match = thread;
View Full Code Here

Examples of org.openquark.cal.internal.runtime.ExecutionContextImpl

       
        // We want to preserve the settings in the execution context
        // which relate to tracing and breakpoints.
       
        // Get the current execution context.
        ExecutionContextImpl oldExecutionContext = getExecutionContext();
       
        // Discard the FunctionRunThread.  This holds the executor, execution
        // context, etc.
        runThread  = null;
       
        // Get a new execution context.
        ExecutionContextImpl newExecutionContext = getExecutionContext();
       
        // Update the new execution context with settings from the old one.
        newExecutionContext.setBreakpoints(oldExecutionContext.getBreakpoints());      
       
        newExecutionContext.setTracedFunctions(oldExecutionContext.getTracedFunctions());       
       
        newExecutionContext.setTracingEnabled(oldExecutionContext.isTracingEnabled());
        newExecutionContext.setTraceShowsFunctionArgs(oldExecutionContext.traceShowsFunctionArgs());
        newExecutionContext.setTraceShowsThreadName(oldExecutionContext.traceShowsThreadName());
    }
View Full Code Here

Examples of org.teiid.dqp.internal.datamgr.ExecutionContextImpl

    @Test public void testOracleCommentPayload() throws Exception {
        String input = "SELECT part_name, rownum FROM parts"; //$NON-NLS-1$
        String output = "SELECT /*+ ALL_ROWS */ PARTS.PART_NAME, ROWNUM FROM PARTS"; //$NON-NLS-1$
              
        String hint = "/*+ ALL_ROWS */"; //$NON-NLS-1$
        ExecutionContext context = new ExecutionContextImpl(null, 1, hint, null, "", null, null, null); //$NON-NLS-1$
       
        helpTestVisitor(getTestVDB(),
            input,
            context,
            null,
View Full Code Here

Examples of org.teiid.dqp.internal.datamgr.ExecutionContextImpl

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

    public ExecutionContextImpl createContext(String requestID, String partID) {
        return new ExecutionContextImpl("vdb", 1, null,   //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
                                        "Connection", "Connector", requestID, partID, "0"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    }
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.