Class AbstractAwsMachineLearningJobStarter<Q extends software.amazon.awssdk.awscore.AwsRequest,B extends software.amazon.awssdk.awscore.AwsRequest.Builder,R extends software.amazon.awssdk.awscore.AwsResponse,T extends software.amazon.awssdk.core.SdkClient,U extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder<U,T> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<U,T>>
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processors.aws.v2.AbstractAwsProcessor<T>
org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor<T,U>
org.apache.nifi.processors.aws.ml.AbstractAwsMachineLearningJobStarter<Q,B,R,T,U>
- All Implemented Interfaces:
ConfigurableComponent,Processor,VerifiableProcessor
public abstract class AbstractAwsMachineLearningJobStarter<Q extends software.amazon.awssdk.awscore.AwsRequest,B extends software.amazon.awssdk.awscore.AwsRequest.Builder,R extends software.amazon.awssdk.awscore.AwsResponse,T extends software.amazon.awssdk.core.SdkClient,U extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder<U,T> & software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<U,T>>
extends AbstractAwsSyncProcessor<T,U>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyDescriptorstatic final PropertyDescriptorprivate static final com.fasterxml.jackson.databind.ObjectMapperprotected static final List<PropertyDescriptor> static final Relationshipprivate static final Set<Relationship> Fields inherited from class org.apache.nifi.processors.aws.v2.AbstractAwsProcessor
AWS_CREDENTIALS_PROVIDER_SERVICE, DEFAULT_USER_AGENT, ENDPOINT_OVERRIDE, PROXY_CONFIGURATION_SERVICE, REGION, REL_FAILURE, REL_SUCCESS, SSL_CONTEXT_SERVICE, TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QbuildRequest(ProcessSession session, ProcessContext context, FlowFile flowFile) getAwsRequestBuilderClass(ProcessContext context, FlowFile flowFile) protected abstract StringgetAwsTaskId(ProcessContext context, R response, FlowFile flowFile) private StringgetPayload(ProcessSession session, ProcessContext context, FlowFile flowFile) voidvoidonTrigger(ProcessContext context, ProcessSession session) protected FlowFilepostProcessFlowFile(ProcessContext context, ProcessSession session, FlowFile flowFile, R response) protected StringreadFlowFile(ProcessSession session, FlowFile flowFile) protected abstract RsendRequest(Q request, ProcessContext context, FlowFile flowFile) protected FlowFilewriteToFlowFile(ProcessSession session, FlowFile flowFile, R response) Methods inherited from class org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor
configureHttpClient, createClient, createClient, createClientBuilderMethods inherited from class org.apache.nifi.processors.aws.v2.AbstractAwsProcessor
configureClientBuilder, configureClientBuilder, configureEndpoint, configureSdkHttpClient, getClient, getClient, getCredentialsProvider, getRegion, onScheduled, onStopped, onTrigger, verifyMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateRelationships
-
Field Details
-
JSON_PAYLOAD
-
MANDATORY_AWS_CREDENTIALS_PROVIDER_SERVICE
-
REL_ORIGINAL
-
PROPERTIES
-
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER -
relationships
-
-
Constructor Details
-
AbstractAwsMachineLearningJobStarter
public AbstractAwsMachineLearningJobStarter()
-
-
Method Details
-
migrateProperties
- Specified by:
migratePropertiesin interfaceProcessor- Overrides:
migratePropertiesin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>
-
getRelationships
- Specified by:
getRelationshipsin interfaceProcessor- Overrides:
getRelationshipsin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classAbstractConfigurableComponent
-
onTrigger
- Specified by:
onTriggerin classAbstractAwsProcessor<T extends software.amazon.awssdk.core.SdkClient>
-
postProcessFlowFile
protected FlowFile postProcessFlowFile(ProcessContext context, ProcessSession session, FlowFile flowFile, R response) -
buildRequest
protected Q buildRequest(ProcessSession session, ProcessContext context, FlowFile flowFile) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
writeToFlowFile
-
readFlowFile
-
getPayload
-
sendRequest
protected abstract R sendRequest(Q request, ProcessContext context, FlowFile flowFile) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getAwsRequestBuilderClass
protected abstract Class<? extends B> getAwsRequestBuilderClass(ProcessContext context, FlowFile flowFile) -
getAwsTaskId
-