ServiceContext¶
ServiceContext
is an abstraction of service contexts.
Contract (Subset)¶
getAdminClient¶
Admin getAdminClient()
Admin
(Apache Kafka)
Used when:
KsqlEngine
is requested to createStreamPullQueryKsqlAuthorizationValidatorFactory
is requested toisTopicAccessValidatorEnabled
KafkaClusterUtil
is requested togetKafkaClusterId
SandboxedServiceContext
is createdListTopicsExecutor
is requested toexecute
(aLIST TOPICS
statement)
getConsumerGroupClient¶
KafkaConsumerGroupClient getConsumerGroupClient()
Used when:
QueryCleanupTask
is requested torun
ScalablePushRegistry
is requested todeleteConsumerGroup
SandboxedServiceContext
is createdListSourceExecutor
is requested toqueryOffsetSummaries
getKsqlClient¶
SimpleKsqlClient getKsqlClient()
Used when:
HARouting
is requested to forwardToPushRouting
is requested to forwardToSendHeartbeatService
is requested torunOneIteration
SendLagService
is requested torunOneIteration
ListQueriesExecutor
is requested toexecute
(aLIST QUERIES
statement)ListSourceExecutor
is requested tosourceDescriptionList
TerminateQueryExecutor
is requested toexecute
(aTERMINATE QUERY
statement)
Implementations¶
DefaultServiceContext
LazyServiceContext
SandboxedServiceContext