public interface ResourceEventHandler<WorkerType extends ResourceIDRetrievable>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onError(Throwable exception)
Notifies that an error has occurred that the process cannot proceed.
|
void |
onPreviousAttemptWorkersRecovered(Collection<WorkerType> recoveredWorkers)
Notifies that workers of previous attempt have been recovered from the external resource
manager.
|
void |
onWorkerTerminated(ResourceID resourceId,
String diagnostics)
Notifies that the worker has been terminated.
|
void onPreviousAttemptWorkersRecovered(Collection<WorkerType> recoveredWorkers)
recoveredWorkers - Collection of worker nodes, in the deployment specific type.void onWorkerTerminated(ResourceID resourceId, String diagnostics)
resourceId - Identifier of the terminated worker.diagnostics - Diagnostic message about the worker termination.void onError(Throwable exception)
exception - Exception that describes the error.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.