public class MarkupWorkerFactory extends com.hpe.caf.worker.AbstractWorkerFactory<MarkupWorkerConfiguration,MarkupWorkerTask>
| Constructor and Description |
|---|
MarkupWorkerFactory(com.hpe.caf.api.ConfigurationSource configSource,
com.hpe.caf.api.worker.DataStore store,
com.hpe.caf.api.Codec codec) |
| Modifier and Type | Method and Description |
|---|---|
com.hpe.caf.api.worker.Worker |
createWorker(MarkupWorkerTask task,
com.hpe.caf.api.worker.WorkerTaskData workerTaskData)
Create a worker given a task, using DataStore, ConfiguratonSource and Codec passed in the constructor.
|
String |
getInvalidTaskQueue() |
protected int |
getWorkerApiVersion() |
protected String |
getWorkerName() |
int |
getWorkerThreads() |
com.hpe.caf.api.HealthResult |
healthCheck()
MarkupWorkerFactory is responsible for calling the health-check to view the status of the worker and this is displayed on Marathon.
|
getCodec, getConfiguration, getDataStore, getWorker, getWorkerConfiguration, verifyWorkerTask, verifyWorkerTaskAndSetResponsepublic MarkupWorkerFactory(com.hpe.caf.api.ConfigurationSource configSource,
com.hpe.caf.api.worker.DataStore store,
com.hpe.caf.api.Codec codec)
throws com.hpe.caf.api.worker.WorkerException
com.hpe.caf.api.worker.WorkerExceptionprotected String getWorkerName()
getWorkerName in class com.hpe.caf.worker.AbstractWorkerFactory<MarkupWorkerConfiguration,MarkupWorkerTask>protected int getWorkerApiVersion()
getWorkerApiVersion in class com.hpe.caf.worker.AbstractWorkerFactory<MarkupWorkerConfiguration,MarkupWorkerTask>public com.hpe.caf.api.worker.Worker createWorker(MarkupWorkerTask task, com.hpe.caf.api.worker.WorkerTaskData workerTaskData) throws com.hpe.caf.api.worker.InvalidTaskException
createWorker in class com.hpe.caf.worker.AbstractWorkerFactory<MarkupWorkerConfiguration,MarkupWorkerTask>task - workerTaskData - com.hpe.caf.api.worker.InvalidTaskExceptionpublic String getInvalidTaskQueue()
public int getWorkerThreads()
public com.hpe.caf.api.HealthResult healthCheck()
Copyright © 2017–2023 EntIT Software LLC, a Micro Focus company. All rights reserved.