public interface ResourceActions
|Modifier and Type||Method and Description|
Requests to allocate a resource with the given
Notifies that not enough resources are available to fulfill the resource requirements of a job.
Releases the resource with the given instance id.
void releaseResource(InstanceID instanceId, Exception cause)
instanceId- identifying which resource to release
cause- why the resource is released
boolean allocateResource(WorkerResourceSpec workerResourceSpec)
workerResourceSpec- for the to be allocated worker
void notifyNotEnoughResourcesAvailable(JobID jobId, Collection<ResourceRequirement> acquiredResources)
jobId- job for which not enough resources are available
acquiredResources- the resources that have been acquired for the job
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.