Class WorkerTaskResult
- java.lang.Object
-
- fr.gouv.vitam.processing.distributor.core.WorkerTaskResult
-
public class WorkerTaskResult extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,AccessRequestContext>
getAsyncResources()
ItemStatus
getItemStatus()
WorkerTask
getWorkerTask()
boolean
isPausedOrCanceled()
boolean
isProcessed()
static WorkerTaskResult
ofFatalTask(WorkerTask workerTask, ItemStatus itemStatus)
static WorkerTaskResult
ofPausedOrCanceledTask(WorkerTask workerTask)
static WorkerTaskResult
ofProceededTask(WorkerTask workerTask, ItemStatus itemStatus)
static WorkerTaskResult
ofTaskRequiringAsyncResourceAvailability(WorkerTask workerTask, java.util.Map<java.lang.String,AccessRequestContext> asyncResources)
-
-
-
Method Detail
-
ofPausedOrCanceledTask
public static WorkerTaskResult ofPausedOrCanceledTask(WorkerTask workerTask)
-
ofFatalTask
public static WorkerTaskResult ofFatalTask(WorkerTask workerTask, ItemStatus itemStatus)
-
ofProceededTask
public static WorkerTaskResult ofProceededTask(WorkerTask workerTask, ItemStatus itemStatus)
-
ofTaskRequiringAsyncResourceAvailability
public static WorkerTaskResult ofTaskRequiringAsyncResourceAvailability(WorkerTask workerTask, java.util.Map<java.lang.String,AccessRequestContext> asyncResources)
-
getItemStatus
public ItemStatus getItemStatus()
-
getWorkerTask
public WorkerTask getWorkerTask()
-
isProcessed
public boolean isProcessed()
-
isPausedOrCanceled
public boolean isPausedOrCanceled()
-
getAsyncResources
public java.util.Map<java.lang.String,AccessRequestContext> getAsyncResources()
-
-