Class TaskExecutorToResourceManagerConnection
- java.lang.Object
-
- org.apache.flink.runtime.registration.RegisteredRpcConnection<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection>
-
- org.apache.flink.runtime.taskexecutor.TaskExecutorToResourceManagerConnection
-
public class TaskExecutorToResourceManagerConnection extends RegisteredRpcConnection<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection>
The connection between a TaskExecutor and the ResourceManager.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.registration.RegisteredRpcConnection
log
-
-
Constructor Summary
Constructors Constructor Description TaskExecutorToResourceManagerConnection(org.slf4j.Logger log, RpcService rpcService, RetryingRegistrationConfiguration retryingRegistrationConfiguration, String resourceManagerAddress, ResourceManagerId resourceManagerId, Executor executor, RegistrationConnectionListener<TaskExecutorToResourceManagerConnection,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection> registrationListener, TaskExecutorRegistration taskExecutorRegistration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.flink.runtime.registration.RegisteredRpcConnection
close, getTargetAddress, getTargetGateway, getTargetLeaderId, isClosed, isConnected, start, toString, tryReconnect
-
-
-
-
Constructor Detail
-
TaskExecutorToResourceManagerConnection
public TaskExecutorToResourceManagerConnection(org.slf4j.Logger log, RpcService rpcService, RetryingRegistrationConfiguration retryingRegistrationConfiguration, String resourceManagerAddress, ResourceManagerId resourceManagerId, Executor executor, RegistrationConnectionListener<TaskExecutorToResourceManagerConnection,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection> registrationListener, TaskExecutorRegistration taskExecutorRegistration)
-
-
Method Detail
-
generateRegistration
protected RetryingRegistration<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection> generateRegistration()
Description copied from class:RegisteredRpcConnection
This method generate a specific Registration, for example TaskExecutor Registration at the ResourceManager.
-
onRegistrationSuccess
protected void onRegistrationSuccess(TaskExecutorRegistrationSuccess success)
Description copied from class:RegisteredRpcConnection
This method handle the Registration Response.
-
onRegistrationRejection
protected void onRegistrationRejection(TaskExecutorRegistrationRejection rejection)
Description copied from class:RegisteredRpcConnection
This method handles the Registration rejection.- Specified by:
onRegistrationRejection
in classRegisteredRpcConnection<ResourceManagerId,ResourceManagerGateway,TaskExecutorRegistrationSuccess,TaskExecutorRegistrationRejection>
- Parameters:
rejection
- rejection containing additional information about the rejection
-
onRegistrationFailure
protected void onRegistrationFailure(Throwable failure)
Description copied from class:RegisteredRpcConnection
This method handle the Registration failure.
-
-