com.ace.moab.api.reservation
Class JobReservation

java.lang.Object
  extended by com.ace.moab.api.reservation.JobReservation

public class JobReservation
extends java.lang.Object

Represents information about reservations whose type is 'Job'. This class contains job state and job resource information. Internally, Moab represents jobs as reservations in certain situations, and therefore a reservation must be able to store and report this information. This class however is not a replacement for the job API, as jobs are indeed a separate entity from reservations.

Author:
Scott Brown

Constructor Summary
JobReservation()
           
 
Method Summary
 java.lang.String getJobID()
          Get the unique jobID assigned by Moab
 int getProc()
          The number of processors the job is using (or will use)
 long getPS()
          Get the processor seconds used by this job reservation
 JobState getState()
          Return the state of the job running (or will run) in this job reservation.
 void setJobID(java.lang.String jobID)
          Set the unique jobID assigned by Moab
 void setProc(int proc)
          The number of processors that this job reservation will use according to Moab
 void setPS(long ps)
          Set the processor seconds used by this job reservation
 void setState(JobState state)
          Set the job state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobReservation

public JobReservation()
Method Detail

getState

public JobState getState()
Return the state of the job running (or will run) in this job reservation.

Returns:
the state of the job for this reservation.

setState

public void setState(JobState state)
Set the job state. The state currently is any String, but when the Job API is refactored, it should be a enum value of that API.

Parameters:
state - the job reservation state to set

getJobID

public java.lang.String getJobID()
Get the unique jobID assigned by Moab

Returns:
The unique jobID assigned by Moab

setJobID

public void setJobID(java.lang.String jobID)
Set the unique jobID assigned by Moab

Parameters:
jobID - the unique jobID assigned by Moab

getProc

public int getProc()
The number of processors the job is using (or will use)

Returns:
The number of processors the job is using (or will use)

setProc

public void setProc(int proc)
The number of processors that this job reservation will use according to Moab

Parameters:
proc - The number of processors that this job reservation will use according to Moab

getPS

public long getPS()
Get the processor seconds used by this job reservation

Returns:
The processor seconds used by this job reservation

setPS

public void setPS(long ps)
Set the processor seconds used by this job reservation

Parameters:
ps - The processor seconds used by this job reservation


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.