public class StandaloneResourceManager extends ResourceManager<ResourceID>
This ResourceManager doesn't acquire new resources.
ioExecutor, RESOURCE_MANAGER_NAME, resourceManagerMetricGroup| Constructor and Description |
|---|
StandaloneResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
UUID leaderSessionId,
ResourceID resourceId,
HeartbeatServices heartbeatServices,
SlotManager slotManager,
ResourceManagerPartitionTrackerFactory clusterPartitionTrackerFactory,
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 |
|---|---|
protected void |
initialize()
Initializes the framework specific components.
|
protected void |
internalDeregisterApplication(ApplicationStatus finalStatus,
String diagnostics)
The framework specific code to deregister the application.
|
boolean |
startNewWorker(WorkerResourceSpec workerResourceSpec)
Allocates a resource using the worker resource specification.
|
boolean |
stopWorker(ResourceID resourceID)
Stops the given worker.
|
protected void |
terminate()
Terminates the framework specific components.
|
protected ResourceID |
workerStarted(ResourceID resourceID)
Callback when a worker was started.
|
closeJobManagerConnection, closeTaskManagerConnection, declareRequiredResources, deregisterApplication, disconnectJobManager, disconnectTaskManager, getNumberOfRegisteredTaskManagers, getRequiredResources, getStartedFuture, heartbeatFromJobManager, heartbeatFromTaskManager, jobLeaderLostLeadership, listDataSets, notifySlotAvailable, onFatalError, onStart, onStop, onWorkerRegistered, registerJobMaster, registerMetrics, registerTaskExecutor, releaseClusterPartitions, releaseResource, removeJob, requestResourceOverview, requestTaskExecutorThreadInfoGateway, requestTaskManagerDetailsInfo, requestTaskManagerFileUploadByName, requestTaskManagerFileUploadByType, requestTaskManagerInfo, requestTaskManagerLogList, requestTaskManagerMetricQueryServiceAddresses, requestThreadDump, sendSlotReport, setFailUnfulfillableRequestcallAsyncWithoutFencing, getFencingToken, getMainThreadExecutor, getUnfencedMainThreadExecutor, runAsyncWithoutFencing, setFencingTokencallAsync, closeAsync, getAddress, getEndpointId, getHostname, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, validateRunsInMainThreadpublic StandaloneResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
UUID leaderSessionId,
ResourceID resourceId,
HeartbeatServices heartbeatServices,
SlotManager slotManager,
ResourceManagerPartitionTrackerFactory clusterPartitionTrackerFactory,
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.public boolean startNewWorker(WorkerResourceSpec workerResourceSpec)
ResourceManagerstartNewWorker in class ResourceManager<ResourceID>workerResourceSpec - workerResourceSpec specifies the size of the to be allocated
resourcepublic boolean stopWorker(ResourceID resourceID)
ResourceManagerstopWorker in class ResourceManager<ResourceID>resourceID - The worker.protected ResourceID workerStarted(ResourceID resourceID)
ResourceManagerworkerStarted in class ResourceManager<ResourceID>resourceID - The worker resource idCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.