public class DirectorySynchroniserImpl extends Object implements DirectorySynchroniser
DirectorySynchroniser
.Constructor and Description |
---|
DirectorySynchroniserImpl(com.atlassian.beehive.ClusterLockService lockService,
DirectorySynchroniserHelper directorySynchroniserHelper,
InternalSynchronisationStatusManager synchronisationStatusManager,
com.atlassian.event.api.EventPublisher eventPublisher,
AuditLogContext auditLogContext,
DirectorySynchronisationEventHelper syncEventHelper) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSynchronising(long directoryId)
Returns whether the directory is currently synchronising.
|
void |
synchronise(SynchronisableDirectory remoteDirectory,
SynchronisationMode mode)
Synchronises a remote directory.
|
public DirectorySynchroniserImpl(com.atlassian.beehive.ClusterLockService lockService, DirectorySynchroniserHelper directorySynchroniserHelper, InternalSynchronisationStatusManager synchronisationStatusManager, com.atlassian.event.api.EventPublisher eventPublisher, AuditLogContext auditLogContext, DirectorySynchronisationEventHelper syncEventHelper)
@Transactional(propagation=NEVER) public void synchronise(SynchronisableDirectory remoteDirectory, SynchronisationMode mode) throws DirectoryNotFoundException, OperationFailedException
synchronise
in interface DirectorySynchroniser
remoteDirectory
- directory to synchronise.mode
- synchronisation mode.DirectoryNotFoundException
OperationFailedException
public boolean isSynchronising(long directoryId) throws DirectoryNotFoundException
DirectorySynchroniser
isSynchronising
in interface DirectorySynchroniser
directoryId
- ID of the directoryDirectoryNotFoundException
- if the directory could not be foundCopyright © 2021 Atlassian. All rights reserved.