Package org.teiid.translator.amazon.s3
Class S3ProcedureExecution
- java.lang.Object
-
- org.teiid.translator.amazon.s3.S3ProcedureExecution
-
- All Implemented Interfaces:
Execution,ProcedureExecution,ResultSetExecution
public class S3ProcedureExecution extends Object implements ProcedureExecution
-
-
Constructor Summary
Constructors Constructor Description S3ProcedureExecution(Call command, S3ExecutionFactory ef, RuntimeMetadata metadata, ExecutionContext ec, WSConnection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidclose()protected StringdetermineEndpoint(String name, String bucket, String region)voidexecute()List<?>getOutputParameterValues()protected BinaryWSProcedureExecutioninvokeHTTP(String method, String uri, Object payload, Map<String,String> headers)List<?>next()
-
-
-
Constructor Detail
-
S3ProcedureExecution
public S3ProcedureExecution(Call command, S3ExecutionFactory ef, RuntimeMetadata metadata, ExecutionContext ec, WSConnection conn)
-
-
Method Detail
-
execute
public void execute() throws TranslatorException- Specified by:
executein interfaceExecution- Throws:
TranslatorException
-
determineEndpoint
protected String determineEndpoint(String name, String bucket, String region) throws TranslatorException
- Throws:
TranslatorException
-
invokeHTTP
protected BinaryWSProcedureExecution invokeHTTP(String method, String uri, Object payload, Map<String,String> headers) throws TranslatorException
- Throws:
TranslatorException
-
cancel
public void cancel() throws TranslatorException- Specified by:
cancelin interfaceExecution- Throws:
TranslatorException
-
next
public List<?> next() throws TranslatorException, DataNotAvailableException
- Specified by:
nextin interfaceResultSetExecution- Throws:
TranslatorExceptionDataNotAvailableException
-
getOutputParameterValues
public List<?> getOutputParameterValues() throws TranslatorException
- Specified by:
getOutputParameterValuesin interfaceProcedureExecution- Throws:
TranslatorException
-
-