public class TaskExecutorToResourceManagerConnection extends RegisteredRpcConnection<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection>
log
Constructor and Description |
---|
TaskExecutorToResourceManagerConnection(org.slf4j.Logger log,
RpcService rpcService,
RetryingRegistrationConfiguration retryingRegistrationConfiguration,
String resourceManagerAddress,
ResourceManagerId resourceManagerId,
Executor executor,
RegistrationConnectionListener<TaskExecutorToResourceManagerConnection,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection> registrationListener,
TaskExecutorRegistration taskExecutorRegistration) |
Modifier and Type | Method and Description |
---|---|
protected RetryingRegistration<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection> |
generateRegistration()
This method generate a specific Registration, for example TaskExecutor Registration at the
ResourceManager.
|
protected void |
onRegistrationFailure(Throwable failure)
This method handle the Registration failure.
|
protected void |
onRegistrationRejection(TaskExecutorRegistrationRejection rejection)
This method handles the Registration rejection.
|
protected void |
onRegistrationSuccess(TaskExecutorRegistrationSuccess success)
This method handle the Registration Response.
|
close, getTargetAddress, getTargetGateway, getTargetLeaderId, isClosed, isConnected, start, toString, tryReconnect
public TaskExecutorToResourceManagerConnection(org.slf4j.Logger log, RpcService rpcService, RetryingRegistrationConfiguration retryingRegistrationConfiguration, String resourceManagerAddress, ResourceManagerId resourceManagerId, Executor executor, RegistrationConnectionListener<TaskExecutorToResourceManagerConnection,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection> registrationListener, TaskExecutorRegistration taskExecutorRegistration)
protected RetryingRegistration<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection> generateRegistration()
RegisteredRpcConnection
protected void onRegistrationSuccess(TaskExecutorRegistrationSuccess success)
RegisteredRpcConnection
protected void onRegistrationRejection(TaskExecutorRegistrationRejection rejection)
RegisteredRpcConnection
onRegistrationRejection
in class RegisteredRpcConnection<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection>
rejection
- rejection containing additional information about the rejectionprotected void onRegistrationFailure(Throwable failure)
RegisteredRpcConnection
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.