com.metamatrix.connector.xml.jms
Class JMSExecution
java.lang.Object
org.teiid.connector.basic.BasicExecution
com.metamatrix.connector.xml.jms.JMSExecution
- All Implemented Interfaces:
- XMLExecution, Execution, ResultSetExecution
public class JMSExecution
- extends BasicExecution
- implements ResultSetExecution, XMLExecution
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMSExecution
public JMSExecution(IQuery query,
JMSConnection connection,
RuntimeMetadata metadata,
ExecutionContext exeCtx,
ConnectorEnvironment connectorEnv,
ConnectorLogger logger)
throws ConnectorException
- Throws:
ConnectorException
close
public void close()
throws ConnectorException
- Description copied from interface:
Execution
- Terminates the execution normally.
- Specified by:
close
in interface Execution
- Throws:
ConnectorException
cancel
public void cancel()
throws ConnectorException
- Description copied from interface:
Execution
- Cancels the execution abnormally. This will happen via
a different thread from the one performing the execution, so
should be expected to happen in a multi-threaded scenario.
- Specified by:
cancel
in interface Execution
- Throws:
ConnectorException
execute
public void execute()
throws ConnectorException
- Analyzes the Query and breaks it into multipl requests if needed. Creates a
JMSRequestExecutor for each request that creates and sends the request if
needed. RequestExecutors are save in a List and accesses in next
Batch()
- Specified by:
execute
in interface Execution
- Throws:
ConnectorException
next
public java.util.List next()
throws ConnectorException,
DataNotAvailableException
- Specified by:
next
in interface ResultSetExecution
- Throws:
ConnectorException
DataNotAvailableException
getRequestNumber
public int getRequestNumber()
incrementRequestNumber
public void incrementRequestNumber()
getInfo
public ExecutionInfo getInfo()
- Specified by:
getInfo
in interface XMLExecution
getConnection
public XMLConnection getConnection()
- Specified by:
getConnection
in interface XMLExecution
getCache
public IDocumentCache getCache()
- Specified by:
getCache
in interface XMLExecution
getExeContext
public ExecutionContext getExeContext()
- Specified by:
getExeContext
in interface XMLExecution
Copyright © 2009. All Rights Reserved.