Class OnRestoreEventsSender
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.events.OnRestoreEventsSender
-
public class OnRestoreEventsSender extends Object
Sends events related to the restore process (like start/finish etc).- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description OnRestoreEventsSender(com.atlassian.event.api.EventPublisher eventPublisher, UserAccessor userAccessor, RestoreDao restoreDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendFailureEvent(BackupRestoreJob job, String errorMessage)
void
sendFinishEvents(BackupRestoreJob job, BackupRestoreSettings settings, Collection<String> spaceKeys, Properties properties)
void
sendInProgressEvent(JobScope jobScope, long processedObjects, long totalNumberOfObjects, boolean databaseLocked, boolean isDisplayJohnson)
void
sendLockDatabaseEvent()
void
sendStartEvents(BackupRestoreJob job, BackupRestoreSettings settings, Collection<String> spaceKeys, Properties properties)
void
sendSuccessfulEvent(BackupRestoreJob job)
void
sendUnlockDatabaseEvent()
-
-
-
Constructor Detail
-
OnRestoreEventsSender
public OnRestoreEventsSender(com.atlassian.event.api.EventPublisher eventPublisher, UserAccessor userAccessor, RestoreDao restoreDao)
-
-
Method Detail
-
sendStartEvents
public void sendStartEvents(BackupRestoreJob job, BackupRestoreSettings settings, Collection<String> spaceKeys, Properties properties) throws BackupRestoreException
- Throws:
BackupRestoreException
-
sendFinishEvents
public void sendFinishEvents(BackupRestoreJob job, BackupRestoreSettings settings, Collection<String> spaceKeys, Properties properties) throws BackupRestoreException
- Throws:
BackupRestoreException
-
sendInProgressEvent
public void sendInProgressEvent(JobScope jobScope, long processedObjects, long totalNumberOfObjects, boolean databaseLocked, boolean isDisplayJohnson)
-
sendLockDatabaseEvent
public void sendLockDatabaseEvent()
-
sendUnlockDatabaseEvent
public void sendUnlockDatabaseEvent()
-
sendSuccessfulEvent
public void sendSuccessfulEvent(BackupRestoreJob job)
-
sendFailureEvent
public void sendFailureEvent(BackupRestoreJob job, String errorMessage)
-
-