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

public abstract class AbstractInstanceMigrationEvent extends ApplicationEvent
Abstract superclass for Data Center Migration events.
Since:
5.13
See Also:
  • Field Details

    • job

      protected final Job job
  • Constructor Details

    • AbstractInstanceMigrationEvent

      protected AbstractInstanceMigrationEvent(@Nonnull Object source, @Nonnull Job job)
  • Method Details

    • getDuration

      public long getDuration()
      Returns:
      Processing duration of the job since completion if JobState.isTerminated() returns true otherwise time elapsed since the job started
    • getJobId

      public long getJobId()
      Returns:
      return the Job that this event refers to