Interface IDerivedDataOrchestrator


  • public interface IDerivedDataOrchestrator
    Derived data orchestrator is the component responsible for tracking and coordinating derived data processing operations. Since the derived data processing might conflict with other operations in the application, which the derived data mechanism is not supposed to be aware of, the interface is implemented in the point where the derived data mechanism is integrated.
    • Method Detail

      • beginProcessing

        boolean beginProcessing​(DerivedDataSegmentBucket bucket)
        Begins processing of the specified bucket. If the processing is allowed the method returns true, otherwise returns false and the request is placed in the queue. When it is possible to begin the processing the notification is sent via the orchestrator listener.
        Parameters:
        bucket - The bucket. May not be null.
        Returns:
        true if the processing is allowed, false otherwise.
      • endProcessing

        void endProcessing​(DerivedDataSegmentBucket bucket,
                           boolean interrupted)
        Ends processing of the specified bucket.
        Parameters:
        bucket - The bucket. May not be null.
        interrupted - The boolean flag indicating whether the processing is interrupted or not.
      • cancelProcessing

        void cancelProcessing​(DerivedDataSegmentBucket bucket)
        Cancels processing of the specified bucket.
        Parameters:
        bucket - The bucket. May not be null.
      • isSynchronizationActive

        boolean isSynchronizationActive()
        Checks if the resource synchronization process is active at the moment.
        Returns:
        true if the resource synchronization process is active, false otherwise.
      • close

        void close()
        Closes the orchestrator.