public class BinaryHashWorkerFactory extends com.hpe.caf.worker.AbstractWorkerFactory<BinaryHashWorkerConfiguration,BinaryHashWorkerTask>
| Constructor and Description |
|---|
BinaryHashWorkerFactory(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(BinaryHashWorkerTask task)
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()
BinaryHashWorkerFactory is responsible for calling the health-check to view the status of the worker and this is displayed on
Marathon.
|
createWorker, getCodec, getConfiguration, getDataStore, getWorker, getWorkerConfiguration, verifyWorkerTask, verifyWorkerTaskAndSetResponsepublic BinaryHashWorkerFactory(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<BinaryHashWorkerConfiguration,BinaryHashWorkerTask>protected int getWorkerApiVersion()
getWorkerApiVersion in class com.hpe.caf.worker.AbstractWorkerFactory<BinaryHashWorkerConfiguration,BinaryHashWorkerTask>public com.hpe.caf.api.worker.Worker createWorker(BinaryHashWorkerTask task) throws com.hpe.caf.api.worker.InvalidTaskException
createWorker in class com.hpe.caf.worker.AbstractWorkerFactory<BinaryHashWorkerConfiguration,BinaryHashWorkerTask>task - com.hpe.caf.api.worker.InvalidTaskExceptionpublic String getInvalidTaskQueue()
public int getWorkerThreads()
public com.hpe.caf.api.HealthResult healthCheck()
Copyright © 2015–2017 EntIT Software LLC, a Micro Focus company. All rights reserved.