@Deprecated public class DirectorySynchronisationInformationStoreImpl extends Object implements DirectorySynchronisationInformationStore
| Constructor and Description |
|---|
DirectorySynchronisationInformationStoreImpl()
Deprecated.
|
DirectorySynchronisationInformationStoreImpl(ConcurrentMap<Long,DirectorySynchronisationInformation> syncStatus)
Deprecated.
Construct a
DirectorySynchronisationInformationStoreImpl which is backed by a concurrent map. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Clears directory synchronisation information of all directories.
|
void |
clear(long directoryId)
Deprecated.
Clears directory synchronisation information for the given directory.
|
DirectorySynchronisationInformation |
get(long directoryId)
Deprecated.
|
DirectorySynchronisationRoundInformation |
getActive(long directoryId)
Deprecated.
Provides information about the status of the active synchronisation for the directory.
|
Optional<DirectorySynchronisationRoundInformation> |
getLast(long directoryId)
Deprecated.
Provides information about the last completed (either succeeded or failed) synchronisation.
|
Collection<DirectorySynchronisationStatus> |
getStalledSynchronizations()
Deprecated.
Attempts to find synchronizations that have been marked as in-progress, but don't seem to be running anymore.
|
void |
syncFailure(long directoryId,
SynchronisationMode syncMode,
String failureReason)
Deprecated.
Updates active directory synchronisation status with a failure reason.
|
void |
syncFinished(long directoryId,
long timestamp,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
Deprecated.
Finishes synchronisation status, marking it as last status information and clearing active synchronisation status.
|
void |
syncStarted(long directoryId,
long timestamp)
Deprecated.
Starts the synchronisation, creating new directory synchronisation information.
|
void |
syncStatus(long directoryId,
String statusKey,
List<Serializable> parameters)
Deprecated.
Updates active directory synchronisation status
|
void |
syncStatus(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
Deprecated.
Updates active directory synchronisation status.
|
public DirectorySynchronisationInformationStoreImpl()
public DirectorySynchronisationInformationStoreImpl(ConcurrentMap<Long,DirectorySynchronisationInformation> syncStatus)
DirectorySynchronisationInformationStoreImpl which is backed by a concurrent map.
This constructor can be used to achieve cluster safety in cluster-capable applications by providing a cluster-aware implementation
public DirectorySynchronisationRoundInformation getActive(long directoryId)
DirectorySynchronisationInformationStoregetActive in interface DirectorySynchronisationInformationStoredirectoryId - directory idpublic Optional<DirectorySynchronisationRoundInformation> getLast(long directoryId)
DirectorySynchronisationInformationStoregetLast in interface DirectorySynchronisationInformationStoredirectoryId - directory idpublic void clear(long directoryId)
DirectorySynchronisationInformationStoreclear in interface DirectorySynchronisationInformationStoredirectoryId - directory idpublic void clear()
DirectorySynchronisationInformationStoreclear in interface DirectorySynchronisationInformationStorepublic void syncStatus(long directoryId,
String statusKey,
List<Serializable> parameters)
DirectorySynchronisationInformationStoresyncStatus in interface DirectorySynchronisationInformationStoredirectoryId - directory idstatusKey - new status i18n keyparameters - parameters for the statusKeypublic void syncStatus(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
DirectorySynchronisationInformationStoresyncStatus in interface DirectorySynchronisationInformationStoredirectoryId - directory idstatusKey - new status i18n keyparameters - paramaters for the statusKeypublic void syncStarted(long directoryId,
long timestamp)
DirectorySynchronisationInformationStoresyncStarted in interface DirectorySynchronisationInformationStoredirectoryId - directory idtimestamp - synchronisation startpublic void syncFinished(long directoryId,
long timestamp,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
DirectorySynchronisationInformationStoresyncFinished in interface DirectorySynchronisationInformationStoredirectoryId - directory idtimestamp - synchronisation endstatusKey - ending status (should indicate failure or success)parameters - parameters for the statusKeypublic void syncFailure(long directoryId,
SynchronisationMode syncMode,
String failureReason)
DirectorySynchronisationInformationStoresyncFailure in interface DirectorySynchronisationInformationStoredirectoryId - directory idsyncMode - synchronisation modefailureReason - failure reasonpublic Collection<DirectorySynchronisationStatus> getStalledSynchronizations()
DirectorySynchronisationInformationStoregetStalledSynchronizations in interface DirectorySynchronisationInformationStorepublic DirectorySynchronisationInformation get(long directoryId)
Copyright © 2022 Atlassian. All rights reserved.