public interface ResourceManagerGateway extends org.apache.flink.runtime.rpc.FencedRpcGateway<ResourceManagerId>, ClusterPartitionManager, BlocklistListener
ResourceManager's RPC gateway interface.| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Acknowledge> |
declareRequiredResources(JobMasterId jobMasterId,
ResourceRequirements resourceRequirements,
org.apache.flink.api.common.time.Time timeout)
Declares the absolute resource requirements for a job.
|
CompletableFuture<Acknowledge> |
deregisterApplication(ApplicationStatus finalStatus,
String diagnostics)
Deregister Flink from the underlying resource management system.
|
void |
disconnectJobManager(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.JobStatus jobStatus,
Exception cause)
Disconnects a JobManager specified by the given resourceID from the
ResourceManager. |
void |
disconnectTaskManager(ResourceID resourceID,
Exception cause)
Disconnects a TaskManager specified by the given resourceID from the
ResourceManager. |
CompletableFuture<Integer> |
getNumberOfRegisteredTaskManagers()
Gets the currently registered number of TaskManagers.
|
CompletableFuture<Void> |
heartbeatFromJobManager(ResourceID heartbeatOrigin)
Sends the heartbeat to resource manager from job manager.
|
CompletableFuture<Void> |
heartbeatFromTaskManager(ResourceID heartbeatOrigin,
TaskExecutorHeartbeatPayload heartbeatPayload)
Sends the heartbeat to resource manager from task manager.
|
void |
notifySlotAvailable(InstanceID instanceId,
SlotID slotID,
AllocationID oldAllocationId)
Sent by the TaskExecutor to notify the ResourceManager that a slot has become available.
|
CompletableFuture<RegistrationResponse> |
registerJobMaster(JobMasterId jobMasterId,
ResourceID jobMasterResourceId,
String jobMasterAddress,
org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Register a
JobMaster at the resource manager. |
CompletableFuture<RegistrationResponse> |
registerTaskExecutor(TaskExecutorRegistration taskExecutorRegistration,
org.apache.flink.api.common.time.Time timeout)
Register a
TaskExecutor at the resource manager. |
CompletableFuture<ResourceOverview> |
requestResourceOverview(org.apache.flink.api.common.time.Time timeout)
Requests the resource overview.
|
CompletableFuture<TaskExecutorThreadInfoGateway> |
requestTaskExecutorThreadInfoGateway(ResourceID taskManagerId,
org.apache.flink.api.common.time.Time timeout)
Requests the
TaskExecutorGateway. |
CompletableFuture<TaskManagerInfoWithSlots> |
requestTaskManagerDetailsInfo(ResourceID taskManagerId,
org.apache.flink.api.common.time.Time timeout)
Requests detail information about the given
TaskExecutor. |
CompletableFuture<TransientBlobKey> |
requestTaskManagerFileUploadByName(ResourceID taskManagerId,
String fileName,
org.apache.flink.api.common.time.Time timeout)
Request the file upload from the given
TaskExecutor to the cluster's BlobServer. |
CompletableFuture<TransientBlobKey> |
requestTaskManagerFileUploadByType(ResourceID taskManagerId,
FileType fileType,
org.apache.flink.api.common.time.Time timeout)
Request the file upload from the given
TaskExecutor to the cluster's BlobServer. |
CompletableFuture<Collection<TaskManagerInfo>> |
requestTaskManagerInfo(org.apache.flink.api.common.time.Time timeout)
Requests information about the registered
TaskExecutor. |
CompletableFuture<Collection<LogInfo>> |
requestTaskManagerLogList(ResourceID taskManagerId,
org.apache.flink.api.common.time.Time timeout)
Request log list from the given
TaskExecutor. |
CompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> |
requestTaskManagerMetricQueryServiceAddresses(org.apache.flink.api.common.time.Time timeout)
Requests the paths for the TaskManager's
MetricQueryService to query. |
CompletableFuture<ThreadDumpInfo> |
requestThreadDump(ResourceID taskManagerId,
org.apache.flink.api.common.time.Time timeout)
Requests the thread dump from the given
TaskExecutor. |
CompletableFuture<Acknowledge> |
sendSlotReport(ResourceID taskManagerResourceId,
InstanceID taskManagerRegistrationId,
SlotReport slotReport,
org.apache.flink.api.common.time.Time timeout)
Sends the given
SlotReport to the ResourceManager. |
getClusterPartitionsShuffleDescriptors, listDataSets, releaseClusterPartitions, reportClusterPartitionsnotifyNewBlockedNodesCompletableFuture<RegistrationResponse> registerJobMaster(JobMasterId jobMasterId, ResourceID jobMasterResourceId, String jobMasterAddress, org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
JobMaster at the resource manager.jobMasterId - The fencing token for the JobMaster leaderjobMasterResourceId - The resource ID of the JobMaster that registersjobMasterAddress - The address of the JobMaster that registersjobId - The Job ID of the JobMaster that registerstimeout - Timeout for the future to completeCompletableFuture<Acknowledge> declareRequiredResources(JobMasterId jobMasterId, ResourceRequirements resourceRequirements, org.apache.flink.api.common.time.Time timeout)
jobMasterId - id of the JobMasterresourceRequirements - resource requirementsCompletableFuture<RegistrationResponse> registerTaskExecutor(TaskExecutorRegistration taskExecutorRegistration, org.apache.flink.api.common.time.Time timeout)
TaskExecutor at the resource manager.taskExecutorRegistration - the task executor registration.timeout - The timeout for the response.CompletableFuture<Acknowledge> sendSlotReport(ResourceID taskManagerResourceId, InstanceID taskManagerRegistrationId, SlotReport slotReport, org.apache.flink.api.common.time.Time timeout)
SlotReport to the ResourceManager.taskManagerRegistrationId - id identifying the sending TaskManagerslotReport - which is sent to the ResourceManagertimeout - for the operationAcknowledge once the slot report has been
received.void notifySlotAvailable(InstanceID instanceId, SlotID slotID, AllocationID oldAllocationId)
instanceId - TaskExecutor's instance idslotID - The SlotID of the freed slotoldAllocationId - to which the slot has been allocatedCompletableFuture<Acknowledge> deregisterApplication(ApplicationStatus finalStatus, @Nullable String diagnostics)
finalStatus - final status with which to deregister the Flink applicationdiagnostics - additional information for the resource management system, can be nullCompletableFuture<Integer> getNumberOfRegisteredTaskManagers()
CompletableFuture<Void> heartbeatFromTaskManager(ResourceID heartbeatOrigin, TaskExecutorHeartbeatPayload heartbeatPayload)
heartbeatOrigin - unique id of the task managerheartbeatPayload - payload from the originating TaskManagerCompletableFuture<Void> heartbeatFromJobManager(ResourceID heartbeatOrigin)
heartbeatOrigin - unique id of the job managervoid disconnectTaskManager(ResourceID resourceID, Exception cause)
ResourceManager.resourceID - identifying the TaskManager to disconnectcause - for the disconnection of the TaskManagervoid disconnectJobManager(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.JobStatus jobStatus,
Exception cause)
ResourceManager.jobId - JobID for which the JobManager was the leaderjobStatus - status of the job at the time of disconnectioncause - for the disconnection of the JobManagerCompletableFuture<Collection<TaskManagerInfo>> requestTaskManagerInfo(org.apache.flink.api.common.time.Time timeout)
TaskExecutor.timeout - of the requestCompletableFuture<TaskManagerInfoWithSlots> requestTaskManagerDetailsInfo(ResourceID taskManagerId, org.apache.flink.api.common.time.Time timeout)
TaskExecutor.taskManagerId - identifying the TaskExecutor for which to return informationtimeout - of the requestCompletableFuture<ResourceOverview> requestResourceOverview(org.apache.flink.api.common.time.Time timeout)
timeout - of the requestCompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> requestTaskManagerMetricQueryServiceAddresses(org.apache.flink.api.common.time.Time timeout)
MetricQueryService to query.timeout - for the asynchronous operationCompletableFuture<TransientBlobKey> requestTaskManagerFileUploadByType(ResourceID taskManagerId, FileType fileType, org.apache.flink.api.common.time.Time timeout)
TaskExecutor to the cluster's BlobServer. The corresponding TransientBlobKey is returned.taskManagerId - identifying the TaskExecutor to upload the specified filefileType - type of the file to uploadtimeout - for the asynchronous operationTransientBlobKey after uploading the file
to the BlobServer.CompletableFuture<TransientBlobKey> requestTaskManagerFileUploadByName(ResourceID taskManagerId, String fileName, org.apache.flink.api.common.time.Time timeout)
TaskExecutor to the cluster's BlobServer. The corresponding TransientBlobKey is returned.taskManagerId - identifying the TaskExecutor to upload the specified filefileName - name of the file to uploadtimeout - for the asynchronous operationTransientBlobKey after uploading the file
to the BlobServer.CompletableFuture<Collection<LogInfo>> requestTaskManagerLogList(ResourceID taskManagerId, org.apache.flink.api.common.time.Time timeout)
TaskExecutor.taskManagerId - identifying the TaskExecutor to get log list fromtimeout - for the asynchronous operationCompletableFuture<ThreadDumpInfo> requestThreadDump(ResourceID taskManagerId, org.apache.flink.api.common.time.Time timeout)
TaskExecutor.taskManagerId - taskManagerId identifying the TaskExecutor to get the thread
dump fromtimeout - timeout of the asynchronous operationCompletableFuture<TaskExecutorThreadInfoGateway> requestTaskExecutorThreadInfoGateway(ResourceID taskManagerId, org.apache.flink.api.common.time.Time timeout)
TaskExecutorGateway.taskManagerId - identifying the TaskExecutor.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.