public class PulsarWorkerService extends Object implements WorkerService
| Modifier and Type | Class and Description |
|---|---|
static interface |
PulsarWorkerService.PulsarClientCreator |
| Constructor and Description |
|---|
PulsarWorkerService() |
PulsarWorkerService(PulsarWorkerService.PulsarClientCreator clientCreator) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFunctionsStats(org.apache.pulsar.common.util.SimpleTextOutputStream out)
Generate functions stats.
|
void |
init(WorkerConfig workerConfig,
URI dlogUri,
boolean runAsStandalone) |
void |
initAsStandalone(WorkerConfig workerConfig)
Initialize the worker API service using the provided config.
|
void |
initInBroker(ServiceConfiguration brokerConfig,
WorkerConfig workerConfig,
PulsarResources pulsarResources,
org.apache.pulsar.common.conf.InternalConfigurationData internalConf)
Initialize the worker service in broker.
|
void |
start(AuthenticationService authenticationService,
AuthorizationService authorizationService,
ErrorNotifier errorNotifier)
Start the worker API service.
|
void |
stop()
Stop the worker API service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctions, getFunctionsV2, getSinks, getSources, getWorkerConfig, getWorkers, isInitializedpublic PulsarWorkerService()
public PulsarWorkerService(PulsarWorkerService.PulsarClientCreator clientCreator)
public void generateFunctionsStats(org.apache.pulsar.common.util.SimpleTextOutputStream out)
WorkerServicegenerateFunctionsStats in interface WorkerServiceout - output streampublic void init(WorkerConfig workerConfig, URI dlogUri, boolean runAsStandalone)
public 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, org.apache.pulsar.common.conf.InternalConfigurationData internalConf) throws Exception
WorkerServiceinitInBroker in interface WorkerServicebrokerConfig - broker configworkerConfig - worker configpulsarResources - configuration metadata-storeinternalConf - 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 WorkerServiceCopyright © 2017–2022 Apache Software Foundation. All rights reserved.