public class StandaloneResourceManager extends ResourceManager<ResourceID>
RESOURCE_MANAGER_NAMElog| Constructor and Description |
|---|
StandaloneResourceManager(RpcService rpcService,
String resourceManagerEndpointId,
ResourceID resourceId,
ResourceManagerConfiguration resourceManagerConfiguration,
HighAvailabilityServices highAvailabilityServices,
HeartbeatServices heartbeatServices,
SlotManager slotManager,
MetricRegistry metricRegistry,
JobLeaderIdService jobLeaderIdService,
FatalErrorHandler fatalErrorHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize()
Initializes the framework specific components.
|
protected void |
shutDownApplication(ApplicationStatus finalStatus,
String optionalDiagnostics)
The framework specific code for shutting down the application.
|
void |
startNewWorker(ResourceProfile resourceProfile)
Allocates a resource using the resource profile.
|
void |
stopWorker(InstanceID instanceId) |
protected ResourceID |
workerStarted(ResourceID resourceID)
Callback when a worker was started.
|
closeJobManagerConnection, closeTaskManagerConnection, disconnectJobManager, disconnectTaskManager, getNumberOfRegisteredTaskManagers, grantLeadership, handleError, heartbeatFromJobManager, heartbeatFromTaskManager, isValid, jobLeaderLostLeadership, notifySlotAvailable, onFatalErrorAsync, registerInfoMessageListener, registerJobManager, registerTaskExecutor, removeJob, requestSlot, revokeLeadership, sendInfoMessage, shutDown, shutDownCluster, start, unRegisterInfoMessageListenercallAsync, getAddress, getEndpointId, getMainThreadExecutor, getRpcService, getSelf, getSelfGatewayType, getTerminationFuture, runAsync, scheduleRunAsync, scheduleRunAsync, validateRunsInMainThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAddresspublic StandaloneResourceManager(RpcService rpcService, String resourceManagerEndpointId, ResourceID resourceId, ResourceManagerConfiguration resourceManagerConfiguration, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, SlotManager slotManager, MetricRegistry metricRegistry, JobLeaderIdService jobLeaderIdService, FatalErrorHandler fatalErrorHandler)
protected void initialize()
throws ResourceManagerException
ResourceManagerinitialize in class ResourceManager<ResourceID>ResourceManagerException - which occurs during initialization and causes the resource manager to fail.protected void shutDownApplication(ApplicationStatus finalStatus, String optionalDiagnostics)
ResourceManagershutDownApplication in class ResourceManager<ResourceID>finalStatus - The application status to report.optionalDiagnostics - An optional diagnostics message.public void startNewWorker(ResourceProfile resourceProfile)
ResourceManagerstartNewWorker in class ResourceManager<ResourceID>resourceProfile - The resource descriptionpublic void stopWorker(InstanceID instanceId)
stopWorker in class ResourceManager<ResourceID>protected ResourceID workerStarted(ResourceID resourceID)
ResourceManagerworkerStarted in class ResourceManager<ResourceID>resourceID - The worker resource idCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.