Class MeshMigrationFinishedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.migration.event.AbstractInstanceMigrationEvent
com.atlassian.bitbucket.migration.event.MeshMigrationFinishedEvent
- All Implemented Interfaces:
Serializable
@AsynchronousPreferred
public class MeshMigrationFinishedEvent
extends AbstractInstanceMigrationEvent
Event that is raised when migrating repositories from Bitbucket DC to Mesh has completed executing.
To determine whether the migration has finished successfully, the state
should be inspected.
- Since:
- 8.0
- 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
ConstructorDescriptionMeshMigrationFinishedEvent
(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
-
MeshMigrationFinishedEvent
-
-
Method Details
-
getErrorCount
public long getErrorCount()- Returns:
- count of migration error messages
-
getFinalState
public int getFinalState()- Returns:
- The
JobState.getId()
that the migration job was in when it completed
-
getInfoCount
public long getInfoCount()- Returns:
- count of migration info messages
-
getWarningCount
public long getWarningCount()- Returns:
- count of migration info messages
-