public class StandaloneResourceManager extends ResourceManager<ResourceID>
This ResourceManager doesn't acquire new resources.
blocklistHandler, ioExecutor, RESOURCE_MANAGER_NAME, resourceManagerMetricGroup| Constructor and Description |
|---|
StandaloneResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
UUID leaderSessionId,
ResourceID resourceId,
HeartbeatServices heartbeatServices,
DelegationTokenManager delegationTokenManager,
SlotManager slotManager,
ResourceManagerPartitionTrackerFactory clusterPartitionTrackerFactory,
BlocklistHandler.Factory blocklistHandlerFactory,
JobLeaderIdService jobLeaderIdService,
ClusterInformation clusterInformation,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
ResourceManagerMetricGroup resourceManagerMetricGroup,
org.apache.flink.api.common.time.Time startupPeriodTime,
org.apache.flink.api.common.time.Time rpcTimeout,
Executor ioExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
getReadyToServeFuture()
Get the ready to serve future of the resource manager.
|
protected ResourceAllocator |
getResourceAllocator() |
protected Optional<ResourceID> |
getWorkerNodeIfAcceptRegistration(ResourceID resourceID)
Get worker node if the worker resource is accepted.
|
protected void |
initialize()
Initializes the framework specific components.
|
protected void |
internalDeregisterApplication(ApplicationStatus finalStatus,
String diagnostics)
The framework specific code to deregister the application.
|
protected void |
terminate()
Terminates the framework specific components.
|
closeJobManagerConnection, closeTaskManagerConnection, declareRequiredResources, deregisterApplication, disconnectJobManager, disconnectTaskManager, getClusterPartitionsShuffleDescriptors, getInstanceIdByResourceId, getNumberOfRegisteredTaskManagers, getStartedFuture, getWorkerByInstanceId, heartbeatFromJobManager, heartbeatFromTaskManager, jobLeaderLostLeadership, listDataSets, notifyNewBlockedNodes, notifySlotAvailable, onFatalError, onNewTokensObtained, onStart, onStop, onWorkerRegistered, registerJobMaster, registerMetrics, registerTaskExecutor, releaseClusterPartitions, removeJob, reportClusterPartitions, requestProfiling, requestResourceOverview, requestTaskExecutorThreadInfoGateway, requestTaskManagerDetailsInfo, requestTaskManagerFileUploadByNameAndType, requestTaskManagerFileUploadByType, requestTaskManagerInfo, requestTaskManagerLogList, requestTaskManagerMetricQueryServiceAddresses, requestTaskManagerProfilingList, requestThreadDump, sendSlotReport, setFailUnfulfillableRequest, stopWorkerIfSupportedcallAsync, closeAsync, getAddress, getEndpointId, getHostname, getMainThreadExecutor, getMainThreadExecutor, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, registerResource, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, unregisterResource, validateRunsInMainThreadpublic StandaloneResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
UUID leaderSessionId,
ResourceID resourceId,
HeartbeatServices heartbeatServices,
DelegationTokenManager delegationTokenManager,
SlotManager slotManager,
ResourceManagerPartitionTrackerFactory clusterPartitionTrackerFactory,
BlocklistHandler.Factory blocklistHandlerFactory,
JobLeaderIdService jobLeaderIdService,
ClusterInformation clusterInformation,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
ResourceManagerMetricGroup resourceManagerMetricGroup,
org.apache.flink.api.common.time.Time startupPeriodTime,
org.apache.flink.api.common.time.Time rpcTimeout,
Executor ioExecutor)
protected void initialize()
throws ResourceManagerException
ResourceManagerinitialize in class ResourceManager<ResourceID>ResourceManagerException - which occurs during initialization and causes the resource
manager to fail.protected void terminate()
ResourceManagerterminate in class ResourceManager<ResourceID>protected void internalDeregisterApplication(ApplicationStatus finalStatus, @Nullable String diagnostics)
ResourceManagerThis method also needs to make sure all pending containers that are not registered yet are returned.
internalDeregisterApplication in class ResourceManager<ResourceID>finalStatus - The application status to report.diagnostics - A diagnostics message or null.protected Optional<ResourceID> getWorkerNodeIfAcceptRegistration(ResourceID resourceID)
ResourceManagergetWorkerNodeIfAcceptRegistration in class ResourceManager<ResourceID>resourceID - The worker resource idpublic CompletableFuture<Void> getReadyToServeFuture()
ResourceManagergetReadyToServeFuture in class ResourceManager<ResourceID>protected ResourceAllocator getResourceAllocator()
getResourceAllocator in class ResourceManager<ResourceID>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.