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

    Constructors
    Constructor
    Description
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.hpe.caf.api.worker.WorkerResponse
    Trigger processing of the source file and determine a response.
    int
     
     

    Methods inherited from class com.hpe.caf.worker.AbstractWorker

    buildExceptionStackTrace, checkIfInterrupted, createFailureResult, createFailureResult, createSuccessAndCompleteResponse, createSuccessNoOutputToQueue, createSuccessResult, createSuccessResult, createTaskCompleteResponse, createTaskSubmission, createTaskSubmission, getCodec, getGeneralFailureResult, getResultQueue, getTask, getWorkerTaskData, stackTraceToString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public String getWorkerIdentifier()
    • getWorkerApiVersion

      public int getWorkerApiVersion()
    • doWork

      public com.hpe.caf.api.worker.WorkerResponse doWork() throws InterruptedException, com.hpe.caf.api.worker.TaskRejectedException
      Trigger 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