Class Slot
- java.lang.Object
-
- net.sf.basedb.clients.jobagent.slotmanager.Slot
-
public class Slot extends Object
Represents a slot that has been assigned to a job.- Since:
- 2.16
- Author:
- Nicklas
- Last modified
- $Date: 2010-10-19 13:02:17 +0200 (ti, 19 okt 2010) $
-
-
Field Summary
Fields Modifier and Type Field Description private Job.ExecutionTime
estimated
private String
id
-
Constructor Summary
Constructors Constructor Description Slot(String id, Job.ExecutionTime estimated)
Create a new slot.Slot(Job.ExecutionTime estimated)
Create a new slot and automatically assign an id to it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job.ExecutionTime
getEstimatedExecutionTime()
Get the estimated execution time for this slot.String
getId()
Get the id of the slot.String
toString()
-
-
-
Field Detail
-
id
private final String id
-
estimated
private final Job.ExecutionTime estimated
-
-
Constructor Detail
-
Slot
public Slot(Job.ExecutionTime estimated)
Create a new slot and automatically assign an id to it.- Parameters:
estimated
- The estimated execution time for the job
-
Slot
public Slot(String id, Job.ExecutionTime estimated)
Create a new slot.- Parameters:
id
- The id of the slotestimated
- The estimated execution time for the job
-
-
Method Detail
-
getId
public String getId()
Get the id of the slot.
-
getEstimatedExecutionTime
public Job.ExecutionTime getEstimatedExecutionTime()
Get the estimated execution time for this slot.
-
-