Package com.hpe.caf.worker.markup
Class MarkupWorker
java.lang.Object
com.hpe.caf.worker.AbstractWorker<MarkupWorkerTask,MarkupWorkerResult>
com.hpe.caf.worker.markup.MarkupWorker
- All Implemented Interfaces:
com.hpe.caf.api.worker.Worker
public class MarkupWorker
extends com.hpe.caf.worker.AbstractWorker<MarkupWorkerTask,MarkupWorkerResult>
processing the Hash map key pairs and placing the, into XML.
-
Constructor Summary
ConstructorsConstructorDescriptionMarkupWorker(MarkupWorkerTask task, com.hpe.caf.api.worker.DataStore dataStore, String outputQueue, com.hpe.caf.api.Codec codec, MarkupWorkerConfiguration config, MarkupDocumentEngine markupDocument, EmailSplitter emailSplitter, com.hpe.caf.api.worker.WorkerTaskData workerTaskData) -
Method Summary
Modifier and TypeMethodDescriptioncom.hpe.caf.api.worker.WorkerResponsedoWork()Trigger processing of the source file and determine a response.intMethods inherited from class com.hpe.caf.worker.AbstractWorker
buildExceptionStackTrace, checkIfInterrupted, createFailureResult, createFailureResult, createSuccessAndCompleteResponse, createSuccessNoOutputToQueue, createSuccessResult, createSuccessResult, createTaskCompleteResponse, createTaskSubmission, createTaskSubmission, getCodec, getGeneralFailureResult, getResultQueue, getTask, getWorkerTaskData, stackTraceToStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hpe.caf.api.worker.Worker
getPoisonMessageResult
-
Constructor Details
-
MarkupWorker
public MarkupWorker(MarkupWorkerTask task, com.hpe.caf.api.worker.DataStore dataStore, String outputQueue, com.hpe.caf.api.Codec codec, MarkupWorkerConfiguration config, MarkupDocumentEngine markupDocument, EmailSplitter emailSplitter, com.hpe.caf.api.worker.WorkerTaskData workerTaskData) throws com.hpe.caf.api.worker.InvalidTaskException - Throws:
com.hpe.caf.api.worker.InvalidTaskException
-
-
Method Details
-
getWorkerIdentifier
-
getWorkerApiVersion
public int getWorkerApiVersion() -
doWork
public com.hpe.caf.api.worker.WorkerResponse doWork() throws InterruptedException, com.hpe.caf.api.worker.TaskRejectedExceptionTrigger processing of the source file and determine a response.- Returns:
- WorkerResponse - a response from the operation.
- Throws:
InterruptedException- - if the task is interrupted.com.hpe.caf.api.worker.TaskRejectedException
-