public interface ResourceActions
SlotManager
can perform.Modifier and Type | Method and Description |
---|---|
void |
allocateResource(ResourceProfile resourceProfile)
Requests to allocate a resource with the given
ResourceProfile . |
void |
notifyAllocationFailure(JobID jobId,
AllocationID allocationId,
Exception cause)
Notifies that an allocation failure has occurred.
|
void |
releaseResource(InstanceID instanceId,
Exception cause)
Releases the resource with the given instance id.
|
void releaseResource(InstanceID instanceId, Exception cause)
instanceId
- identifying which resource to releasecause
- why the resource is releasedvoid allocateResource(ResourceProfile resourceProfile) throws ResourceManagerException
ResourceProfile
.resourceProfile
- for the to be allocated resourceResourceManagerException
- if the resource cannot be allocatedvoid notifyAllocationFailure(JobID jobId, AllocationID allocationId, Exception cause)
jobId
- to which the allocation belongedallocationId
- identifying the failed allocationcause
- of the allocation failureCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.