public class Slot extends Object
Modifier and Type | Field and Description |
---|---|
private Job.ExecutionTime |
estimated |
private String |
id |
Constructor and Description |
---|
Slot(Job.ExecutionTime estimated)
Create a new slot and automatically assign an id to
it.
|
Slot(String id,
Job.ExecutionTime estimated)
Create a new slot.
|
Modifier and Type | Method and Description |
---|---|
Job.ExecutionTime |
getEstimatedExecutionTime()
Get the estimated execution time for this slot.
|
String |
getId()
Get the id of the slot.
|
String |
toString() |
private final String id
private final Job.ExecutionTime estimated
public Slot(Job.ExecutionTime estimated)
estimated
- The estimated execution time for the jobpublic Slot(String id, Job.ExecutionTime estimated)
id
- The id of the slotestimated
- The estimated execution time for the jobpublic String getId()
public Job.ExecutionTime getEstimatedExecutionTime()