public interface Planner
Modifier and Type | Method and Description |
---|---|
boolean |
filter(Job job) |
void |
initialize(java.util.Properties p) |
java.util.List<java.lang.String> |
orderBy() |
Plan |
plan(java.util.Map<java.lang.String,Offer> offers,
java.util.List<Job> jobs)
Core callback method that determines matching of jobs and offers,
which job assined to which offer (agent) etc etc...
|
void |
setMaxStock(int maxStock) |
void |
setUseGpu(boolean useGpu) |
void initialize(java.util.Properties p) throws java.lang.Throwable
java.lang.Throwable
java.util.List<java.lang.String> orderBy()
boolean filter(Job job)
Plan plan(java.util.Map<java.lang.String,Offer> offers, java.util.List<Job> jobs)
offers
- A map whose key is offer ID in String with offers
including Resource and Attributesjobs
- A list of candidate jobs retrieved from DBvoid setUseGpu(boolean useGpu)
void setMaxStock(int maxStock)