public class DocumentWorkerAdapter extends Object implements com.hpe.caf.api.worker.WorkerFactory
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationImpl |
application
This object stores the global data that was initially passed to the WorkerFactoryProvider when it was called.
|
| Constructor and Description |
|---|
DocumentWorkerAdapter(ApplicationImpl application,
DocumentWorker documentWorker)
Constructs the DocumentWorkerAdapter object, which adapts the DocumentWorker interface so that objects which implement it can be
used with the Worker Framework.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInvalidTaskQueue() |
com.hpe.caf.api.worker.Worker |
getWorker(com.hpe.caf.api.worker.WorkerTaskData workerTask) |
com.hpe.caf.api.worker.WorkerConfiguration |
getWorkerConfiguration() |
int |
getWorkerThreads() |
com.hpe.caf.api.HealthResult |
healthCheck() |
void |
shutdown() |
protected final ApplicationImpl application
public DocumentWorkerAdapter(ApplicationImpl application, DocumentWorker documentWorker)
application - the global data for the workerdocumentWorker - the actual implementation of the workerpublic com.hpe.caf.api.HealthResult healthCheck()
healthCheck in interface com.hpe.caf.api.HealthReporterpublic com.hpe.caf.api.worker.Worker getWorker(com.hpe.caf.api.worker.WorkerTaskData workerTask)
throws com.hpe.caf.api.worker.TaskRejectedException,
com.hpe.caf.api.worker.InvalidTaskException
getWorker in interface com.hpe.caf.api.worker.WorkerFactorycom.hpe.caf.api.worker.TaskRejectedExceptioncom.hpe.caf.api.worker.InvalidTaskException@Nonnull public com.hpe.caf.api.worker.WorkerConfiguration getWorkerConfiguration()
getWorkerConfiguration in interface com.hpe.caf.api.worker.WorkerFactorypublic String getInvalidTaskQueue()
getInvalidTaskQueue in interface com.hpe.caf.api.worker.WorkerFactorypublic int getWorkerThreads()
getWorkerThreads in interface com.hpe.caf.api.worker.WorkerFactorypublic void shutdown()
shutdown in interface com.hpe.caf.api.worker.WorkerFactoryCopyright © 2016–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.