Package org.teiid.translator
Interface Execution
-
- All Known Subinterfaces:
ProcedureExecution
,ResultSetExecution
,ReusableExecution<C>
,UpdateExecution
- All Known Implementing Classes:
AbstractSpreadsheetExecution
,AbstractUpdateExecution
,AccumuloQueryExecution
,AccumuloUpdateExecution
,BaseExcelExecution
,BaseParquetExecution
,BinaryWSProcedureExecution
,CassandraDirectQueryExecution
,CassandraQueryExecution
,CassandraUpdateExecution
,CouchbaseDirectQueryExecution
,CouchbaseProcedureExecution
,CouchbaseQueryExecution
,CouchbaseUpdateExecution
,DeleteExecutionImpl
,DeleteUpdateExecutionImpl
,DirectQueryExecution
,DirectSpreadsheetQueryExecution
,ExcelExecution
,ExcelUpdateExecution
,InfinispanDirectQueryExecution
,InfinispanQueryExecution
,InfinispanUpdateExecution
,InsertExecutionImpl
,JDBCBaseExecution
,JDBCDirectQueryExecution
,JDBCProcedureExecution
,JDBCQueryExecution
,JDBCUpdateExecution
,JPQLDirectQueryExecution
,JPQLQueryExecution
,JPQLUpdateExecution
,LDAPDirectCreateUpdateDeleteQueryExecution
,LDAPDirectSearchQueryExecution
,LDAPQueryExecution
,LDAPSyncQueryExecution
,LDAPUpdateExecution
,LoopbackExecution
,MongoDBDirectQueryExecution
,MongoDBQueryExecution
,MongoDBUpdateExecution
,ODataProcedureExecution
,ODataProcedureExecution
,ODataQueryExecution
,ODataQueryExecution
,ODataUpdateExecution
,ODataUpdateExecution
,OlapQueryExecution
,ParquetExecution
,PhoenixUpdateExecution
,ProcedureExecutionParentImpl
,QueryExecutionImpl
,S3ProcedureExecution
,SimpleDBDeleteExecute
,SimpleDBDirectQueryExecution
,SimpleDBInsertExecute
,SimpleDBQueryExecution
,SimpleDBUpdateExecute
,SolrQueryExecution
,SolrUpdateExecution
,SpreadsheetQueryExecution
,SpreadsheetUpdateExecution
,SwaggerProcedureExecution
,UpdateExecutionImpl
,WSProcedureExecution
,WSWSDLProcedureExecution
,YahooExecution
public interface Execution
An execution represents the state and lifecycle for a particular command execution. The methods provided on this interface define standard lifecycle methods. When execution completes, theclose()
will be called. If execution must be aborted, due to user or administrator action, thecancel()
will be called.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel()
Cancels the execution abnormally.void
close()
Terminates the execution normally.void
execute()
Execute the associated command.
-
-
-
Method Detail
-
close
void close()
Terminates the execution normally.
-
cancel
void cancel() throws TranslatorException
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.- Throws:
TranslatorException
-
execute
void execute() throws TranslatorException
Execute the associated command. Results will be retrieved through a specific sub-interface call.- Throws:
TranslatorException
-
-