@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)
DirectorySynchronisationInformationStore
getActive
in interface DirectorySynchronisationInformationStore
directoryId
- directory idpublic Optional<DirectorySynchronisationRoundInformation> getLast(long directoryId)
DirectorySynchronisationInformationStore
getLast
in interface DirectorySynchronisationInformationStore
directoryId
- directory idpublic void clear(long directoryId)
DirectorySynchronisationInformationStore
clear
in interface DirectorySynchronisationInformationStore
directoryId
- directory idpublic void clear()
DirectorySynchronisationInformationStore
clear
in interface DirectorySynchronisationInformationStore
public void syncStatus(long directoryId, String statusKey, List<Serializable> parameters)
DirectorySynchronisationInformationStore
syncStatus
in interface DirectorySynchronisationInformationStore
directoryId
- directory idstatusKey
- new status i18n keyparameters
- parameters for the statusKeypublic void syncStatus(long directoryId, SynchronisationStatusKey statusKey, List<Serializable> parameters)
DirectorySynchronisationInformationStore
syncStatus
in interface DirectorySynchronisationInformationStore
directoryId
- directory idstatusKey
- new status i18n keyparameters
- paramaters for the statusKeypublic void syncStarted(long directoryId, long timestamp)
DirectorySynchronisationInformationStore
syncStarted
in interface DirectorySynchronisationInformationStore
directoryId
- directory idtimestamp
- synchronisation startpublic void syncFinished(long directoryId, long timestamp, SynchronisationStatusKey statusKey, List<Serializable> parameters)
DirectorySynchronisationInformationStore
syncFinished
in interface DirectorySynchronisationInformationStore
directoryId
- directory idtimestamp
- synchronisation endstatusKey
- ending status (should indicate failure or success)parameters
- parameters for the statusKeypublic void syncFailure(long directoryId, SynchronisationMode syncMode, String failureReason)
DirectorySynchronisationInformationStore
syncFailure
in interface DirectorySynchronisationInformationStore
directoryId
- directory idsyncMode
- synchronisation modefailureReason
- failure reasonpublic Collection<DirectorySynchronisationStatus> getStalledSynchronizations()
DirectorySynchronisationInformationStore
getStalledSynchronizations
in interface DirectorySynchronisationInformationStore
public DirectorySynchronisationInformation get(long directoryId)
Copyright © 2021 Atlassian. All rights reserved.