Package fr.gouv.vitam.worker.core.plugin
Class UpdateUnitFinalize
- java.lang.Object
-
- fr.gouv.vitam.worker.core.handler.ActionHandler
-
- fr.gouv.vitam.worker.core.plugin.UpdateUnitFinalize
-
- All Implemented Interfaces:
VitamAutoCloseable,WorkerAction,java.lang.AutoCloseable
- Direct Known Subclasses:
BulkAtomicUpdateFinalize,MassUpdateFinalize,RevertUpdateUnitFinalizePlugin
public abstract class UpdateUnitFinalize extends ActionHandler
Generate the report :
- compute data from batch-report
- store the report file
- clean the batch-report data
-
-
Constructor Summary
Constructors Modifier Constructor Description UpdateUnitFinalize()protectedUpdateUnitFinalize(BatchReportClientFactory batchReportClientFactory, LogbookOperationsClientFactory logbookOperationsClientFactory, StorageClientFactory storageClientFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ItemStatusexecute(WorkerParameters param, HandlerIO handler)Execute an actionprotected abstract java.lang.StringgetPluginId()protected ReportSummarygetReport(LogbookOperation logbook)protected abstract ReportTypegetReportType()protected java.util.Map<StatusCode,java.lang.Integer>getStatusStatistic(LogbookEvent logbookEvent)protected abstract java.lang.StringgetUpdateActionKey()protected abstract java.lang.StringgetUpdateType()-
Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, updateDetailItemStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.gouv.vitam.worker.core.api.WorkerAction
checkMandatoryIOParameter, executeList
-
-
-
-
Constructor Detail
-
UpdateUnitFinalize
public UpdateUnitFinalize()
-
UpdateUnitFinalize
protected UpdateUnitFinalize(BatchReportClientFactory batchReportClientFactory, LogbookOperationsClientFactory logbookOperationsClientFactory, StorageClientFactory storageClientFactory)
-
-
Method Detail
-
execute
public ItemStatus execute(WorkerParameters param, HandlerIO handler) throws ProcessingException
Description copied from interface:WorkerActionExecute an action- Parameters:
param-WorkerParametershandler- the handlerIo- Returns:
- CompositeItemStatus:response contains a list of functional message and status code
- Throws:
ProcessingException- if an error is encountered when executing the action
-
getReport
protected ReportSummary getReport(LogbookOperation logbook)
-
getStatusStatistic
protected java.util.Map<StatusCode,java.lang.Integer> getStatusStatistic(LogbookEvent logbookEvent)
-
getPluginId
protected abstract java.lang.String getPluginId()
-
getUpdateType
protected abstract java.lang.String getUpdateType()
-
getUpdateActionKey
protected abstract java.lang.String getUpdateActionKey()
-
getReportType
protected abstract ReportType getReportType()
-
-