Interface SynchronizationInformationCollector

  • All Known Subinterfaces:
    StatisticsCollector

    public interface SynchronizationInformationCollector
    Collects synchronization statistics related e.g. to the processing within given task.
    • Method Detail

      • onSyncItemProcessingStart

        void onSyncItemProcessingStart​(@NotNull
                                       @NotNull String processingIdentifier,
                                       @Nullable
                                       @Nullable SynchronizationSituationType situationBefore)
        Support method for recording sync operation in the new way. 1. Informs the collector that synchronization-sensitive item is going to be processed. 2. Establishes a filter that rejects any events having processing identifier different from this one.
      • onSynchronizationStart

        void onSynchronizationStart​(@Nullable
                                    @Nullable String processingIdentifier,
                                    @Nullable
                                    @Nullable String shadowOid,
                                    @Nullable
                                    @Nullable SynchronizationSituationType situation)
        Called when a situation was determined right before a synchronization takes place. We assume that we have a shadow with OID by that time. (If the OID is null we ignore further synchronization situation updates.)
      • onSynchronizationSituationChange

        void onSynchronizationSituationChange​(@Nullable
                                              @Nullable String processingIdentifier,
                                              @Nullable
                                              @Nullable String shadowOid,
                                              @Nullable
                                              @Nullable SynchronizationSituationType situation)
        Informs the task that sync situation has changed for given shadow OID. There could be more such changes. But we are interested in the last one. If the shadow OID is null, we ignore such updates.
      • onSyncItemProcessingEnd

        void onSyncItemProcessingEnd​(@NotNull
                                     @NotNull String processingIdentifier,
                                     @NotNull
                                     @NotNull QualifiedItemProcessingOutcomeType outcome)
        Records the synchronization-related information into the statistics. Stops the watching.