Interface ResourceEventHandler<WorkerType extends ResourceIDRetrievable>

  • All Known Implementing Classes:
    ActiveResourceManager

    public interface ResourceEventHandler<WorkerType extends ResourceIDRetrievable>
    Callback interfaces for handling resource events from external resource managers.
    • Method Detail

      • onPreviousAttemptWorkersRecovered

        void onPreviousAttemptWorkersRecovered​(Collection<WorkerType> recoveredWorkers)
        Notifies that workers of previous attempt have been recovered from the external resource manager.
        Parameters:
        recoveredWorkers - Collection of worker nodes, in the deployment specific type.
      • onError

        void onError​(Throwable exception)
        Notifies that an error has occurred that the process cannot proceed.
        Parameters:
        exception - Exception that describes the error.