Class OfferDiagService
java.lang.Object
fr.gouv.vitam.storage.offers.core.diag.OfferDiagService
-
Constructor Summary
ConstructorsConstructorDescriptionOfferDiagService(ContentAddressableStorage contentAddressableStorage, DefaultOfferService offerService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the status of the last diagnostic process.booleanCheck if a diagnostic process is currently running.booleanstartOfferDiag(String container) Start a diagnostic process for the given container and tenant.
-
Constructor Details
-
OfferDiagService
public OfferDiagService(ContentAddressableStorage contentAddressableStorage, DefaultOfferService offerService) Constructor.
-
-
Method Details
-
startOfferDiag
Start a diagnostic process for the given container and tenant.- Parameters:
container- the container name- Returns:
- true if the process was started, false if another process is already running
-
isRunning
public boolean isRunning()Check if a diagnostic process is currently running.- Returns:
- true if a process is running, false otherwise
-
getLastOfferDiagStatus
Get the status of the last diagnostic process.- Returns:
- the status, or null if no process has been run
-