Package edu.rit.pj.cluster
Class JobInfo
java.lang.Object
edu.rit.pj.cluster.JobInfo
Class JobInfo provides a record of information about one job in a parallel
computer in the PJ cluster middleware.
- Version:
- 24-Jan-2012
- Author:
- Alan Kaminsky
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionArray of backend nodes for each process assigned to the job in rank order.String[]
Comment for each process in the job in rank order.int
The number of processes that have been assigned to the job so far.int[]
Number of CPUs assigned to each process in the job in rank order.Lease expiration timer.Reference to the job frontend process.int
The job number.Maximum job time timer.int
The number of backend nodes in the job.int
The number of nodes that have been assigned to the job so far.int
The number of processes in the job.int
The number of CPUs per process in the job.Lease renewal timer.The job's state.long
The time when the job entered its current state (milliseconds since midnight 01-Jan-1970 GMT).The job's user name. -
Constructor Summary
ConstructorDescriptionJobInfo
(int jobnum, JobInfo.State state, long stateTime, String username, int Nn, int Np, int Nt, int count, BackendInfo[] backend, int[] cpus, int nodeCount, JobFrontendRef frontend, Timer renewTimer, Timer expireTimer, Timer jobTimer) Construct a new job information record. -
Method Summary
-
Field Details
-
jobnum
public int jobnumThe job number. -
state
The job's state. -
stateTime
public long stateTimeThe time when the job entered its current state (milliseconds since midnight 01-Jan-1970 GMT). -
username
The job's user name. -
Nn
public int NnThe number of backend nodes in the job. -
Np
public int NpThe number of processes in the job. -
Nt
public int NtThe number of CPUs per process in the job. -
count
public int countThe number of processes that have been assigned to the job so far. -
backend
Array of backend nodes for each process assigned to the job in rank order. The array hasNp
total elements. The firstcount
elements have been assigned. -
cpus
public int[] cpusNumber of CPUs assigned to each process in the job in rank order. The array hasNp
total elements. The firstcount
elements have been assigned. -
nodeCount
public int nodeCountThe number of nodes that have been assigned to the job so far. -
frontend
Reference to the job frontend process. -
renewTimer
Lease renewal timer. -
expireTimer
Lease expiration timer. -
jobTimer
Maximum job time timer. -
comment
Comment for each process in the job in rank order. The array hasNp
total elements. Initially, these are empty strings. The process comments appear in the detailed job status display in the Job Scheduler web interface.
-
-
Constructor Details
-
JobInfo
public JobInfo(int jobnum, JobInfo.State state, long stateTime, String username, int Nn, int Np, int Nt, int count, BackendInfo[] backend, int[] cpus, int nodeCount, JobFrontendRef frontend, Timer renewTimer, Timer expireTimer, Timer jobTimer) Construct a new job information record.- Parameters:
jobnum
- The job number.state
- The job's state.stateTime
- The time when the job entered its current state.username
- The job's user name.Nn
- The number of backend nodes in the job.Np
- The number of processes in the job.Nt
- The number of CPUs per process in the job.count
- The number of processes that have been assigned to the job so far.backend
- Array of backends assigned to the job in rank order.cpus
- Array of CPUs for each process in rank order.nodeCount
- The number of nodes that have been assigned to the job so far.frontend
- Reference to the job frontend process.renewTimer
- Lease renewal timer.expireTimer
- Lease expiration timer.jobTimer
- Maximum job time timer.
-