public abstract class

AbstractInstanceMigrationEvent

extends ApplicationEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.migration.event.AbstractInstanceMigrationEvent
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Abstract superclass for Data Center Migration events.

Summary

Fields
protected final Job job
[Expand]
Inherited Fields
From class java.util.EventObject
Protected Constructors
AbstractInstanceMigrationEvent(Object source, Job job)
Public Methods
long getDuration()
long getJobId()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Fields

protected final Job job

Protected Constructors

protected AbstractInstanceMigrationEvent (Object source, Job job)

Public Methods

public long getDuration ()

Returns
  • Processing duration of the job since completion if isTerminated() returns true otherwise time elapsed since the job started

public long getJobId ()

Returns
  • return the Job that this event refers to