Class JdbcCrawlManager
java.lang.Object
ai.pipestream.module.pipelineprobe.pipelinecrawl.JdbcCrawlManager
Drives the JDBC source for a
RunPipelineCrawl run:
- Create the crawl definition via gRPC. The request carries the parent SQL, datasource binding, and the target database JDBC url + credentials inline — no separate REST registration step.
- Trigger the crawl. Returns the connector's
triggerId, which is thecrawl_idstamped on every dispatched PipeStream.
Both calls are plain blocking gRPC on the calling virtual thread. Same
shape as JdbcCrawlE2ETestService.createCrawlDefinitionAndTrigger.
Wiring: quarkus.grpc.clients.jdbc-connector.* +
quarkus.stork."jdbc-connector".* for the gRPC stub.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult ofsetupAndTrigger(String, String, String, JdbcSourceConfig): the connector's triggerId (also thecrawl_idon every dispatched PipeStream) and the crawlName the connector now has registered. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetupAndTrigger(String accountId, String datasourceId, String apiKey, ai.pipestream.testing.harness.v1.JdbcSourceConfig source) Create the crawl definition and start it.
-
Constructor Details
-
JdbcCrawlManager
public JdbcCrawlManager()Creates the JDBC crawl manager. Managed by CDI.
-
-
Method Details
-
setupAndTrigger
public JdbcCrawlManager.JdbcDispatch setupAndTrigger(String accountId, String datasourceId, String apiKey, ai.pipestream.testing.harness.v1.JdbcSourceConfig source) Create the crawl definition and start it. Returns the trigger UUID downstream pollers use to filter per-run progress queries.- Parameters:
accountId- the run's account id; the crawl name is derived from itdatasourceId- the datasource the crawl definition binds toapiKey- api key attached asx-api-keycall metadata on the create-definition callsource- the JDBC source config (e.g. external-db flag, max documents)- Returns:
- the
JdbcCrawlManager.JdbcDispatchcarrying the trigger id and registered crawl name
-