Class AbstractRepositoryMirrorEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.mirror.AbstractRepositoryMirrorEvent
- All Implemented Interfaces:
MirrorEvent
,RepositoryMirrorEvent
,Serializable
- Direct Known Subclasses:
RepositoryMirrorSynchronizationFailedEvent
,RepositoryMirrorSynchronizedEvent
public class AbstractRepositoryMirrorEvent
extends ApplicationEvent
implements RepositoryMirrorEvent
Base class for
Repository
events that have been raised on a mirror.
This class does not extend RepositoryEvent
because events derived from this class relate to
mirrored repositories while the RepositoryEvent
hierarchy relates to local repositories.
- Since:
- 5.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
AbstractRepositoryMirrorEvent.Builder<B extends AbstractRepositoryMirrorEvent.Builder,
T extends AbstractRepositoryMirrorEvent> -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AbstractRepositoryMirrorEvent
-
-
Method Details
-
getMirrorServerId
- Specified by:
getMirrorServerId
in interfaceMirrorEvent
- Returns:
- the ID of the server where this event originated
-
getMirrorServerName
- Specified by:
getMirrorServerName
in interfaceMirrorEvent
- Returns:
- the name of the server where this event is originated
-
getRepository
- Specified by:
getRepository
in interfaceRepositoryMirrorEvent
- Returns:
- the local
Repository
this event is concerned with
-