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
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods 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()
returnstrue
otherwise time elapsed since the job started
-
getJobId
public long getJobId()- Returns:
- return the
Job
that this event refers to
-