2.17.2: 2011-06-17

net.sf.basedb.clients.jobagent.slotmanager
Class Slot

java.lang.Object
  extended by 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 (Tue, 19 Oct 2010) $

Field Summary
private  Job.ExecutionTime estimated
           
private  String id
           
 
Constructor Summary
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.
 
Method Summary
 Job.ExecutionTime getEstimatedExecutionTime()
          Get the estimated execution time for this slot.
 String getId()
          Get the id of the slot.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 slot
estimated - 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.


toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17