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