Class AirflowRESTClient
java.lang.Object
org.openmetadata.sdk.PipelineServiceClient
org.openmetadata.service.clients.pipeline.airflow.AirflowRESTClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HttpClientprotected final Stringprotected final URLprotected final StringFields inherited from class org.openmetadata.sdk.PipelineServiceClient
APP_TRIGGER, APP_VALIDATE, AUTH_HEADER, CONTENT_HEADER, CONTENT_TYPE, DEPLOYMENT_ERROR, HEALTHY_STATUS, hostIp, ingestionIpInfoEnabled, pipelineServiceClientEnabled, SERVER_VERSION, STATUS_KEY, TRIGGER_ERROR, TYPE_TO_TASK, UNHEALTHY_STATUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.client.utils.URIBuilderdeletePipeline(IngestionPipeline ingestionPipeline) deployPipeline(IngestionPipeline ingestionPipeline, ServiceEntityInterface service) getLastIngestionLogs(IngestionPipeline ingestionPipeline, String after) getQueuedPipelineStatusInternal(IngestionPipeline ingestionPipeline) Scenarios handled here: 1.killIngestion(IngestionPipeline ingestionPipeline) final HttpResponse<String>final HttpResponse<String>runApplicationFlow(App application) runAutomationsWorkflow(Workflow workflow) runPipeline(IngestionPipeline ingestionPipeline, ServiceEntityInterface service) toggleIngestion(IngestionPipeline ingestionPipeline) validateAppRegistration(AppMarketPlaceDefinition appMarketPlaceDefinition) Methods inherited from class org.openmetadata.sdk.PipelineServiceClient
buildHealthyStatus, buildUnhealthyStatus, buildVersionMismatchErrorMessage, getBasicAuthenticationHeader, getHostIp, getPlatform, getQueuedPipelineStatus, getServerVersion, getServiceStatus, getServiceStatusBackoff, getVersionFromString, setPlatform, validateServiceURL, validServerClientVersions
-
Field Details
-
username
-
password
-
client
-
serviceURL
-
-
Constructor Details
-
AirflowRESTClient
- Throws:
KeyStoreException
-
-
Method Details
-
post
public final HttpResponse<String> post(String endpoint, String payload, boolean authenticate) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
post
public final HttpResponse<String> post(String endpoint, String payload) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
deployPipeline
public PipelineServiceClientResponse deployPipeline(IngestionPipeline ingestionPipeline, ServiceEntityInterface service) - Specified by:
deployPipelinein classPipelineServiceClient
-
deletePipeline
- Specified by:
deletePipelinein classPipelineServiceClient
-
runPipeline
public PipelineServiceClientResponse runPipeline(IngestionPipeline ingestionPipeline, ServiceEntityInterface service) - Specified by:
runPipelinein classPipelineServiceClient
-
toggleIngestion
- Specified by:
toggleIngestionin classPipelineServiceClient
-
getQueuedPipelineStatusInternal
- Specified by:
getQueuedPipelineStatusInternalin classPipelineServiceClient
-
getServiceStatusInternal
Scenarios handled here: 1. Failed to access Airflow APIs: No response from Airflow; APIs might not be installed 2. Auth failed when accessing Airflow APIs 3. Different versions between server and client- Specified by:
getServiceStatusInternalin classPipelineServiceClient
-
runAutomationsWorkflow
- Specified by:
runAutomationsWorkflowin classPipelineServiceClient
-
runApplicationFlow
- Specified by:
runApplicationFlowin classPipelineServiceClient
-
validateAppRegistration
public PipelineServiceClientResponse validateAppRegistration(AppMarketPlaceDefinition appMarketPlaceDefinition) - Specified by:
validateAppRegistrationin classPipelineServiceClient
-
killIngestion
- Specified by:
killIngestionin classPipelineServiceClient
-
requestGetHostIp
- Specified by:
requestGetHostIpin classPipelineServiceClient
-
getLastIngestionLogs
- Specified by:
getLastIngestionLogsin classPipelineServiceClient
-
buildURI
-