public class BinaryHashWorker extends com.hpe.caf.worker.AbstractWorker<BinaryHashWorkerTask,BinaryHashWorkerResult>
| Constructor and Description |
|---|
BinaryHashWorker(BinaryHashWorkerTask task,
com.hpe.caf.api.worker.DataStore dataStore,
String outputQueue,
com.hpe.caf.api.Codec codec,
long resultSizeThreshold) |
| Modifier and Type | Method and Description |
|---|---|
com.hpe.caf.api.worker.WorkerResponse |
doWork()
Trigger processing of the source file and determine a response.
|
int |
getWorkerApiVersion() |
String |
getWorkerIdentifier() |
buildExceptionStackTrace, checkIfInterrupted, createFailureResult, createFailureResult, createSuccessNoOutputToQueue, createSuccessResult, createSuccessResult, createTaskSubmission, createTaskSubmission, getCodec, getGeneralFailureResult, getResultQueue, getTask, stackTraceToStringpublic BinaryHashWorker(BinaryHashWorkerTask task, com.hpe.caf.api.worker.DataStore dataStore, String outputQueue, com.hpe.caf.api.Codec codec, long resultSizeThreshold) throws com.hpe.caf.api.worker.InvalidTaskException
com.hpe.caf.api.worker.InvalidTaskExceptionpublic String getWorkerIdentifier()
public int getWorkerApiVersion()
public com.hpe.caf.api.worker.WorkerResponse doWork()
throws InterruptedException,
com.hpe.caf.api.worker.TaskRejectedException
InterruptedException - - if the task is interrupted.com.hpe.caf.api.worker.TaskRejectedExceptionCopyright © 2015–2017 EntIT Software LLC, a Micro Focus company. All rights reserved.