public class StandaloneResourceManager extends ResourceManager<ResourceID>
This ResourceManager doesn't acquire new resources.
RpcEndpoint.MainThreadExecutorRESOURCE_MANAGER_NAMElog, rpcServer| Constructor and Description |
|---|
StandaloneResourceManager(RpcService rpcService,
String resourceManagerEndpointId,
ResourceID resourceId,
HighAvailabilityServices highAvailabilityServices,
HeartbeatServices heartbeatServices,
SlotManager slotManager,
JobLeaderIdService jobLeaderIdService,
ClusterInformation clusterInformation,
FatalErrorHandler fatalErrorHandler,
ResourceManagerMetricGroup resourceManagerMetricGroup,
org.apache.flink.api.common.time.Time startupPeriodTime) |
| 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.
|
Collection<ResourceProfile> |
startNewWorker(ResourceProfile resourceProfile)
Allocates a resource using the resource profile.
|
protected void |
startServicesOnLeadership() |
boolean |
stopWorker(ResourceID resourceID)
Stops the given worker.
|
protected ResourceID |
workerStarted(ResourceID resourceID)
Callback when a worker was started.
|
cancelSlotRequest, clearStateAsync, closeJobManagerConnection, closeTaskManagerConnection, deregisterApplication, disconnectJobManager, disconnectTaskManager, getNumberOfRegisteredTaskManagers, getNumberRequiredTaskManagerSlots, grantLeadership, handleError, heartbeatFromJobManager, heartbeatFromTaskManager, jobLeaderLostLeadership, notifySlotAvailable, onFatalError, onStart, onStop, prepareLeadershipAsync, registerJobManager, registerTaskExecutor, releaseResource, removeJob, requestResourceOverview, requestSlot, requestTaskManagerFileUpload, requestTaskManagerInfo, requestTaskManagerInfo, requestTaskManagerMetricQueryServiceAddresses, revokeLeadership, sendSlotReport, setFailUnfulfillableRequestcallAsyncWithoutFencing, getFencingToken, getMainThreadExecutor, getUnfencedMainThreadExecutor, runAsyncWithoutFencing, setFencingTokencallAsync, closeAsync, getAddress, getEndpointId, getHostname, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, validateRunsInMainThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFencingTokengetAddress, getHostnamegetDescriptionpublic StandaloneResourceManager(RpcService rpcService, String resourceManagerEndpointId, ResourceID resourceId, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, SlotManager slotManager, JobLeaderIdService jobLeaderIdService, ClusterInformation clusterInformation, FatalErrorHandler fatalErrorHandler, ResourceManagerMetricGroup resourceManagerMetricGroup, org.apache.flink.api.common.time.Time startupPeriodTime)
protected void initialize()
throws ResourceManagerException
ResourceManagerinitialize in class ResourceManager<ResourceID>ResourceManagerException - which occurs during initialization and causes the resource manager to fail.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 Collection<ResourceProfile> startNewWorker(ResourceProfile resourceProfile)
ResourceManagerstartNewWorker in class ResourceManager<ResourceID>resourceProfile - The resource descriptionResourceProfile describing the launched slotspublic 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 idprotected void startServicesOnLeadership()
startServicesOnLeadership in class ResourceManager<ResourceID>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.