public class WorkerServiceWithClassLoader extends Object implements WorkerService
| Constructor and Description |
|---|
WorkerServiceWithClassLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFunctionsStats(org.apache.pulsar.common.util.SimpleTextOutputStream out)
Generate functions stats.
|
Functions<? extends WorkerService> |
getFunctions()
Get the functions service.
|
FunctionsV2<? extends WorkerService> |
getFunctionsV2()
Get the functions service (v2).
|
Sinks<? extends WorkerService> |
getSinks()
Get the sinks service.
|
Sources<? extends WorkerService> |
getSources()
Get the sources service.
|
WorkerConfig |
getWorkerConfig()
Return the worker config.
|
Workers<? extends WorkerService> |
getWorkers()
Get the worker service.
|
void |
initAsStandalone(WorkerConfig workerConfig)
Initialize the worker API service using the provided config.
|
void |
initInBroker(ServiceConfiguration brokerConfig,
WorkerConfig workerConfig,
PulsarResources pulsarResources,
ConfigurationCacheService configurationCacheService,
org.apache.pulsar.common.conf.InternalConfigurationData internalConf)
Initialize the worker service in broker.
|
boolean |
isInitialized()
Check if the worker service is initialized or not.
|
void |
start(AuthenticationService authenticationService,
AuthorizationService authorizationService,
ErrorNotifier errorNotifier)
Start the worker API service.
|
void |
stop()
Stop the worker API service.
|
public WorkerConfig getWorkerConfig()
WorkerServicegetWorkerConfig in interface WorkerServicepublic void initAsStandalone(WorkerConfig workerConfig) throws Exception
WorkerServiceinitAsStandalone in interface WorkerServiceworkerConfig - the worker configException - when fail to initialize the worker API service.public void initInBroker(ServiceConfiguration brokerConfig, WorkerConfig workerConfig, PulsarResources pulsarResources, ConfigurationCacheService configurationCacheService, org.apache.pulsar.common.conf.InternalConfigurationData internalConf) throws Exception
WorkerServiceinitInBroker in interface WorkerServicebrokerConfig - broker configworkerConfig - worker configconfigurationCacheService - configuration cacheinternalConf - pulsar internal configuration dataException - when failed to initialize the worker service in broker.public void start(AuthenticationService authenticationService, AuthorizationService authorizationService, ErrorNotifier errorNotifier) throws Exception
WorkerServicestart in interface WorkerServiceauthenticationService - the authentication service.authorizationService - the authorization service.errorNotifier - error notifier.Exception - when fail to start the worker API service.public void stop()
WorkerServicestop in interface WorkerServicepublic boolean isInitialized()
WorkerServiceisInitialized in interface WorkerServicepublic Functions<? extends WorkerService> getFunctions()
WorkerServicegetFunctions in interface WorkerServicepublic FunctionsV2<? extends WorkerService> getFunctionsV2()
WorkerServiceThis is a legacy API service for supporting v2.
getFunctionsV2 in interface WorkerServicepublic Sinks<? extends WorkerService> getSinks()
WorkerServicegetSinks in interface WorkerServicepublic Sources<? extends WorkerService> getSources()
WorkerServicegetSources in interface WorkerServicepublic Workers<? extends WorkerService> getWorkers()
WorkerServicegetWorkers in interface WorkerServicepublic void generateFunctionsStats(org.apache.pulsar.common.util.SimpleTextOutputStream out)
WorkerServicegenerateFunctionsStats in interface WorkerServiceout - output streamCopyright © 2017–2021 Apache Software Foundation. All rights reserved.