Class AbstractInstanceMigrationEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.migration.event.AbstractInstanceMigrationEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MeshMigrationFinishedEvent,MeshMigrationStartedEvent,MigrationExportFinishedEvent,MigrationExportStartedEvent,MigrationImportStartedEvent
Abstract superclass for Data Center Migration events.
- Since:
- 5.13
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUserMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
job
-
-
Constructor Details
-
AbstractInstanceMigrationEvent
-
-
Method Details
-
getDuration
public long getDuration()- Returns:
- Processing duration of the job since completion if
JobState.isTerminated()returnstrueotherwise time elapsed since the job started
-
getJobId
public long getJobId()- Returns:
- return the
Jobthat this event refers to
-