Package edu.rit.pj.cluster
Class JobScheduler
java.lang.Object
edu.rit.pj.cluster.JobScheduler
- All Implemented Interfaces:
JobSchedulerRef
Class JobScheduler is the main program for the PJ Job Scheduler Daemon
process for a parallel computer.
Run the Job Scheduler Daemon on the cluster's frontend processor by typing this command:
java edu.rit.pj.cluster.JobScheduler configfile
configfile = Configuration file name
For further information about the configuration file, see class Configuration.
- Version:
- 20-Jun-2012
- Author:
- Alan Kaminsky
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backendFailed
(JobFrontendRef theJobFrontend, String name) Report that a backend node failed.void
cancelJob
(JobFrontendRef theJobFrontend, String errmsg) Cancel a job.void
close()
Close communication with this Job Scheduler.void
jobFinished
(JobFrontendRef theJobFrontend) Report that a job finished.static void
Job Scheduler main program.void
renewLease
(JobFrontendRef theJobFrontend) Renew the lease on a job.void
reportComment
(JobFrontendRef theJobFrontend, int rank, String comment) Report a comment for a process.void
requestJob
(JobFrontendRef theJobFrontend, String username, int Nn, int Np, int Nt) Request that a job be scheduled.
-
Method Details
-
backendFailed
Report that a backend node failed. Report that a backend node failed.- Specified by:
backendFailed
in interfaceJobSchedulerRef
- Parameters:
theJobFrontend
- Job frontend that is calling this method.name
- Backend node name.- Throws:
IOException
- Thrown if an I/O error occurred.
-
cancelJob
Cancel a job. Cancel a job.- Specified by:
cancelJob
in interfaceJobSchedulerRef
- Parameters:
theJobFrontend
- Job frontend that is calling this method.errmsg
- Error message string.- Throws:
IOException
- Thrown if an I/O error occurred.
-
jobFinished
Report that a job finished. Report that a job finished.- Specified by:
jobFinished
in interfaceJobSchedulerRef
- Parameters:
theJobFrontend
- Job frontend that is calling this method.- Throws:
IOException
- Thrown if an I/O error occurred.
-
renewLease
Renew the lease on a job. Renew the lease on a job.- Specified by:
renewLease
in interfaceJobSchedulerRef
- Parameters:
theJobFrontend
- Job frontend that is calling this method.- Throws:
IOException
- Thrown if an I/O error occurred.
-
reportComment
Report a comment for a process. Report a comment for a process.- Specified by:
reportComment
in interfaceJobSchedulerRef
- Parameters:
theJobFrontend
- Job frontend that is calling this method.rank
- Process rank.comment
- Comment string.
-
requestJob
public void requestJob(JobFrontendRef theJobFrontend, String username, int Nn, int Np, int Nt) throws IOException Request that a job be scheduled. Request that a job be scheduled.- Specified by:
requestJob
in interfaceJobSchedulerRef
- Parameters:
theJobFrontend
- Job frontend that is calling this method.username
- User name.Nn
- Number of backend nodes.Np
- Number of processes.Nt
- Number of CPUs per process. 0 means "all CPUs."- Throws:
IOException
- Thrown if an I/O error occurred.
-
close
public void close()Close communication with this Job Scheduler.- Specified by:
close
in interfaceJobSchedulerRef
-
main
Job Scheduler main program.
-