class ResourceRequest extends AnyRef
Class that represents a resource request.
The class used when discovering resources (using the discovery script), or via the context as it is parsing configuration for the ResourceID.
- Annotations
- @DeveloperApi()
- Source
- ResourceUtils.scala
- Since
3.0.0
- Alphabetic
- By Inheritance
- ResourceRequest
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ResourceRequest(id: ResourceID, amount: Long, discoveryScript: Optional[String], vendor: Optional[String])
- id
object identifying the resource
- amount
integer amount for the resource. Note that for a request (executor level), fractional resources does not make sense, so amount is an integer.
- discoveryScript
optional discovery script file name
- vendor
optional vendor name
Value Members
- val amount: Long
- val discoveryScript: Optional[String]
-
def
equals(obj: Any): Boolean
- Definition Classes
- ResourceRequest → AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- ResourceRequest → AnyRef → Any
- val id: ResourceID
- val vendor: Optional[String]