Class MigrationExportFinishedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.migration.event.AbstractInstanceMigrationEvent
com.atlassian.bitbucket.migration.event.MigrationExportFinishedEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MigrationImportFinishedEvent
@AsynchronousPreferred
public class MigrationExportFinishedEvent
extends AbstractInstanceMigrationEvent
Event that is raised when an Data Center export has completed executing.
To determine whether the export has finished successfully, the state
should be inspected.
- Since:
- 5.13
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.migration.event.AbstractInstanceMigrationEvent
job
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMigrationExportFinishedEvent
(Object source, Job job, long errorCount, long infoCount, long warningCount) -
Method Summary
Modifier and TypeMethodDescriptionlong
int
long
long
Methods inherited from class com.atlassian.bitbucket.migration.event.AbstractInstanceMigrationEvent
getDuration, getJobId
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MigrationExportFinishedEvent
-
-
Method Details
-
getErrorCount
public long getErrorCount()- Returns:
- count of export error messages
-
getFinalState
public int getFinalState()- Returns:
- The
JobState.getId()
that the export job was in when it completed
-
getInfoCount
public long getInfoCount()- Returns:
- count of export info messages
-
getWarningCount
public long getWarningCount()- Returns:
- count of export info messages
-