@@ -107,22 +107,25 @@ public class JobAgent implements Runnable {
privatestaticfloatlhcbMarks=-1;
privateenumjaStatus{
STARTING_JA(1),CHECKING_PARAMS(2),REQUESTING_JOB(3),MATCHED_JOB(4),JOB_STARTED(5),RUNNING_JOB(6),DONE_RUNNING_JOB(7),FINISHING_JA(8),ERROR_HC(-1),// error in getting host
ERROR_IP(-2),// error installing packages
ERROR_GET_JDL(-3),// error getting jdl
ERROR_JDL(-4),// incorrect jdl
ERROR_DIRS(-5),// error creating directories, not enough free space in workdir
ERROR_START(-6);// error forking to start job
STARTING_JA(0,"Starting running Job Agent"),REQUESTING_JOB(1,"Asking for a job"),INSTALLING_PKGS(2,"Found matching job"),JOB_STARTED(3,"Starting processing job's payload"),RUNNING_JOB(
"Error getting jdl"),ERROR_DIRS(-3,"Error creating directories, not enough free space in workdir"),ERROR_START(-4,"Error launching Job Wrapper to start job");
privatefinalintvalue;
privatefinalStringvalue_string;
jaStatus(finalintvalue){
jaStatus(finalintvalue,finalStringvalue_string){
this.value=value;
this.value_string=value_string;
}
publicintgetValue(){
returnvalue;
}
publicStringgetStringValue(){
returnvalue_string;
}
}
/**
...
...
@@ -190,8 +193,7 @@ public class JobAgent implements Runnable {
privateLongreqCPU=Long.valueOf(0);
privateLongreqDisk=Long.valueOf(0);
privateStringstate_string;
privateintstate_numeric;
privatejaStatusstatus;
/**
* Allow only one agent to request a job at a time
...
...
@@ -215,20 +217,18 @@ public class JobAgent implements Runnable {