Package com.atlan.model.packages
Class ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C extends ConfluentKafkaCrawler,B extends ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C,B>>
java.lang.Object
com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder<C,B>
com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder<C,B>
com.atlan.model.packages.ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C,B>
- Enclosing class:
- ConfluentKafkaCrawler
public abstract static class ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C extends ConfluentKafkaCrawler,B extends ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C,B>>
extends AbstractCrawler.AbstractCrawlerBuilder<C,B>
-
Field Summary
Fields inherited from class com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder
client, connection, localCreds
Fields inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
epoch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected B
$fillValuesFrom
(C instance) Set up the crawler to use API token-based authentication.abstract C
build()
Set up the crawler to extract directly from Kafka.Defines a regular expression to use for excluding topics when crawling.Defines the filter for topics to include when crawling.protected B
metadata()
Set all the metadata for the package (labels, annotations, etc).protected abstract B
self()
skipInternal
(boolean enabled) Whether to skip internal topics when crawling (true) or include them.toString()
Methods inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
_annotation, _annotations, _credential, _label, _labels, _name, _parameter, _parameters, _prefix, _runName, clear_annotations, clear_labels, clear_parameters
-
Constructor Details
-
ConfluentKafkaCrawlerBuilder
public ConfluentKafkaCrawlerBuilder()
-
-
Method Details
-
direct
Set up the crawler to extract directly from Kafka.- Parameters:
bootstrap
- hostname and port number (host.example.com:9092) for the Kafka bootstrap serverencrypted
- whether to use encrypted SSL connection (true), or plaintext (false)- Returns:
- the builder, set up to extract directly from Kafka
-
apiToken
Set up the crawler to use API token-based authentication.- Parameters:
apiKey
- through which to access KafkaapiSecret
- through which to access Kafka- Returns:
- the builder, set up to use API token-based authentication
-
include
Defines the filter for topics to include when crawling.- Parameters:
regex
- any topic names that match this regular expression will be included in crawling- Returns:
- the builder, set to include only those topics specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
exclude
Defines a regular expression to use for excluding topics when crawling.- Parameters:
regex
- any topic names that match this regular expression will be excluded from crawling- Returns:
- the builder, set to exclude any topics that match the provided regular expression
-
skipInternal
Whether to skip internal topics when crawling (true) or include them.- Parameters:
enabled
- if true, internal topics will be skipped when crawling- Returns:
- the builder, set to include or exclude internal topics
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadata
in classAbstractPackage.AbstractPackageBuilder<C extends ConfluentKafkaCrawler,
B extends ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAbstractCrawler.AbstractCrawlerBuilder<C extends ConfluentKafkaCrawler,
B extends ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C, B>>
-
self
- Specified by:
self
in classAbstractCrawler.AbstractCrawlerBuilder<C extends ConfluentKafkaCrawler,
B extends ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractCrawler.AbstractCrawlerBuilder<C extends ConfluentKafkaCrawler,
B extends ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractCrawler.AbstractCrawlerBuilder<C extends ConfluentKafkaCrawler,
B extends ConfluentKafkaCrawler.ConfluentKafkaCrawlerBuilder<C, B>>
-