public class MicroserviceWorker
extends co.cask.cdap.api.worker.AbstractWorker
Worker within CDAP.| Constructor and Description |
|---|
MicroserviceWorker(String pluginId,
MicroserviceDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
void |
initialize(co.cask.cdap.api.worker.WorkerContext context) |
void |
run()
When an object implementing interface
Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
void |
stop()
Stopping microservice.
|
configure, destroy, getConfigurer, getContext, setDescription, setInstances, setName, setProperties, setResourcesusePlugin, usePlugin, usePluginClass, usePluginClasspublic MicroserviceWorker(String pluginId, MicroserviceDefinition definition)
protected void configure()
configure in class co.cask.cdap.api.worker.AbstractWorkerpublic void initialize(co.cask.cdap.api.worker.WorkerContext context)
throws Exception
initialize in interface co.cask.cdap.api.ProgramLifecycle<co.cask.cdap.api.worker.WorkerContext>initialize in interface co.cask.cdap.api.worker.Workerinitialize in class co.cask.cdap.api.worker.AbstractWorkerExceptionpublic void run()
Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread.
The general contract of the method run is that it may
take any action whatsoever.
Thread.run()public void stop()
stop in interface co.cask.cdap.api.worker.Workerstop in class co.cask.cdap.api.worker.AbstractWorkerCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.