org.ourgrid.mygrid.ui.test
Class FakeScheduler.FakeJob

java.lang.Object
  extended by org.ourgrid.mygrid.scheduler.jobmanager.JobEntry
      extended by org.ourgrid.mygrid.ui.test.FakeScheduler.FakeJob
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FakeScheduler

public class FakeScheduler.FakeJob
extends JobEntry

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ourgrid.mygrid.scheduler.jobmanager.JobEntry
tasks
 
Constructor Summary
FakeScheduler.FakeJob(int id)
           
FakeScheduler.FakeJob(int id, JobSpec jobSpec)
           
 
Method Summary
 void addRandomTasks()
           
 ExecutionStatus getStatus()
          Returns the Job state according its Tasks' states.
 
Methods inherited from class org.ourgrid.mygrid.scheduler.jobmanager.JobEntry
createTaskEntry, createTasks, getAvailableTasks, getId, getJobSpec, getLabel, getNewReplica, getRequirements, getTaskById, getTasks, replicaAborted, replicaCancelled, replicaFailed, replicaFinished, setCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeScheduler.FakeJob

public FakeScheduler.FakeJob(int id)
                      throws TaskSpecificationException
Throws:
TaskSpecificationException

FakeScheduler.FakeJob

public FakeScheduler.FakeJob(int id,
                             JobSpec jobSpec)
                      throws TaskSpecificationException
Throws:
TaskSpecificationException
Method Detail

addRandomTasks

public void addRandomTasks()
                    throws TaskSpecificationException
Throws:
TaskSpecificationException

getStatus

public ExecutionStatus getStatus()
Description copied from class: JobEntry
Returns the Job state according its Tasks' states.

Overrides:
getStatus in class JobEntry
Returns:
The Job state.