@AsynchronousPreferred public class

MaintenanceStartedEvent

extends MaintenanceEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.maintenance.MaintenanceEvent
         ↳ com.atlassian.bitbucket.event.maintenance.MaintenanceStartedEvent

Class Overview

Fired when maintenance has begun.

On receiving this event plugins must avoid running any operations that may use database connections or alter the product's home or shared home until maintenance has ended.

Operations running when the event is fired should be terminated at the earliest opportunity. Scheduled operations (that are not scheduled through Atlassian APIs) should be disabled until maintenance is complete.

Failure to observe this may result in used database connections becoming invalidated, may prevent the product from starting its maintenance task or in the worst case may make the maintenance tasks (such as backup or database migration) complete unreliable.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
MaintenanceStartedEvent(Object source)
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public MaintenanceStartedEvent (Object source)