Class BackupLogbookManager
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.core.backup.BackupLogbookManager
-
public class BackupLogbookManager extends java.lang.ObjectClass manage logbook operations logging
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDIGESTstatic java.lang.StringDIGESTTYPEstatic java.lang.StringERROR_MESSAGEstatic java.lang.StringFILE_NAMEstatic VitamLoggerLOGGER
-
Constructor Summary
Constructors Constructor Description BackupLogbookManager()BackupLogbookManager(LogbookOperationsClientFactory logbookClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogError(GUID logbookOperationMasterId, java.lang.String eventType, java.lang.String errorsDetails)log error (system or technical error)voidlogEventSuccess(GUID logbookOperationMasterId, java.lang.String eventType, java.lang.String digestStr, java.lang.String fileName, java.lang.String objectIdentifier)log end success process
-
-
-
Field Detail
-
LOGGER
public static final VitamLogger LOGGER
-
ERROR_MESSAGE
public static final java.lang.String ERROR_MESSAGE
- See Also:
- Constant Field Values
-
FILE_NAME
public static final java.lang.String FILE_NAME
- See Also:
- Constant Field Values
-
DIGEST
public static final java.lang.String DIGEST
- See Also:
- Constant Field Values
-
DIGESTTYPE
public static final java.lang.String DIGESTTYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BackupLogbookManager
public BackupLogbookManager()
-
BackupLogbookManager
public BackupLogbookManager(LogbookOperationsClientFactory logbookClientFactory)
-
-
Method Detail
-
logEventSuccess
public void logEventSuccess(GUID logbookOperationMasterId, java.lang.String eventType, java.lang.String digestStr, java.lang.String fileName, java.lang.String objectIdentifier) throws VitamException
log end success process- Parameters:
eventType- the event type to be logged- Throws:
VitamException- thrown if the logbook could not be updated
-
logError
public void logError(GUID logbookOperationMasterId, java.lang.String eventType, java.lang.String errorsDetails) throws VitamException
log error (system or technical error)- Parameters:
logbookOperationMasterId-eventType- eventTypeerrorsDetails- the detail error- Throws:
VitamException
-
-