public class KubernetesResourceManager extends org.apache.flink.runtime.resourcemanager.ActiveResourceManager<KubernetesWorkerNode> implements FlinkKubeClient.PodCallbackHandler
ResourceManager.| 构造器和说明 |
|---|
KubernetesResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
org.apache.flink.runtime.clusterframework.types.ResourceID resourceId,
org.apache.flink.configuration.Configuration flinkConfig,
org.apache.flink.runtime.highavailability.HighAvailabilityServices highAvailabilityServices,
org.apache.flink.runtime.heartbeat.HeartbeatServices heartbeatServices,
org.apache.flink.runtime.resourcemanager.slotmanager.SlotManager slotManager,
org.apache.flink.runtime.io.network.partition.ResourceManagerPartitionTrackerFactory clusterPartitionTrackerFactory,
org.apache.flink.runtime.resourcemanager.JobLeaderIdService jobLeaderIdService,
org.apache.flink.runtime.entrypoint.ClusterInformation clusterInformation,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
org.apache.flink.runtime.metrics.groups.ResourceManagerMetricGroup resourceManagerMetricGroup,
FlinkKubeClient kubeClient,
KubernetesResourceManagerConfiguration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handleFatalError(Throwable throwable) |
protected void |
initialize() |
protected void |
internalDeregisterApplication(org.apache.flink.runtime.clusterframework.ApplicationStatus finalStatus,
String diagnostics) |
protected org.apache.flink.configuration.Configuration |
loadClientConfiguration() |
void |
onAdded(List<KubernetesPod> pods) |
void |
onDeleted(List<KubernetesPod> pods) |
void |
onError(List<KubernetesPod> pods) |
void |
onModified(List<KubernetesPod> pods) |
CompletableFuture<Void> |
onStop() |
boolean |
startNewWorker(org.apache.flink.runtime.resourcemanager.WorkerResourceSpec workerResourceSpec) |
boolean |
stopWorker(KubernetesWorkerNode worker) |
protected KubernetesWorkerNode |
workerStarted(org.apache.flink.runtime.clusterframework.types.ResourceID resourceID) |
getNumRequestedNotAllocatedWorkers, getNumRequestedNotAllocatedWorkersFor, getNumRequestedNotRegisteredWorkers, getNumRequestedNotRegisteredWorkersFor, getStopTerminationFutureOrCompletedExceptionally, notifyAllocatedWorkerStopped, notifyNewWorkerAllocated, notifyNewWorkerAllocationFailed, notifyNewWorkerRequested, onTaskManagerRegistrationcancelSlotRequest, clearStateAsync, closeJobManagerConnection, closeTaskManagerConnection, deregisterApplication, disconnectJobManager, disconnectTaskManager, getNumberOfRegisteredTaskManagers, getNumberRequiredTaskManagers, getRequiredResources, grantLeadership, handleError, heartbeatFromJobManager, heartbeatFromTaskManager, jobLeaderLostLeadership, listDataSets, notifySlotAvailable, onFatalError, onStart, prepareLeadershipAsync, registerJobManager, registerTaskExecutor, releaseClusterPartitions, releaseResource, removeJob, requestResourceOverview, requestSlot, requestTaskManagerFileUploadByName, requestTaskManagerFileUploadByType, requestTaskManagerInfo, requestTaskManagerInfo, requestTaskManagerLogList, requestTaskManagerMetricQueryServiceAddresses, requestThreadDump, revokeLeadership, sendSlotReport, setFailUnfulfillableRequest, startServicesOnLeadershipcallAsyncWithoutFencing, getFencingToken, getMainThreadExecutor, getUnfencedMainThreadExecutor, runAsyncWithoutFencing, setFencingTokencallAsync, closeAsync, getAddress, getEndpointId, getHostname, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, validateRunsInMainThreadpublic KubernetesResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
org.apache.flink.runtime.clusterframework.types.ResourceID resourceId,
org.apache.flink.configuration.Configuration flinkConfig,
org.apache.flink.runtime.highavailability.HighAvailabilityServices highAvailabilityServices,
org.apache.flink.runtime.heartbeat.HeartbeatServices heartbeatServices,
org.apache.flink.runtime.resourcemanager.slotmanager.SlotManager slotManager,
org.apache.flink.runtime.io.network.partition.ResourceManagerPartitionTrackerFactory clusterPartitionTrackerFactory,
org.apache.flink.runtime.resourcemanager.JobLeaderIdService jobLeaderIdService,
org.apache.flink.runtime.entrypoint.ClusterInformation clusterInformation,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
org.apache.flink.runtime.metrics.groups.ResourceManagerMetricGroup resourceManagerMetricGroup,
FlinkKubeClient kubeClient,
KubernetesResourceManagerConfiguration configuration)
protected org.apache.flink.configuration.Configuration loadClientConfiguration()
loadClientConfiguration 在类中 org.apache.flink.runtime.resourcemanager.ActiveResourceManager<KubernetesWorkerNode>protected void initialize()
throws org.apache.flink.runtime.resourcemanager.exceptions.ResourceManagerException
initialize 在类中 org.apache.flink.runtime.resourcemanager.ResourceManager<KubernetesWorkerNode>org.apache.flink.runtime.resourcemanager.exceptions.ResourceManagerExceptionpublic CompletableFuture<Void> onStop()
onStop 在类中 org.apache.flink.runtime.resourcemanager.ResourceManager<KubernetesWorkerNode>protected void internalDeregisterApplication(org.apache.flink.runtime.clusterframework.ApplicationStatus finalStatus,
@Nullable
String diagnostics)
internalDeregisterApplication 在类中 org.apache.flink.runtime.resourcemanager.ResourceManager<KubernetesWorkerNode>public boolean startNewWorker(org.apache.flink.runtime.resourcemanager.WorkerResourceSpec workerResourceSpec)
startNewWorker 在类中 org.apache.flink.runtime.resourcemanager.ResourceManager<KubernetesWorkerNode>protected KubernetesWorkerNode workerStarted(org.apache.flink.runtime.clusterframework.types.ResourceID resourceID)
workerStarted 在类中 org.apache.flink.runtime.resourcemanager.ResourceManager<KubernetesWorkerNode>public boolean stopWorker(KubernetesWorkerNode worker)
stopWorker 在类中 org.apache.flink.runtime.resourcemanager.ResourceManager<KubernetesWorkerNode>public void onAdded(List<KubernetesPod> pods)
onAdded 在接口中 FlinkKubeClient.PodCallbackHandlerpublic void onModified(List<KubernetesPod> pods)
onModified 在接口中 FlinkKubeClient.PodCallbackHandlerpublic void onDeleted(List<KubernetesPod> pods)
onDeleted 在接口中 FlinkKubeClient.PodCallbackHandlerpublic void onError(List<KubernetesPod> pods)
onError 在接口中 FlinkKubeClient.PodCallbackHandlerpublic void handleFatalError(Throwable throwable)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.