public class ResourceRequest
extends Object
The class used when discovering resources (using the discovery script), or via the context as it is parsing configuration for the ResourceID.
param: id object identifying the resource param: amount integer amount for the resource. Note that for a request (executor level), fractional resources does not make sense, so amount is an integer. param: discoveryScript optional discovery script file name param: vendor optional vendor name
| Constructor and Description | 
|---|
ResourceRequest(ResourceID id,
               long amount,
               java.util.Optional<String> discoveryScript,
               java.util.Optional<String> vendor)  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
amount()  | 
java.util.Optional<String> | 
discoveryScript()  | 
boolean | 
equals(Object obj)  | 
int | 
hashCode()  | 
ResourceID | 
id()  | 
java.util.Optional<String> | 
vendor()  | 
public ResourceRequest(ResourceID id, long amount, java.util.Optional<String> discoveryScript, java.util.Optional<String> vendor)
public long amount()
public java.util.Optional<String> discoveryScript()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic ResourceID id()
public java.util.Optional<String> vendor()