edu.rit.pj.cluster
Class JobScheduler
- java.lang.Object
-
- edu.rit.pj.cluster.JobScheduler
-
- All Implemented Interfaces:
- JobSchedulerRef
public class JobScheduler extends java.lang.Object implements 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 nameFor further information about the configuration file, see class Configuration.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbackendFailed(JobFrontendRef theJobFrontend, java.lang.String name)Report that a backend node failed.voidcancelJob(JobFrontendRef theJobFrontend, java.lang.String errmsg)Cancel a job.voidclose()Close communication with this Job Scheduler.voidjobFinished(JobFrontendRef theJobFrontend)Report that a job finished.static voidmain(java.lang.String[] args)Job Scheduler main program.voidrenewLease(JobFrontendRef theJobFrontend)Renew the lease on a job.voidrequestJob(JobFrontendRef theJobFrontend, java.lang.String username, int Nn, int Np, int Nt)Request that a job be scheduled.
-
-
-
Method Detail
-
backendFailed
public void backendFailed(JobFrontendRef theJobFrontend, java.lang.String name) throws java.io.IOException
Report that a backend node failed.- Specified by:
backendFailedin interfaceJobSchedulerRef- Parameters:
theJobFrontend- Job frontend that is calling this method.name- Backend node name.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
cancelJob
public void cancelJob(JobFrontendRef theJobFrontend, java.lang.String errmsg) throws java.io.IOException
Cancel a job.- Specified by:
cancelJobin interfaceJobSchedulerRef- Parameters:
theJobFrontend- Job frontend that is calling this method.errmsg- Error message string.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
jobFinished
public void jobFinished(JobFrontendRef theJobFrontend) throws java.io.IOException
Report that a job finished.- Specified by:
jobFinishedin interfaceJobSchedulerRef- Parameters:
theJobFrontend- Job frontend that is calling this method.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
renewLease
public void renewLease(JobFrontendRef theJobFrontend) throws java.io.IOException
Renew the lease on a job.- Specified by:
renewLeasein interfaceJobSchedulerRef- Parameters:
theJobFrontend- Job frontend that is calling this method.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
requestJob
public void requestJob(JobFrontendRef theJobFrontend, java.lang.String username, int Nn, int Np, int Nt) throws java.io.IOException
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:
java.io.IOException- Thrown if an I/O error occurred.
-
close
public void close()
Close communication with this Job Scheduler.- Specified by:
closein interfaceJobSchedulerRef
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionJob Scheduler main program.- Throws:
java.lang.Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG