|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapping.data.Job
public class Job
This class represents a job in the system. It stores information like the ID of this job, submission date, etc..
Field Summary | |
---|---|
static java.lang.String |
DONE
A final string representing the state Done |
static int |
NOT_ASSIGNED
final value used to express the fact a the job has not been assigned to a server yet. |
static long |
NOT_DONE
final value used to express the fact a the job has not been completed yet. |
static long |
NOT_SENT
final value used to express the fact a the job has not been sent yet. |
static java.lang.String |
QUEUED
A final string representing the state Queued. |
static java.lang.String |
RUNNING
A final string representing the state Running. |
static java.lang.String |
TIMEDOUT
A final string representing the state Timed-Out. |
Constructor Summary | |
---|---|
Job(int jobClassId,
long iterations)
|
|
Job(int id,
Server server)
|
|
Job(int id,
Server server,
double timeExpected)
|
|
Job(int index,
Server server,
double timeExpected,
java.util.GregorianCalendar timeSubmitted)
|
|
Job(int id,
Server server,
java.util.GregorianCalendar timeSubmitted)
|
Method Summary | |
---|---|
long |
getIndex()
|
long |
getIterations()
|
double |
getTimeBetweenStartTimeAndSentTimeInSeconds()
|
long |
getTimeBetweenSubmissionTimeAndDoneTimeInMilliSeconds()
|
double |
getTimeBetweenSubmissionTimeAndDoneTimeInSeconds()
|
double |
getTimeBetweenSubmissionTimeAndSentTimeInMilliSeconds()
|
void |
print()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String QUEUED
public static final java.lang.String RUNNING
public static final java.lang.String DONE
public static final java.lang.String TIMEDOUT
public static final int NOT_ASSIGNED
public static final long NOT_DONE
public static final long NOT_SENT
Constructor Detail |
---|
public Job(int id, Server server, double timeExpected)
id
- JOB ID in the systemserver
- ServerRecord object that this job was sent totimeExpected
- timeExpected for this job to be executed on the assigned
serverpublic Job(int id, Server server)
public Job(int id, Server server, java.util.GregorianCalendar timeSubmitted)
public Job(int index, Server server, double timeExpected, java.util.GregorianCalendar timeSubmitted)
public Job(int jobClassId, long iterations)
Method Detail |
---|
public long getIndex()
public long getIterations()
public java.lang.String toString()
toString
in class java.lang.Object
public void print()
public long getTimeBetweenSubmissionTimeAndDoneTimeInMilliSeconds()
public double getTimeBetweenSubmissionTimeAndDoneTimeInSeconds()
public double getTimeBetweenSubmissionTimeAndSentTimeInMilliSeconds()
public double getTimeBetweenStartTimeAndSentTimeInSeconds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |