Class ResourceManager<WorkerType extends ResourceIDRetrievable>
java.lang.Object
org.apache.flink.runtime.rpc.RpcEndpoint
org.apache.flink.runtime.rpc.FencedRpcEndpoint<ResourceManagerId>
org.apache.flink.runtime.resourcemanager.ResourceManager<WorkerType>
- All Implemented Interfaces:
AutoCloseable,BlocklistListener,ClusterPartitionManager,ResourceManagerGateway,org.apache.flink.runtime.rpc.FencedRpcGateway<ResourceManagerId>,org.apache.flink.runtime.rpc.RpcGateway,DelegationTokenManager.Listener,org.apache.flink.util.AutoCloseableAsync
- Direct Known Subclasses:
ActiveResourceManager,StandaloneResourceManager
public abstract class ResourceManager<WorkerType extends ResourceIDRetrievable>
extends org.apache.flink.runtime.rpc.FencedRpcEndpoint<ResourceManagerId>
implements DelegationTokenManager.Listener, ResourceManagerGateway
ResourceManager implementation. The resource manager is responsible for resource de-/allocation
and bookkeeping.
It offers the following methods as part of its rpc interface to interact with him remotely:
registerJobMaster(JobMasterId, ResourceID, String, JobID, Duration)registers aJobMasterat the resource manager
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.runtime.rpc.RpcEndpoint
org.apache.flink.runtime.rpc.RpcEndpoint.MainThreadExecutor -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlocklistHandlerprotected final Executorstatic final Stringprotected final ResourceManagerMetricGroupFields inherited from class org.apache.flink.runtime.rpc.RpcEndpoint
log, rpcServer -
Constructor Summary
ConstructorsConstructorDescriptionResourceManager(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, Duration rpcTimeout, Executor ioExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseJobManagerConnection(org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.resourcemanager.ResourceManager.ResourceRequirementHandling resourceRequirementHandling, Exception cause) This method should be called by the framework once it detects that a currently registered job manager has failed.protected Optional<WorkerType>closeTaskManagerConnection(ResourceID resourceID, Exception cause) This method should be called by the framework once it detects that a currently registered task executor has failed.declareRequiredResources(JobMasterId jobMasterId, ResourceRequirements resourceRequirements, Duration timeout) Declares the absolute resource requirements for a job.deregisterApplication(ApplicationStatus finalStatus, String diagnostics) Cleanup application and shut down cluster.voiddisconnectJobManager(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.JobStatus jobStatus, Exception cause) Disconnects a JobManager specified by the given resourceID from theResourceManager.voiddisconnectTaskManager(ResourceID resourceId, Exception cause) Disconnects a TaskManager specified by the given resourceID from theResourceManager.getClusterPartitionsShuffleDescriptors(IntermediateDataSetID intermediateDataSetID) Get the shuffle descriptors of the cluster partitions ordered by partition number.getInstanceIdByResourceId(ResourceID resourceID) Gets the currently registered number of TaskManagers.protected abstract CompletableFuture<Void>Get the ready to serve future of the resource manager.protected abstract ResourceAllocatorCompletion of this future indicates that the resource manager is fully started and is ready to serve.protected WorkerTypegetWorkerByInstanceId(InstanceID instanceId) protected abstract Optional<WorkerType>getWorkerNodeIfAcceptRegistration(ResourceID resourceID) Get worker node if the worker resource is accepted.heartbeatFromJobManager(ResourceID resourceID) Sends the heartbeat to resource manager from job manager.heartbeatFromTaskManager(ResourceID resourceID, TaskExecutorHeartbeatPayload heartbeatPayload) Sends the heartbeat to resource manager from task manager.protected abstract voidInitializes the framework specific components.protected abstract voidinternalDeregisterApplication(ApplicationStatus finalStatus, String optionalDiagnostics) The framework specific code to deregister the application.protected voidjobLeaderLostLeadership(org.apache.flink.api.common.JobID jobId, JobMasterId oldJobMasterId) Returns all datasets for which partitions are being tracked.notifyNewBlockedNodes(Collection<BlockedNode> newNodes) Notify new blocked node records.voidnotifySlotAvailable(InstanceID instanceID, SlotID slotId, AllocationID allocationId) Sent by the TaskExecutor to notify the ResourceManager that a slot has become available.protected voidNotifies the ResourceManager that a fatal error has occurred and it cannot proceed.voidonNewTokensObtained(byte[] tokens) Callback function when new delegation tokens obtained.final voidonStart()final CompletableFuture<Void>onStop()protected voidonWorkerRegistered(WorkerType worker, WorkerResourceSpec workerResourceSpec) registerJobMaster(JobMasterId jobMasterId, ResourceID jobManagerResourceId, String jobManagerAddress, org.apache.flink.api.common.JobID jobId, Duration timeout) Register aJobMasterat the resource manager.protected voidregisterTaskExecutor(TaskExecutorRegistration taskExecutorRegistration, Duration timeout) Register aTaskExecutorat the resource manager.releaseClusterPartitions(IntermediateDataSetID dataSetId) Releases all partitions associated with the given dataset.protected voidreportClusterPartitions(ResourceID taskExecutorId, ClusterPartitionReport clusterPartitionReport) Report the cluster partitions status in the task executor.requestProfiling(ResourceID taskManagerId, int duration, ProfilingInfo.ProfilingMode mode, Duration timeout) Requests the profiling instance from the givenTaskExecutor.requestResourceOverview(Duration timeout) Requests the resource overview.requestTaskExecutorThreadInfoGateway(ResourceID taskManagerId, Duration timeout) Requests theTaskExecutorGateway.requestTaskManagerDetailsInfo(ResourceID resourceId, Duration timeout) Requests detail information about the givenTaskExecutor.requestTaskManagerFileUploadByNameAndType(ResourceID taskManagerId, String fileName, FileType fileType, Duration timeout) Request the file upload from the givenTaskExecutorto the cluster'sBlobServer.requestTaskManagerFileUploadByType(ResourceID taskManagerId, FileType fileType, Duration timeout) Request the file upload from the givenTaskExecutorto the cluster'sBlobServer.requestTaskManagerInfo(Duration timeout) Requests information about the registeredTaskExecutor.requestTaskManagerLogList(ResourceID taskManagerId, Duration timeout) Request log list from the givenTaskExecutor.CompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> Requests the paths for the TaskManager'sMetricQueryServiceto query.requestTaskManagerProfilingList(ResourceID taskManagerId, Duration timeout) Request profiling list from the givenTaskExecutor.requestThreadDump(ResourceID taskManagerId, Duration timeout) Requests the thread dump from the givenTaskExecutor.sendSlotReport(ResourceID taskManagerResourceId, InstanceID taskManagerRegistrationId, SlotReport slotReport, Duration timeout) Sends the givenSlotReportto the ResourceManager.protected voidsetFailUnfulfillableRequest(boolean failUnfulfillableRequest) SetSlotManagerwhether to fail unfulfillable slot requests.voidstopWorkerIfSupported(WorkerType worker) Stops the given worker if supported.protected abstract voidTerminates the framework specific components.Methods inherited from class org.apache.flink.runtime.rpc.FencedRpcEndpoint
getFencingTokenMethods inherited from class org.apache.flink.runtime.rpc.RpcEndpoint
callAsync, closeAsync, getAddress, getEndpointId, getHostname, getMainThreadExecutor, getMainThreadExecutor, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, registerResource, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, unregisterResource, validateRunsInMainThreadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.AutoCloseableAsync
closeMethods inherited from interface org.apache.flink.runtime.rpc.FencedRpcGateway
getFencingTokenMethods inherited from interface org.apache.flink.runtime.rpc.RpcGateway
getAddress, getHostname
-
Field Details
-
RESOURCE_MANAGER_NAME
- See Also:
-
resourceManagerMetricGroup
-
ioExecutor
-
blocklistHandler
-
-
Constructor Details
-
ResourceManager
public ResourceManager(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, Duration rpcTimeout, Executor ioExecutor)
-
-
Method Details
-
onStart
- Overrides:
onStartin classorg.apache.flink.runtime.rpc.RpcEndpoint- Throws:
Exception
-
getStartedFuture
Completion of this future indicates that the resource manager is fully started and is ready to serve. -
onStop
- Overrides:
onStopin classorg.apache.flink.runtime.rpc.RpcEndpoint
-
registerJobMaster
public CompletableFuture<RegistrationResponse> registerJobMaster(JobMasterId jobMasterId, ResourceID jobManagerResourceId, String jobManagerAddress, org.apache.flink.api.common.JobID jobId, Duration timeout) Description copied from interface:ResourceManagerGatewayRegister aJobMasterat the resource manager.- Specified by:
registerJobMasterin interfaceResourceManagerGateway- Parameters:
jobMasterId- The fencing token for the JobMaster leaderjobManagerResourceId- The resource ID of the JobMaster that registersjobManagerAddress- The address of the JobMaster that registersjobId- The Job ID of the JobMaster that registerstimeout- Timeout for the future to complete- Returns:
- Future registration response
-
registerTaskExecutor
public CompletableFuture<RegistrationResponse> registerTaskExecutor(TaskExecutorRegistration taskExecutorRegistration, Duration timeout) Description copied from interface:ResourceManagerGatewayRegister aTaskExecutorat the resource manager.- Specified by:
registerTaskExecutorin interfaceResourceManagerGateway- Parameters:
taskExecutorRegistration- the task executor registration.timeout- The timeout for the response.- Returns:
- The future to the response by the ResourceManager.
-
sendSlotReport
public CompletableFuture<Acknowledge> sendSlotReport(ResourceID taskManagerResourceId, InstanceID taskManagerRegistrationId, SlotReport slotReport, Duration timeout) Description copied from interface:ResourceManagerGatewaySends the givenSlotReportto the ResourceManager.- Specified by:
sendSlotReportin interfaceResourceManagerGateway- Parameters:
taskManagerResourceId- The resource ID of the sending TaskManagertaskManagerRegistrationId- id identifying the sending TaskManagerslotReport- which is sent to the ResourceManagertimeout- for the operation- Returns:
- Future which is completed with
Acknowledgeonce the slot report has been received.
-
onWorkerRegistered
-
heartbeatFromTaskManager
public CompletableFuture<Void> heartbeatFromTaskManager(ResourceID resourceID, TaskExecutorHeartbeatPayload heartbeatPayload) Description copied from interface:ResourceManagerGatewaySends the heartbeat to resource manager from task manager.- Specified by:
heartbeatFromTaskManagerin interfaceResourceManagerGateway- Parameters:
resourceID- unique id of the task managerheartbeatPayload- payload from the originating TaskManager- Returns:
- future which is completed exceptionally if the operation fails
-
heartbeatFromJobManager
Description copied from interface:ResourceManagerGatewaySends the heartbeat to resource manager from job manager.- Specified by:
heartbeatFromJobManagerin interfaceResourceManagerGateway- Parameters:
resourceID- unique id of the job manager- Returns:
- future which is completed exceptionally if the operation fails
-
disconnectTaskManager
Description copied from interface:ResourceManagerGatewayDisconnects a TaskManager specified by the given resourceID from theResourceManager.- Specified by:
disconnectTaskManagerin interfaceResourceManagerGateway- Parameters:
resourceId- identifying the TaskManager to disconnectcause- for the disconnection of the TaskManager
-
disconnectJobManager
public void disconnectJobManager(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.JobStatus jobStatus, Exception cause) Description copied from interface:ResourceManagerGatewayDisconnects a JobManager specified by the given resourceID from theResourceManager.- Specified by:
disconnectJobManagerin interfaceResourceManagerGateway- Parameters:
jobId- JobID for which the JobManager was the leaderjobStatus- status of the job at the time of disconnectioncause- for the disconnection of the JobManager
-
declareRequiredResources
public CompletableFuture<Acknowledge> declareRequiredResources(JobMasterId jobMasterId, ResourceRequirements resourceRequirements, Duration timeout) Description copied from interface:ResourceManagerGatewayDeclares the absolute resource requirements for a job.- Specified by:
declareRequiredResourcesin interfaceResourceManagerGateway- Parameters:
jobMasterId- id of the JobMasterresourceRequirements- resource requirements- Returns:
- The confirmation that the requirements have been processed
-
notifySlotAvailable
Description copied from interface:ResourceManagerGatewaySent by the TaskExecutor to notify the ResourceManager that a slot has become available.- Specified by:
notifySlotAvailablein interfaceResourceManagerGateway- Parameters:
instanceID- TaskExecutor's instance idslotId- The SlotID of the freed slotallocationId- to which the slot has been allocated
-
deregisterApplication
public CompletableFuture<Acknowledge> deregisterApplication(ApplicationStatus finalStatus, @Nullable String diagnostics) Cleanup application and shut down cluster.- Specified by:
deregisterApplicationin interfaceResourceManagerGateway- Parameters:
finalStatus- of the Flink applicationdiagnostics- diagnostics message for the Flink application ornull
-
getNumberOfRegisteredTaskManagers
Description copied from interface:ResourceManagerGatewayGets the currently registered number of TaskManagers.- Specified by:
getNumberOfRegisteredTaskManagersin interfaceResourceManagerGateway- Returns:
- The future to the number of registered TaskManagers.
-
requestTaskManagerInfo
Description copied from interface:ResourceManagerGatewayRequests information about the registeredTaskExecutor.- Specified by:
requestTaskManagerInfoin interfaceResourceManagerGateway- Parameters:
timeout- of the request- Returns:
- Future collection of TaskManager information
-
requestTaskManagerDetailsInfo
public CompletableFuture<TaskManagerInfoWithSlots> requestTaskManagerDetailsInfo(ResourceID resourceId, Duration timeout) Description copied from interface:ResourceManagerGatewayRequests detail information about the givenTaskExecutor.- Specified by:
requestTaskManagerDetailsInfoin interfaceResourceManagerGateway- Parameters:
resourceId- identifying the TaskExecutor for which to return informationtimeout- of the request- Returns:
- Future TaskManager information and its allocated slots
-
requestResourceOverview
Description copied from interface:ResourceManagerGatewayRequests the resource overview. The resource overview provides information about the connected TaskManagers, the total number of slots and the number of available slots.- Specified by:
requestResourceOverviewin interfaceResourceManagerGateway- Parameters:
timeout- of the request- Returns:
- Future containing the resource overview
-
requestTaskManagerMetricQueryServiceAddresses
public CompletableFuture<Collection<org.apache.flink.api.java.tuple.Tuple2<ResourceID,String>>> requestTaskManagerMetricQueryServiceAddresses(Duration timeout) Description copied from interface:ResourceManagerGatewayRequests the paths for the TaskManager'sMetricQueryServiceto query.- Specified by:
requestTaskManagerMetricQueryServiceAddressesin interfaceResourceManagerGateway- Parameters:
timeout- for the asynchronous operation- Returns:
- Future containing the collection of resource ids and the corresponding metric query service path
-
requestTaskManagerFileUploadByType
public CompletableFuture<TransientBlobKey> requestTaskManagerFileUploadByType(ResourceID taskManagerId, FileType fileType, Duration timeout) Description copied from interface:ResourceManagerGatewayRequest the file upload from the givenTaskExecutorto the cluster'sBlobServer. The correspondingTransientBlobKeyis returned.- Specified by:
requestTaskManagerFileUploadByTypein interfaceResourceManagerGateway- Parameters:
taskManagerId- identifying theTaskExecutorto upload the specified filefileType- type of the file to uploadtimeout- for the asynchronous operation- Returns:
- Future which is completed with the
TransientBlobKeyafter uploading the file to theBlobServer.
-
requestTaskManagerFileUploadByNameAndType
public CompletableFuture<TransientBlobKey> requestTaskManagerFileUploadByNameAndType(ResourceID taskManagerId, String fileName, FileType fileType, Duration timeout) Description copied from interface:ResourceManagerGatewayRequest the file upload from the givenTaskExecutorto the cluster'sBlobServer. The correspondingTransientBlobKeyis returned.- Specified by:
requestTaskManagerFileUploadByNameAndTypein interfaceResourceManagerGateway- Parameters:
taskManagerId- identifying theTaskExecutorto upload the specified filefileName- name of the file to uploadfileType- type of the file to uploadtimeout- for the asynchronous operation- Returns:
- Future which is completed with the
TransientBlobKeyafter uploading the file to theBlobServer.
-
requestTaskManagerLogList
public CompletableFuture<Collection<LogInfo>> requestTaskManagerLogList(ResourceID taskManagerId, Duration timeout) Description copied from interface:ResourceManagerGatewayRequest log list from the givenTaskExecutor.- Specified by:
requestTaskManagerLogListin interfaceResourceManagerGateway- Parameters:
taskManagerId- identifying theTaskExecutorto get log list fromtimeout- for the asynchronous operation- Returns:
- Future which is completed with the historical log list
-
releaseClusterPartitions
Description copied from interface:ClusterPartitionManagerReleases all partitions associated with the given dataset.- Specified by:
releaseClusterPartitionsin interfaceClusterPartitionManager- Parameters:
dataSetId- dataset for which all associated partitions should be released- Returns:
- future that is completed once all partitions have been released
-
reportClusterPartitions
public CompletableFuture<Void> reportClusterPartitions(ResourceID taskExecutorId, ClusterPartitionReport clusterPartitionReport) Description copied from interface:ClusterPartitionManagerReport the cluster partitions status in the task executor.- Specified by:
reportClusterPartitionsin interfaceClusterPartitionManager- Parameters:
taskExecutorId- The id of the task executor.clusterPartitionReport- The status of the cluster partitions.- Returns:
- future that is completed once the report have been processed.
-
getClusterPartitionsShuffleDescriptors
public CompletableFuture<List<ShuffleDescriptor>> getClusterPartitionsShuffleDescriptors(IntermediateDataSetID intermediateDataSetID) Description copied from interface:ClusterPartitionManagerGet the shuffle descriptors of the cluster partitions ordered by partition number.- Specified by:
getClusterPartitionsShuffleDescriptorsin interfaceClusterPartitionManager- Parameters:
intermediateDataSetID- The id of the dataset.- Returns:
- shuffle descriptors of the cluster partitions.
-
listDataSets
Description copied from interface:ClusterPartitionManagerReturns all datasets for which partitions are being tracked.- Specified by:
listDataSetsin interfaceClusterPartitionManager- Returns:
- tracked datasets
-
requestThreadDump
public CompletableFuture<ThreadDumpInfo> requestThreadDump(ResourceID taskManagerId, Duration timeout) Description copied from interface:ResourceManagerGatewayRequests the thread dump from the givenTaskExecutor.- Specified by:
requestThreadDumpin interfaceResourceManagerGateway- Parameters:
taskManagerId- taskManagerId identifying theTaskExecutorto get the thread dump fromtimeout- timeout of the asynchronous operation- Returns:
- Future containing the thread dump information
-
requestTaskManagerProfilingList
public CompletableFuture<Collection<ProfilingInfo>> requestTaskManagerProfilingList(ResourceID taskManagerId, Duration timeout) Description copied from interface:ResourceManagerGatewayRequest profiling list from the givenTaskExecutor.- Specified by:
requestTaskManagerProfilingListin interfaceResourceManagerGateway- Parameters:
taskManagerId- identifying theTaskExecutorto get profiling list fromtimeout- for the asynchronous operation- Returns:
- Future which is completed with the historical profiling list
-
requestProfiling
public CompletableFuture<ProfilingInfo> requestProfiling(ResourceID taskManagerId, int duration, ProfilingInfo.ProfilingMode mode, Duration timeout) Description copied from interface:ResourceManagerGatewayRequests the profiling instance from the givenTaskExecutor.- Specified by:
requestProfilingin interfaceResourceManagerGateway- Parameters:
taskManagerId- taskManagerId identifying theTaskExecutorto get the profiling fromduration- profiling durationmode- profiling modeProfilingInfo.ProfilingModetimeout- timeout of the asynchronous operation- Returns:
- Future containing the created profiling information
-
requestTaskExecutorThreadInfoGateway
public CompletableFuture<TaskExecutorThreadInfoGateway> requestTaskExecutorThreadInfoGateway(ResourceID taskManagerId, Duration timeout) Description copied from interface:ResourceManagerGatewayRequests theTaskExecutorGateway.- Specified by:
requestTaskExecutorThreadInfoGatewayin interfaceResourceManagerGateway- Parameters:
taskManagerId- identifying theTaskExecutor.- Returns:
- Future containing the task executor gateway.
-
notifyNewBlockedNodes
Description copied from interface:BlocklistListenerNotify new blocked node records.- Specified by:
notifyNewBlockedNodesin interfaceBlocklistListener- Parameters:
newNodes- the new blocked node records- Returns:
- Future acknowledge once the new nodes have successfully notified.
-
registerMetrics
protected void registerMetrics() -
closeJobManagerConnection
protected void closeJobManagerConnection(org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.resourcemanager.ResourceManager.ResourceRequirementHandling resourceRequirementHandling, Exception cause) This method should be called by the framework once it detects that a currently registered job manager has failed.- Parameters:
jobId- identifying the job whose leader shall be disconnected.resourceRequirementHandling- indicating how existing resource requirements for the corresponding job should be handledcause- The exception which cause the JobManager failed.
-
closeTaskManagerConnection
This method should be called by the framework once it detects that a currently registered task executor has failed.- Parameters:
resourceID- Id of the TaskManager that has failed.cause- The exception which cause the TaskManager failed.- Returns:
- The
ResourceManagerof the closed connection, or empty if already removed.
-
removeJob
-
jobLeaderLostLeadership
protected void jobLeaderLostLeadership(org.apache.flink.api.common.JobID jobId, JobMasterId oldJobMasterId) -
getInstanceIdByResourceId
-
getWorkerByInstanceId
-
onFatalError
Notifies the ResourceManager that a fatal error has occurred and it cannot proceed.- Parameters:
t- The exception describing the fatal error
-
initialize
Initializes the framework specific components.- Throws:
ResourceManagerException- which occurs during initialization and causes the resource manager to fail.
-
terminate
Terminates the framework specific components.- Throws:
Exception- which occurs during termination.
-
internalDeregisterApplication
protected abstract void internalDeregisterApplication(ApplicationStatus finalStatus, @Nullable String optionalDiagnostics) throws ResourceManagerException The framework specific code to deregister the application. This should report the application's final status and shut down the resource manager cleanly.This method also needs to make sure all pending containers that are not registered yet are returned.
- Parameters:
finalStatus- The application status to report.optionalDiagnostics- A diagnostics message ornull.- Throws:
ResourceManagerException- if the application could not be shut down.
-
getWorkerNodeIfAcceptRegistration
Get worker node if the worker resource is accepted.- Parameters:
resourceID- The worker resource id
-
stopWorkerIfSupported
Stops the given worker if supported.- Parameters:
worker- The worker.
-
getReadyToServeFuture
Get the ready to serve future of the resource manager.- Returns:
- The ready to serve future of the resource manager, which indicated whether it is ready to serve.
-
getResourceAllocator
-
setFailUnfulfillableRequest
protected void setFailUnfulfillableRequest(boolean failUnfulfillableRequest) SetSlotManagerwhether to fail unfulfillable slot requests.- Parameters:
failUnfulfillableRequest- whether to fail unfulfillable requests
-
onNewTokensObtained
Description copied from interface:DelegationTokenManager.ListenerCallback function when new delegation tokens obtained.- Specified by:
onNewTokensObtainedin interfaceDelegationTokenManager.Listener- Throws:
Exception
-