Class BackupLogbookManager
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.common.BackupLogbookManager
-
public class BackupLogbookManager extends java.lang.Object
Class manage logbook operations logging
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DIGEST
static java.lang.String
DIGESTTYPE
static java.lang.String
ERROR_MESSAGE
static java.lang.String
FILE_NAME
static VitamLogger
LOGGER
-
Constructor Summary
Constructors Constructor Description BackupLogbookManager()
BackupLogbookManager(LogbookOperationsClientFactory logbookClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logError(GUID logbookOperationMasterId, java.lang.String eventType, java.lang.String errorsDetails)
log error (system or technical error)void
logEventSuccess(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
-
-