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 TypeMethodDescriptionvoidbackendFailed(JobFrontendRef theJobFrontend, String name) Report that a backend node failed.voidcancelJob(JobFrontendRef theJobFrontend, String errmsg) Cancel a job.voidclose()Close communication with this Job Scheduler.voidjobFinished(JobFrontendRef theJobFrontend) Report that a job finished.static voidJob Scheduler main program.voidrenewLease(JobFrontendRef theJobFrontend) Renew the lease on a job.voidreportComment(JobFrontendRef theJobFrontend, int rank, String comment) Report a comment for a process.voidrequestJob(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:
backendFailedin 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:
cancelJobin 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:
jobFinishedin 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:
renewLeasein 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:
reportCommentin 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:
requestJobin 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:
closein interfaceJobSchedulerRef
-
main
Job Scheduler main program.
-